Note that there are some explanatory texts on larger screens.

plurals
  1. POgetting strange stacktrace on compiling groovy class
    primarykey
    data
    text
    <p>I'm coding a small test app in Groovy. I have the following code.</p> <pre><code>class Address { static constraints = { street(blank:false, maxSize:100) residencenumber(min:1, max:65000) addition() zip() city(blank:false, maxSize:100) county() country(blank:false, maxSize:50) } String street String zip int residencenumber String addition String city String county String country String toString() { return street + " " + residencenumber + " " + zip + " " + city + " " + country } </code></pre> <p>}</p> <p>I'm getting this rather cryptic message. </p> <p>nojevive@follett:~/dev/code/mysmallapp$ grails generate-all Address Welcome to Grails 1.1.1 - <a href="http://grails.org/" rel="nofollow noreferrer">http://grails.org/</a> Licensed under Apache Standard License 2.0 Grails home is set to: /home/nojevive/dev/grails</p> <p>Base Directory: /home/nojevive/dev/code/mysmallapp Running script /home/nojevive/dev/grails/scripts/GenerateAll.groovy Environment set to development <code> groovy.lang.MissingMethodException: No signature of method: java.lang.Integer.call() is applicable for argument types: () values: [] at Project$__clinit__closure1.doCall(Project.groovy:11) at Project$__clinit__closure1.doCall(Project.groovy) at Project.getProperty(Project.groovy) at _PluginDependencies_groovy$_run_closure6_closure53.doCall(_PluginDependencies_groovy:467) at _PluginDependencies_groovy$_run_closure6_closure53.doCall(_PluginDependencies_groovy) at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:274) at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy) at _PluginDependencies_groovy$_run_closure6.doCall(_PluginDependencies_groovy:447) at _GrailsBootstrap_groovy$_run_closure1.doCall(_GrailsBootstrap_groovy:74) at _GrailsGenerate_groovy$_run_closure1.doCall(_GrailsGenerate_groovy:37) at GenerateAll$_run_closure1.doCall(GenerateAll.groovy:42) at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:324) at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:334) at gant.Gant$_dispatch_closure6.doCall(Gant.groovy) at gant.Gant.withBuildListeners(Gant.groovy:344) at gant.Gant.this$2$withBuildListeners(Gant.groovy) at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source) at gant.Gant.dispatch(Gant.groovy:334) at gant.Gant.this$2$dispatch(Gant.groovy) at gant.Gant.invokeMethod(Gant.groovy) at gant.Gant.processTargets(Gant.groovy:495) at gant.Gant.processTargets(Gant.groovy:480) Error loading plugin manager: No signature of method: java.lang.Integer.call() is applicable for argument types: () values: [] </code></p> <p>First I thought maybe my number was out of range (I had 1000000). Then I thought maybe the number was a built-in name so I renamed to residencenumber. But no luck. What am I missing here? I now removed all constraints, but still same message. So it has nothing to do with the fields I guess. Something must be broken?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload