No such property: eventListener for class: _GrailsEvents_groovy

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

No such property: eventListener for class: _GrailsEvents_groovy

vsnathan
Yesterday I tried to upgrade a 2.0.3 app to 2.2.0, but due some unrelated issues I ran into and time constraints I had to revert the app back to 2.0.3.

Currently I'm unable to get the app to run again (i.e. 'grails run-app') due to the below exception. I've tried deleting ~/.grails directory, reinstalling 2.0.3, and even retried the 2.2.0 upgrade.

Here's the full output of 'grails run-app --stacktrace --verbose':

groovy.lang.MissingPropertyException: No such property: eventListener for class: _GrailsEvents_groovy
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)
        at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231)
        at _GrailsEvents_groovy.run(_GrailsEvents_groovy:41)
        at _GrailsEvents_groovy$run.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
        at _GrailsClean_groovy$run.call(Unknown Source)
        at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59)
        at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
        at _GrailsClean_groovy.run(_GrailsClean_groovy:29)
        at _GrailsClean_groovy$run.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
        at _GrailsWar_groovy$run.call(Unknown Source)
        at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59)
        at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
        at _GrailsWar_groovy.run(_GrailsWar_groovy:27)
        at _GrailsWar_groovy$run.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
        at _GrailsRun_groovy$run.call(Unknown Source)
        at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59)
        at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
        at _GrailsRun_groovy.run(_GrailsRun_groovy:30)
        at _GrailsRun_groovy$run.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
        at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59)
        at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
        at RunApp.run(RunApp:27)
        at RunApp$run.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
        at gant.Gant.prepareTargets(Gant.groovy:607)
        at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeWithGantInstance(GrailsScriptRunner.java:689)
        at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeScriptFile(GrailsScriptRunner.java:497)
        at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeScriptWithCaching(GrailsScriptRunner.java:432)
        at org.codehaus.groovy.grails.cli.GrailsScriptRunner.callPluginOrGrailsScript(GrailsScriptRunner.java:383)
        at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeCommand(GrailsScriptRunner.java:362)
        at org.codehaus.groovy.grails.cli.GrailsScriptRunner.main(GrailsScriptRunner.java:228)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1231)
        at org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(GrailsStarter.java:234)
        at org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStarter.java:262)
Reply | Threaded
Open this post in threaded view
|

Re: No such property: eventListener for class: _GrailsEvents_groovy

vsnathan
I was able to get past this issue, but I'm now running into this exception:

java.lang.NoClassDefFoundError: org/codehaus/groovy/grails/project/packaging/GrailsProjectPackager
        at _PackagePlugins_groovy.run(_PackagePlugins_groovy:27)
        at _PackagePlugins_groovy$run.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
        at _GrailsProxy_groovy$run.call(Unknown Source)
        at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59)
        at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
        at _GrailsPackage_groovy.run(_GrailsPackage_groovy:29)
        at _GrailsPackage_groovy$run.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
        at _GrailsSettings_groovy$run.call(Unknown Source)
        at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59)
        at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
        at _GrailsWar_groovy.run(_GrailsWar_groovy:28)
        at _GrailsWar_groovy$run.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
        at _GrailsRun_groovy$run.call(Unknown Source)
        at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59)
        at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
        at _GrailsRun_groovy.run(_GrailsRun_groovy:30)
        at _GrailsRun_groovy$run.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
        at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59)
        at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
        at RunApp.run(RunApp:27)
        at RunApp$run.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
        at gant.Gant.prepareTargets(Gant.groovy:607)
        at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeWithGantInstance(GrailsScriptRunner.java:689)
        at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeScriptFile(GrailsScriptRunner.java:497)
        at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeScriptWithCaching(GrailsScriptRunner.java:432)
        at org.codehaus.groovy.grails.cli.GrailsScriptRunner.callPluginOrGrailsScript(GrailsScriptRunner.java:383)
        at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeCommand(GrailsScriptRunner.java:362)
        at org.codehaus.groovy.grails.cli.GrailsScriptRunner.main(GrailsScriptRunner.java:228)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1231)
        at org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(GrailsStarter.java:234)
        at org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStarter.java:262)
Caused by: java.lang.ClassNotFoundException: org.codehaus.groovy.grails.project.packaging.GrailsProjectPackager
        at org.codehaus.groovy.tools.RootLoader.findClass(RootLoader.java:156)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at org.codehaus.groovy.tools.RootLoader.loadClass(RootLoader.java:128)
        at org.codehaus.groovy.grails.cli.support.GrailsRootLoader.loadClass(GrailsRootLoader.java:43)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Reply | Threaded
Open this post in threaded view
|

Re: No such property: eventListener for class: _GrailsEvents_groovy

hfrortiz
Can you please explain how did you solve the issue
| Environment set to development.
| Error Error executing script RunApp: No such property: eventListener for class: _GrailsEvents_groovy
groovy.lang.MissingPropertyException: No such property: eventListener for class: _GrailsEvents_groovy
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)
        at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231)
        at _GrailsEvents_groovy.run(_GrailsEvents_groovy:40)
        at _GrailsEvents_groovy$run.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
        at _GrailsClean_groovy$run.call(Unknown Source)
        at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59)
        at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
        at _GrailsClean_groovy.run(_GrailsClean_groovy:29)
        at _GrailsClean_groovy$run.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
        at _GrailsPlugins_groovy$run.call(Unknown Source)
        at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59)
        at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
        at _GrailsPlugins_groovy.run(_GrailsPlugins_groovy:32)

I'm facing the same problem and don't have any idea how to solve it.

Thanks in advance