NoSuchFieldError: r$sfields

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

NoSuchFieldError: r$sfields

longwa
Trying to startup our application in Grails 3 for the first time and getting this weird error:

Looks like there's a report about it in springloaded a few weeks ago but the resolutions don't seem to fit this scenario.

The Controller in question does extend a base controller (which also implements a trait). Not sure if anyone has seen this one before but it has me stumped....

Disabling reloading does seem to fix it, but that's not a very good option for development:

Caused by: java.lang.NoSuchFieldError: r$sfields

at com.triu.operational.inventory.NonRetiredFleetDetailController.<clinit>(NonRetiredFleetDetailController.groovy) ~[main/:na]

at com.triu.operational.inventory.NonRetiredFleetDetailController.<clinit>(NonRetiredFleetDetailController.groovy)

at java.lang.Class.forName0(Native Method) ~[na:1.7.0_79]

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:274)

at java.lang.Class.forName(Class.java:274) ~[na:1.7.0_79]

at org.codehaus.groovy.runtime.callsite.CallSiteArray$1.run(CallSiteArray.java:68)

at org.codehaus.groovy.runtime.callsite.CallSiteArray$1.run(CallSiteArray.java:68) ~[groovy-2.4.5.jar:2.4.5]

at org.codehaus.groovy.runtime.callsite.CallSiteArray$1.run(CallSiteArray.java:65)

at org.codehaus.groovy.runtime.callsite.CallSiteArray$1.run(CallSiteArray.java:65) ~[groovy-2.4.5.jar:2.4.5]

at java.security.AccessController.doPrivileged(Native Method)

at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallStaticSite(CallSiteArray.java:65)

at java.security.AccessController.doPrivileged(Native Method) ~[na:1.7.0_79]

at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallSite(CallSiteArray.java:162)

at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallStaticSite(CallSiteArray.java:65) [groovy-2.4.5.jar:2.4.5]

at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)

at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallSite(CallSiteArray.java:162) [groovy-2.4.5.jar:2.4.5]

at java_lang_Class$getName.call(Unknown Source)

at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) [groovy-2.4.5.jar:2.4.5]

at grails.plugins.quartz.JobArtefactHandler.isArtefactClass(JobArtefactHandler.groovy:62)

at java_lang_Class$getName.call(Unknown Source) ~[na:na]

at grails.core.ArtefactHandlerAdapter.isArtefact(ArtefactHandlerAdapter.java:125)

at grails.plugins.quartz.JobArtefactHandler.isArtefactClass(JobArtefactHandler.groovy:62) ~[quartz-2.0.0.jar:na]

... 36 more

at grails.core.ArtefactHandlerAdapter.isArtefact(ArtefactHandlerAdapter.java:125) ~[grails-core-3.0.9.jar:3.0.9]

... 36 common frames omitted

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/fa0209fd-8011-4a47-bfc0-a6c5ce250fe5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: NoSuchFieldError: r$sfields

Graeme Rocher-2
Please file an issue with an example that reproduces the issue


On 28 Oct 2015, at 00:45, Aaron <[hidden email]> wrote:

Trying to startup our application in Grails 3 for the first time and getting this weird error:

Looks like there's a report about it in springloaded a few weeks ago but the resolutions don't seem to fit this scenario.

The Controller in question does extend a base controller (which also implements a trait). Not sure if anyone has seen this one before but it has me stumped....

Disabling reloading does seem to fix it, but that's not a very good option for development:

Caused by: java.lang.NoSuchFieldError: r$sfields

at com.triu.operational.inventory.NonRetiredFleetDetailController.<clinit>(NonRetiredFleetDetailController.groovy) ~[main/:na]

at com.triu.operational.inventory.NonRetiredFleetDetailController.<clinit>(NonRetiredFleetDetailController.groovy)

at java.lang.Class.forName0(Native Method) ~[na:1.7.0_79]

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:274)

at java.lang.Class.forName(Class.java:274) ~[na:1.7.0_79]

at org.codehaus.groovy.runtime.callsite.CallSiteArray$1.run(CallSiteArray.java:68)

at org.codehaus.groovy.runtime.callsite.CallSiteArray$1.run(CallSiteArray.java:68) ~[groovy-2.4.5.jar:2.4.5]

at org.codehaus.groovy.runtime.callsite.CallSiteArray$1.run(CallSiteArray.java:65)

at org.codehaus.groovy.runtime.callsite.CallSiteArray$1.run(CallSiteArray.java:65) ~[groovy-2.4.5.jar:2.4.5]

at java.security.AccessController.doPrivileged(Native Method)

at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallStaticSite(CallSiteArray.java:65)

at java.security.AccessController.doPrivileged(Native Method) ~[na:1.7.0_79]

at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallSite(CallSiteArray.java:162)

at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallStaticSite(CallSiteArray.java:65) [groovy-2.4.5.jar:2.4.5]

at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)

at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallSite(CallSiteArray.java:162) [groovy-2.4.5.jar:2.4.5]

at java_lang_Class$getName.call(Unknown Source)

at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) [groovy-2.4.5.jar:2.4.5]

at grails.plugins.quartz.JobArtefactHandler.isArtefactClass(JobArtefactHandler.groovy:62)

at java_lang_Class$getName.call(Unknown Source) ~[na:na]

at grails.core.ArtefactHandlerAdapter.isArtefact(ArtefactHandlerAdapter.java:125)

at grails.plugins.quartz.JobArtefactHandler.isArtefactClass(JobArtefactHandler.groovy:62) ~[quartz-2.0.0.jar:na]

... 36 more

at grails.core.ArtefactHandlerAdapter.isArtefact(ArtefactHandlerAdapter.java:125) ~[grails-core-3.0.9.jar:3.0.9]

... 36 common frames omitted

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/fa0209fd-8011-4a47-bfc0-a6c5ce250fe5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/BC65CE3F-3181-415A-987B-D5B9C4B0F6FE%40gmail.com.
For more options, visit https://groups.google.com/d/optout.