ClassNotFoundException on SpecTestTypeLoader after clean

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

ClassNotFoundException on SpecTestTypeLoader after clean

ggascoigne
We have a batch of Spock unit, integration and functional tests in a relatively new project. We've noticed that the first run after a clean we always get 

Error executing script TestApp: java.lang.ClassNotFoundException: grails.plugin.functional.spock.SpecTestTypeLoader

The full error is:

| Error Error executing script TestApp: java.lang.ClassNotFoundException: grails.plugin.functional.spock.SpecTestTypeLoader (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)
java.lang.ClassNotFoundException: grails.plugin.functional.spock.SpecTestTypeLoader
at java_lang_ClassLoader$loadClass.call(Unknown Source)
at _Events$_run_closure2_closure5.doCall(_Events.groovy:19)
at _Events$_run_closure2_closure5.doCall(_Events.groovy)
at _Events$_run_closure2.doCall(_Events.groovy:25)
at _Events$_run_closure3.doCall(_Events.groovy:30)
at org.apache.tools.ant.BuildListener$targetStarted.call(Unknown Source)
at org.codehaus.gant.GantBinding$_withTargetEvent_closure1.doCall(GantBinding.groovy:89)
at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:89)
at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)
at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
at TestApp$_run_closure1.doCall(TestApp.groovy:82)
at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)
at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)
at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)
at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
at gant.Gant.withBuildListeners(Gant.groovy:427)
at gant.Gant.this$2$withBuildListeners(Gant.groovy)
at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
at gant.Gant.dispatch(Gant.groovy:415)
at gant.Gant.this$2$dispatch(Gant.groovy)
at gant.Gant.invokeMethod(Gant.groovy)
at gant.Gant.executeTargets(Gant.groovy:591)
at gant.Gant.executeTargets(Gant.groovy:590)
at org.grails.wrapper.GrailsWrapper.main(GrailsWrapper.java:94)
| Error Error executing script TestApp: java.lang.ClassNotFoundException: grails.plugin.functional.spock.SpecTestTypeLoader

Any suggestions?

Thanks - Guy

Reply | Threaded
Open this post in threaded view
|

Re: ClassNotFoundException on SpecTestTypeLoader after clean

ggascoigne
no one else seeing this?


On Fri, Feb 1, 2013 at 2:38 PM, Guy Gascoigne-Piggford <[hidden email]> wrote:
We have a batch of Spock unit, integration and functional tests in a relatively new project. We've noticed that the first run after a clean we always get 

Error executing script TestApp: java.lang.ClassNotFoundException: grails.plugin.functional.spock.SpecTestTypeLoader

The full error is:

| Error Error executing script TestApp: java.lang.ClassNotFoundException: grails.plugin.functional.spock.SpecTestTypeLoader (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)
java.lang.ClassNotFoundException: grails.plugin.functional.spock.SpecTestTypeLoader
at java_lang_ClassLoader$loadClass.call(Unknown Source)
at _Events$_run_closure2_closure5.doCall(_Events.groovy:19)
at _Events$_run_closure2_closure5.doCall(_Events.groovy)
at _Events$_run_closure2.doCall(_Events.groovy:25)
at _Events$_run_closure3.doCall(_Events.groovy:30)
at org.apache.tools.ant.BuildListener$targetStarted.call(Unknown Source)
at org.codehaus.gant.GantBinding$_withTargetEvent_closure1.doCall(GantBinding.groovy:89)
at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:89)
at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)
at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
at TestApp$_run_closure1.doCall(TestApp.groovy:82)
at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)
at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)
at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185)
at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)
at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
at gant.Gant.withBuildListeners(Gant.groovy:427)
at gant.Gant.this$2$withBuildListeners(Gant.groovy)
at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
at gant.Gant.dispatch(Gant.groovy:415)
at gant.Gant.this$2$dispatch(Gant.groovy)
at gant.Gant.invokeMethod(Gant.groovy)
at gant.Gant.executeTargets(Gant.groovy:591)
at gant.Gant.executeTargets(Gant.groovy:590)
at org.grails.wrapper.GrailsWrapper.main(GrailsWrapper.java:94)
| Error Error executing script TestApp: java.lang.ClassNotFoundException: grails.plugin.functional.spock.SpecTestTypeLoader

Any suggestions?

Thanks - Guy


Reply | Threaded
Open this post in threaded view
|

Re: ClassNotFoundException on SpecTestTypeLoader after clean

Owen Rubel
I just ran into this myself and am trying to trouble shoot. Thought this was an issue with Grails but found it to be an issue with the plugin now after much research. Am scaffolding tests and just ran into this issue.

Apparently is still an issue for the Spock Functional tests.