April 29, 201015 yr Newbies The following script seems to work fine in 'groovyConsole' (i.e. separate from FileMaker), but gives me an error when I'm in FileMaker with ScriptMaster. I'm wondering if there's a .jar I need to load or something. def rooraa = ' "what up"rn"how, is it going?"rn"yay pop" ' def Listoo = [] rooraa.eachLine{ Listoo << it } Listoo In FM I get the error: groovy.lang.MissingMethodException: No signature of method: java.lang.String.eachLine() is applicable for argument types: (Script1$_run_closure1) values: {Script1$_run_closure1@4c55ff} This snippet is part of something bigger I was doing, but I isolated the problem I was having for the sake of example here. Thanks for any assistance.
April 29, 201015 yr Chris, check which version of Groovy is required for the eachLine method that takes a closure. We currently bundle 1.5 into ScriptMaster, but the latest version of Groovy at this time is 1.7. If the method you want was added after 1.5, that would cause this error. A future release of ScriptMaster will include Groovy 1.7.
Create an account or sign in to comment