NoSuchFieldError: r$sfields

61 views
Skip to first unread message

Aaron

unread,
Oct 27, 2015, 7:45:29 PM10/27/15
to Grails Dev Discuss
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

Graeme Rocher

unread,
Oct 31, 2015, 8:18:53 AM10/31/15
to grails-de...@googlegroups.com
Please file an issue with an example that reproduces the issue

--
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 grails-dev-disc...@googlegroups.com.
To post to this group, send email to grails-de...@googlegroups.com.
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 all
Reply to author
Forward
0 new messages