Error instantiated artefact class ... of type [class org.grails.core.DefaultGrailsServiceClass]

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

Error instantiated artefact class ... of type [class org.grails.core.DefaultGrailsServiceClass]

vahid
Hi All 

Wondering if anyone can help 

Linux grails 3.0.1 (Tried grails 3.0.2 too)
On 2nd machine, identical issue.

Unsure what is going wrong:


~/workspace-grails3/testg3-rssh$ cat ../remotessh/grails-app/services/grails/plugin/remotessh/RemotesshService.groovy 
package grails.plugin.remotessh.util

class RemotesshService {


}

~/workspace-grails3/testg3-rssh$ mv ../remotessh/grails-app/services/grails/plugin/remotessh/RemotesshService.groovy ~/

~/Documents/workspace-grails3/testg3-rssh$ grails run-app
:remotessh:compileAstJava UP-TO-DATE
:remotessh:compileAstGroovy UP-TO-DATE
:remotessh:processAstResources UP-TO-DATE
:remotessh:astClasses UP-TO-DATE
:remotessh:compileJava UP-TO-DATE
:remotessh:configScript UP-TO-DATE
:remotessh:compileGroovy
:remotessh:copyAstClasses UP-TO-DATE
:remotessh:copyAssets UP-TO-DATE
:remotessh:copyCommands UP-TO-DATE
:remotessh:copyTemplates UP-TO-DATE
:remotessh:processResources UP-TO-DATE
:remotessh:classes
:remotessh:compileWebappGroovyPages UP-TO-DATE
:remotessh:compileGroovyPages
:remotessh:jar
:testg3-rssh:compileJava UP-TO-DATE
:testg3-rssh:compileGroovy
:testg3-rssh:processResources
:testg3-rssh:classes
:testg3-rssh:findMainClass
:testg3-rssh:bootRun
Grails application running at http://localhost:8080
> Building 95% > :testg3-rssh:bootRun


Presto all works fine, now if I move that service back in (currently blank) did have content, I get this stack trace:




grails run-app
:remotessh:compileAstJava UP-TO-DATE
:remotessh:compileAstGroovy UP-TO-DATE
:remotessh:processAstResources UP-TO-DATE
:remotessh:astClasses UP-TO-DATE
:remotessh:compileJava UP-TO-DATE
:remotessh:configScript UP-TO-DATE
:remotessh:compileGroovy
:remotessh:copyAstClasses UP-TO-DATE
:remotessh:copyAssets UP-TO-DATE
:remotessh:copyCommands UP-TO-DATE
:remotessh:copyTemplates UP-TO-DATE
:remotessh:processResources UP-TO-DATE
:remotessh:classes
:remotessh:compileWebappGroovyPages UP-TO-DATE
:remotessh:compileGroovyPages
:remotessh:jar
:testg3-rssh:compileJava UP-TO-DATE
:testg3-rssh:compileGroovy
:testg3-rssh:processResources
:testg3-rssh:classes
:testg3-rssh:findMainClass
:testg3-rssh:bootRun
ERROR grails.boot.GrailsApp - Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsApplicationPostProcessor' defined in testg3.rssh.Application: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [grails.boot.config.GrailsApplicationPostProcessor]: Factory method 'grailsApplicationPostProcessor' threw exception; nested exception is org.grails.core.exceptions.GrailsRuntimeException: Error instantiated artefact class [class grails.plugin.remotessh.util.RemotesshService] of type [class org.grails.core.DefaultGrailsServiceClass]: InvocationTargetException
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1119) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1014) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbeanFactory.doGetBean(AbstractBeanFactory.java:299) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:116) ~[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:606) ~[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:462) ~[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118) ~[spring-boot-1.2.3.RELEASE.jar:1.2.3.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686) ~[spring-boot-1.2.3.RELEASE.jar:1.2.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:320) ~[spring-boot-1.2.3.RELEASE.jar:1.2.3.RELEASE]
at grails.boot.GrailsApp.run(GrailsApp.groovy:49) [grails-core-3.0.1.jar:3.0.1]
at grails.boot.GrailsApp.run(GrailsApp.groovy:254) [grails-core-3.0.1.jar:3.0.1]
at grails.boot.GrailsApp.run(GrailsApp.groovy:243) [grails-core-3.0.1.jar:3.0.1]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_79]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_79]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_79]
at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_79]
at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1270) [springloaded-1.2.3.RELEASE.jar:1.2.3.RELEASE]
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.javaroovy-2.4.3.jar:2.4.3]
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324) [groovy-2.4.3.jar:2.4.3]
at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.invoke(StaticMetaMethodSite.java:43) [groovy-2.4.3.jar:2.4.3]
at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.call(StaticMetaMethodSite.java:88) [groovy-2.4.3.jar:2.4.3]
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) [groovy-2.4.3.jar:2.4.3]
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsApplicationPostProcessor' defined in testg3.rssh.Application: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [grails.boot.config.GrailsApplicationPostProcessor]: Factory method 'grailsApplicationPostProcessor' threw exception; nested exception is org.grails.core.exceptions.GrailsRuntimeException: Error instantiated artefact class [class grails.plugin.remotessh.util.RemotesshService] of type [class org.grails.core.DefaultGrailsServiceClass]: InvocationTargetException
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1119)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1014)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:110) [groovy-2.4.3.jar:2.4.3]
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:122) [groovy-2.4.3.jar:2.4.3]
at testg3.rssh.Application.main(Application.groovy:8) [main/:na]
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [grails.boot.config.GrailsApplicationPostProcessor]: Factory method 'grailsApplicationPostProcessor' threw exception; nested exception is org.grails.core.exceptions.GrailsRuntimeException: Error instantiated artefact class [class grails.plugin.remotessh.util.RemotesshService] of type [class org.grails.core.DefaultGrailsServiceClass]: InvocationTargetException
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
... 30 common frames omitted
Caused by: org.grails.core.exceptions.GrailsRuntimeException: Error instantiated artefact class [class grails.plugin.remotessh.util.RemotesshService] of type [class org.grails.core.DefaultGrailsServiceClass]: InvocationTargetException
at grails.core.ArtefactHandlerAdapter.newArtefactClass(ArtefactHandlerAdapter.java:169) ~[grails-core-3.0.1.jar:3.0.1]
at grails.core.DefaultGrailsApplication.addArtefact(DefaultGrailsApplication.java:784) ~[grae-3.0.1.jar:3.0.1]
at grails.core.DefaultGrailsApplication.addOverridableArtefact(DefaultGrailsApplication.java:778) ~[grails-core-3.0.1.jar:3.0.1]
at grails.core.DefaultGrailsApplication.addOverridableArtefact(DefaultGrailsApplication.java:763) ~[grails-core-3.0.1.jar:3.0.1]
at org.grails.plugins.AbstractGrailsPluginManager.registerProvidedArtefacts(AbstractGrailsPluginManager.java:309) ~[grails-core-3.0.1.jar:3.0.1]
at grails.boot.config.GrailsApplicationPostProcessor.performGrailsInitializationSequence(GrailsApplicationPostProcessor.groovy:103) ~[grails-core-3.0.1.jar:3.0.1]
at grails.boot.config.GrailsApplicationPostProcessor.initializeGrailsApplication(GrailsApplicationPostProcessor.groovy:89) ~[grails-core-3.0.1.jar:3.0.1]
at grails.boot.config.GrailsApplicationPostProcessor.<init>(GrailsApplicationPostProcessor.groovy:76) ~[grails-core-3.0.1.jar:3.0.1]
at grails.boot.config.GrailsAutoConfiguration.grailsApplicationPostProcessor(GrailsAutoConfiguration.groovy:38) ~[grails-core-3.0.1.jar:3.0.1]
at testg3.rssh.Application.grailsApplicationPostProcessor(Application.groovy) [main/:na]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:116)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactProcessors(AbstractApplicationContext.java:606)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:462)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
at grails.boot.GrailsApp.run(GrailsApp.groovy:49)
at grails.boot.GrailsApp.run(GrailsApp.groovy:254)
at grails.boot.GrailsApp.run(GrailsApp.groovy:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1270)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)
at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.invoke(StaticMetaMethodSite.java:43)
at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.call(StaticMetaMethodSite.java:88)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:110)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:122)
at testg3.rssh.Application.main(Application.groovy:8)
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [grails.boot.config.GrailsApplicationPostProcessor]: Factory method 'grailsApplicationPostProcessor' threw exception; nested exception is org.grails.core.exceptions.GrailsRuntimeException: Error instantiated artefact class [class grails.plugin.remotessh.util.RemotesshService] of type [class org.grails.core.                                                                              DefaultGrailsServiceClass]: InvocationTargetException
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
... 30 more
Caused by: org.grails.core.exceptions.GrailsRuntimeException: Error instantiated artefact class [class grails.plugin.remotessh.util.RemotesshService] of type [class org.grails.core.DefaultGrailsServiceClass]: InvocationTargetException
at grails.core.ArtefactHandlerAdapter.newArtefactClass(ArtefactHandlerAdapter.java:169)
at grails.core.DefaultGrailsApplication.addArtefact(DefaultGrailsApplication.java:784)
at grails.core.DefaultGrailsApplication.addOverridableArtefact(DefaultGrailsApplication.java:778)
at grails.core.DefaultGrailsApplication.addOverridableArtefact(DefaultGrailsApplication.java:763)
at org.grails.plugins.AbstractGrailsPluginManager.registerProvidedArtefacts(AbstractGrailsPluginManager.java:309)
at grails.boot.config.GrailsApplicationPostProcessor.performGrailsInitializationSequence(GrailsApplicationPostProcessor.groovy:103)
at grails.boot.config.GrailsApplicationPostProcessor.initializeGrailsApplication(GrailsApplicationPostProcessor.groovy:89)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_79]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_79]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_79]
at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_79]
at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1270) [springloaded-1.2.3.RELEASE.jar:1.2.3.RELEASE]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
... 31 common frames omitted
Caused by: java.lang.reflect.InvocationTargetException: null
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.7.0_79]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccel.java:57) ~[na:1.7.0_79]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.7.0_79]
at java.lang.reflect.Constructor.newInstance(Constructor.java:526) ~[na:1.7.0_79]
at org.springsource.loaded.ri.ReflectiveInterceptor.jlrConstructorNewInstance(ReflectiveInterceptor.java:1002) [springloaded-1.2.3.RELEASE.jar:1.2.3.RELEASE]
at grails.core.ArtefactHandlerAdapter.newArtefactClass(ArtefactHandlerAdapter.java:160) ~[grails-core-3.0.1.jar:3.0.1]
... 46 common frames omitted
Caused by: java.lang.NoClassDefFoundError: reactor/bus/Observable
at java.lang.Class.getDeclaredMethods0(Native Method) ~[na:1.7.0_79]
at java.lang.Class.privateGetDeclaredMethods(Class.java:2615) ~[na:1.7.0_79]
at java.lang.Class.getDeclaredMethods(Class.java:1860) ~[na:1.7.0_79]
at org.springsource.loaded.ri.ReflectiveInterceptor.jlClassGetDeclaredMethods(ReflectiveInterceptor.java:145) [springloaded-1.2.3.RELEASE.jar:1.2.3.RELEASE]
at org.grails.core.util.ClassPropertyFetcher.init(ClassPropertyFetcher.java:185) ~[grails-core-3.0.1.jar:3.0.1]
at org.grails.core.util.ClassPropertyFetcher.<init>(ClassPropertyFetcher.java:95) ~[grails-core-3.0.1.jar:3.0.1]
at org.grails.core.util.ClassPropertyFetcher.forClass(ClassPropertyFetcher.java:86) ~[grails-core-3.0.1.jar:3.0.1]
at org.grails.core.util.ClassPropertyFetcher.forClass(ClassPropertyFetcher.java:61) ~[grails-core-3.0.1.jar:3.0.1]
at org.grails.core.AbstractGrailsClass.<init>(AbstractGrailsClass.java:91) ~[grails-core-3.0.1.jar:3.0.1]
at org.grails.core.AbstractInjectableGrailsClass.<init>(AbstractInjectableGrailsClass.java:31) ~[grails-core-3.0.1.jar:3.0.1]
at org.grails.core.DefaultGrailsServiceClass.<init>(DefaultGrailsServiceClass.java:32) ~[grails-core-3.0.1.jar:3.0.1]
... 52 common frames omitted
Caused by: java.lang.ClassNotFoundException: reactor.bus.Observable
at java.net.URLClassLoader$1.run(URLClassLoader.java:366) ~[na:1.7.0_79]
at java.net.URLClassLoader$1.run(URLClassLoader.java:355) ~[na:1.7.0_79]
asecurity.AccessController.doPrivileged(Native Method) ~[na:1.7.0_79]
at java.net.URLClassLoader.findClass(URLClassLoader.java:354) ~[na:1.7.0_79]
at java.lang.ClassLoader.loadClass(ClassLoader.java:425) ~[na:1.7.0_79]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) ~[na:1.7.0_79]
at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ~[na:1.7.0_79]
... 63 common frames omitted
at grails.boot.config.GrailsApplicationPostProcessor.<init>(GrailsApplicationPostProcessor.groovy:76)
at grails.boot.config.GrailsAutoConfiguration.grailsApplicationPostProcessor(GrailsAutoConfiguration.groovy:38)
at testg3.rssh.Application.grailsApplicationPostProcessor(Application.groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1270)
at org.springframework.beans.factory.support.SimpleInstonStrategy.instantiate(SimpleInstantiationStrategy.java:162)
... 31 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.springsource.loaded.ri.ReflectiveInterceptor.jlrConstructorNewInstance(ReflectiveInterceptor.java:1002)
at grails.core.ArtefactHandlerAdapter.newArtefactClass(ArtefactHandlerAdapter.java:160)
... 46 more
Caused by: java.lang.NoClassDefFoundError: reactor/bus/Observable
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2615)
at java.lang.Class.getDeclaredMethods(Class.java:1860)
at org.springsource.loaded.ri.ReflectiveInterceptor.jlClassGetDeclaredMethods(ReflectiveInterceptor.java:145)
at org.grails.core.util.ClassPropertyFetcher.init(ClassPropertyFetcher.java:185)
at org.grails.core.util.ClassPropertyFetcher.<init>(ClassPropertyFetcher.java:95)
at org.grails.core.util.ClassPropertyFetcher.forClass(ClassPropertyFetcher.java:86)
at org.grails.core.util.ClassPropertyFetcher.forClass(ClassPropertyFetcher.java:61)
at org.grails.core.AbstractGrailsClass.<init>(AbstractGrailsClass.java:91)
at org.grails.core.AbstractInjectableGrailsClass.<init>(AbstractInjectableGrailsClass.java:31)
at org.grails.core.DefaultGrailsServiceClass.<init>(DefaultGrailsServiceClass.java:32)
... 52 more
Caused by: java.lang.ClassNotFoundException: reactor.bus.Observable
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$Appader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 63 more
:testg3-rssh:bootRun FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':testg3-rssh:bootRun'.
> Process 'command '/usr/lib/jvm/jdk1.7.0_79/bin/java'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 11.318 secs
| Error Failed to start server (Use --stacktrace to see the full trace)





______________

So here it is me copying file back doing a clean and starting up again ..


~/Documents/workspace-grails3/testg3-rssh$ ls -l ../remotessh/grails-app/services/grails/plugin/remotessh/
total 0
~/Documents/workspace-grails3/testg3-rssh$ cp ~/RemotesshService.groovy ../remotessh/grails-app/services/grails/plugin/remotessh/
~/Documents/workspace-grails3/testg3-rssh$ cat ../remotessh/grails-app/services/grails/plugin/remotessh/RemotesshService.groovy 
package grails.plugin.remotessh.util

class RemotesshService {


}
~/Documents/workspace-grails3/testg3-rssh$ grails clean
:testg3-rssh:assetClean UP-TO-DATE
:testg3-rssh:clean

BUILD SUCCESSFUL

Total time: 10.469 secs
~/Documents/workspace-grails3/testg3-rssh$ grails run-app

BUILD SUCCESSFUL

Total time: 3.567 secs
:remotessh:compileAstJava UP-TO-DATE
:remotessh:compileAstGroovy UP-TO-DATE
:remotessh:processAstResources UP-TO-DATE
:remotessh:astClasses UP-TO-DATE
:remotessh:compileJava UP-TO-DATE
:remotessh:configScript UP-TO-DATE
:remotessh:compileGroovy
:remotessh:copyAstClasses UP-TO-DATE
:remotessh:copyAssets UP-TO-DATE
:remotessh:copyCommands UP-TO-DATE
:remotessh:copyTemplates UP-TO-DATE
:remotessh:processResources UP-TO-DATE
:remotessh:classes
:remotessh:compileWebappGroovyPages UP-TO-DATE
:remotessh:compileGroovyPages
:remotessh:jar
:testg3-rssh:compileJava UP-TO-DATE
:testg3-rssh:compileGroovy
:testg3-rssh:processResources
:testg3-rssh:classes
:testg3-rssh:findMainClass
:testg3-rssh:bootRun
ERROR grails.boot.GrailsApp - Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsApplicationPostProcessor' defined in testg3.rssh.Application: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [grails.boot.config.GrailsApplicationPostProcessor]: Factory method 'grailsApplicationPostProcessor' threw exception; nested exception is org.grails.core.exceptions.GrailsRuntimeException: Error instantiated artefact class [class grails.plugin.remotessh.util.RemotesshService] of type [class org.grails.core.DefaultGrailsServiceClass]: InvocationTargetException
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1119) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1014) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]

I have tried clearing out ~/.gradle/cache and m2 folders and am out of ideas.


--
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/085124ca-df21-4134-a401-6a09b6fd1f86%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Error instantiated artefact class ... of type [class org.grails.core.DefaultGrailsServiceClass]

vahid
Before anyone points/spots out - the package util was previous test before doing this post, even with it change to correct package

package grails.plugin.remotessh

it is still the same issue. 



On Monday, June 22, 2015 at 9:16:26 PM UTC+1, Vahid Hedayati wrote:
Hi All 

Wondering if anyone can help 

Linux grails 3.0.1 (Tried grails 3.0.2 too)
On 2nd machine, identical issue.

Unsure what is going wrong:


~/workspace-grails3/testg3-rssh$ cat ../remotessh/grails-app/services/grails/plugin/remotessh/RemotesshService.groovy 
package grails.plugin.remotessh.util

class RemotesshService {


}

~/workspace-grails3/testg3-rssh$ mv ../remotessh/grails-app/services/grails/plugin/remotessh/RemotesshService.groovy ~/

~/Documents/workspace-grails3/testg3-rssh$ grails run-app
:remotessh:compileAstJava UP-TO-DATE
:remotessh:compileAstGroovy UP-TO-DATE
:remotessh:processAstResources UP-TO-DATE
:remotessh:astClasses UP-TO-DATE
:remotessh:compileJava UP-TO-DATE
:remotessh:configScript UP-TO-DATE
:remotessh:compileGroovy
:remotessh:copyAstClasses UP-TO-DATE
:remotessh:copyAssets UP-TO-DATE
:remotessh:copyCommands UP-TO-DATE
:remotessh:copyTemplates UP-TO-DATE
:remotessh:processResources UP-TO-DATE
:remotessh:classes
:remotessh:compileWebappGroovyPages UP-TO-DATE
:remotessh:compileGroovyPages
:remotessh:jar
:testg3-rssh:compileJava UP-TO-DATE
:testg3-rssh:compileGroovy
:testg3-rssh:processResources
:testg3-rssh:classes
:testg3-rssh:findMainClass
:testg3-rssh:bootRun
Grails application running at <a href="http://localhost:8080" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Flocalhost%3A8080\46sa\75D\46sntz\0751\46usg\75AFQjCNHe-wK21qitFTuLNvLF8GFyaOoS3w';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Flocalhost%3A8080\46sa\75D\46sntz\0751\46usg\75AFQjCNHe-wK21qitFTuLNvLF8GFyaOoS3w';return true;">http://localhost:8080
> Building 95% > :testg3-rssh:bootRun


Presto all works fine, now if I move that service back in (currently blank) did have content, I get this stack trace:




grails run-app
:remotessh:compileAstJava UP-TO-DATE
:remotessh:compileAstGroovy UP-TO-DATE
:remotessh:processAstResources UP-TO-DATE
:remotessh:astClasses UP-TO-DATE
:remotessh:compileJava UP-TO-DATE
:remotessh:configScript UP-TO-DATE
:remotessh:compileGroovy
:remotessh:copyAstClasses UP-TO-DATE
:remotessh:copyAssets UP-TO-DATE
:remotessh:copyCommands UP-TO-DATE
:remotessh:copyTemplates UP-TO-DATE
:remotessh:processResources UP-TO-DATE
:remotessh:classes
:remotessh:compileWebappGroovyPages UP-TO-DATE
:remotessh:compileGroovyPages
:remotessh:jar
:testg3-rssh:compileJava UP-TO-DATE
:testg3-rssh:compileGroovy
:testg3-rssh:processResources
:testg3-rssh:classes
:testg3-rssh:findMainClass
:testg3-rssh:bootRun
ERROR grails.boot.GrailsApp - Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsApplicationPostProcessor' defined in testg3.rssh.Application: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [grails.boot.config.GrailsApplicationPostProcessor]: Factory method 'grailsApplicationPostProcessor' threw exception; nested exception is org.grails.core.exceptions.GrailsRuntimeException: Error instantiated artefact class [class grails.plugin.remotessh.util.RemotesshService] of type [class org.grails.core.DefaultGrailsServiceClass]: InvocationTargetException
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1119) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1014) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbeanFactory.doGetBean(AbstractBeanFactory.java:299) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:116) ~[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:606) ~[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:462) ~[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118) ~[spring-boot-1.2.3.RELEASE.jar:1.2.3.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686) ~[spring-boot-1.2.3.RELEASE.jar:1.2.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:320) ~[spring-boot-1.2.3.RELEASE.jar:1.2.3.RELEASE]
at grails.boot.GrailsApp.run(GrailsApp.groovy:49) [grails-core-3.0.1.jar:3.0.1]
at grails.boot.GrailsApp.run(GrailsApp.groovy:254) [grails-core-3.0.1.jar:3.0.1]
at grails.boot.GrailsApp.run(GrailsApp.groovy:243) [grails-core-3.0.1.jar:3.0.1]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_79]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_79]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_79]
at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_79]
at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1270) [springloaded-1.2.3.RELEASE.jar:1.2.3.RELEASE]
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.javaroovy-2.4.3.jar:2.4.3]
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324) [groovy-2.4.3.jar:2.4.3]
at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.invoke(StaticMetaMethodSite.java:43) [groovy-2.4.3.jar:2.4.3]
at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.call(StaticMetaMethodSite.java:88) [groovy-2.4.3.jar:2.4.3]
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) [groovy-2.4.3.jar:2.4.3]
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsApplicationPostProcessor' defined in testg3.rssh.Application: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [grails.boot.config.GrailsApplicationPostProcessor]: Factory method 'grailsApplicationPostProcessor' threw exception; nested exception is org.grails.core.exceptions.GrailsRuntimeException: Error instantiated artefact class [class grails.plugin.remotessh.util.RemotesshService] of type [class org.grails.core.DefaultGrailsServiceClass]: InvocationTargetException
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1119)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1014)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:110) [groovy-2.4.3.jar:2.4.3]
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:122) [groovy-2.4.3.jar:2.4.3]
at testg3.rssh.Application.main(Application.groovy:8) [main/:na]
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [grails.boot.config.GrailsApplicationPostProcessor]: Factory method 'grailsApplicationPostProcessor' threw exception; nested exception is org.grails.core.exceptions.GrailsRuntimeException: Error instantiated artefact class [class grails.plugin.remotessh.util.RemotesshService] of type [class org.grails.core.DefaultGrailsServiceClass]: InvocationTargetException
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
... 30 common frames omitted
Caused by: org.grails.core.exceptions.GrailsRuntimeException: Error instantiated artefact class [class grails.plugin.remotessh.util.RemotesshService] of type [class org.grails.core.DefaultGrailsServiceClass]: InvocationTargetException
at grails.core.ArtefactHandlerAdapter.newArtefactClass(ArtefactHandlerAdapter.java:169) ~[grails-core-3.0.1.jar:3.0.1]
at grails.core.DefaultGrailsApplication.addArtefact(DefaultGrailsApplication.java:784) ~[grae-3.0.1.jar:3.0.1]
at grails.core.DefaultGrailsApplication.addOverridableArtefact(DefaultGrailsApplication.java:778) ~[grails-core-3.0.1.jar:3.0.1]
at grails.core.DefaultGrailsApplication.addOverridableArtefact(DefaultGrailsApplication.java:763) ~[grails-core-3.0.1.jar:3.0.1]
at org.grails.plugins.AbstractGrailsPluginManager.registerProvidedArtefacts(AbstractGrailsPluginManager.java:309) ~[grails-core-3.0.1.jar:3.0.1]
at grails.boot.config.GrailsApplicationPostProcessor.performGrailsInitializationSequence(GrailsApplicationPostProcessor.groovy:103) ~[grails-core-3.0.1.jar:3.0.1]
at grails.boot.config.GrailsApplicationPostProcessor.initializeGrailsApplication(GrailsApplicationPostProcessor.groovy:89) ~[grails-core-3.0.1.jar:3.0.1]
at grails.boot.config.GrailsApplicationPostProcessor.<init>(GrailsApplicationPostProcessor.groovy:76) ~[grails-core-3.0.1.jar:3.0.1]
at grails.boot.config.GrailsAutoConfiguration.grailsApplicationPostProcessor(GrailsAutoConfiguration.groovy:38) ~[grails-core-3.0.1.jar:3.0.1]
at testg3.rssh.Application.grailsApplicationPostProcessor(Application.groovy) [main/:na]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:116)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactProcessors(AbstractApplicationContext.java:606)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:462)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
at grails.boot.GrailsApp.run(GrailsApp.groovy:49)
at grails.boot.GrailsApp.run(GrailsApp.groovy:254)
at grails.boot.GrailsApp.run(GrailsApp.groovy:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1270)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)
at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.invoke(StaticMetaMethodSite.java:43)
at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.call(StaticMetaMethodSite.java:88)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:110)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:122)
at testg3.rssh.Application.main(Application.groovy:8)
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [grails.boot.config.GrailsApplicationPostProcessor]: Factory method 'grailsApplicationPostProcessor' threw exception; nested exception is org.grails.core.exceptions.GrailsRuntimeException: Error instantiated artefact class [class grails.plugin.remotessh.util.RemotesshService] of type [class org.grails.core.                                                                              DefaultGrailsServiceClass]: InvocationTargetException
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
... 30 more
Caused by: org.grails.core.exceptions.GrailsRuntimeException: Error instantiated artefact class [class grails.plugin.remotessh.util.RemotesshService] of type [class org.grails.core.DefaultGrailsServiceClass]: InvocationTargetException
at grails.core.ArtefactHandlerAdapter.newArtefactClass(ArtefactHandlerAdapter.java:169)
at grails.core.DefaultGrailsApplication.addArtefact(DefaultGrailsApplication.java:784)
at grails.core.DefaultGrailsApplication.addOverridableArtefact(DefaultGrailsApplication.java:778)
at grails.core.DefaultGrailsApplication.addOverridableArtefact(DefaultGrailsApplication.java:763)
at org.grails.plugins.AbstractGrailsPluginManager.registerProvidedArtefacts(AbstractGrailsPluginManager.java:309)
at grails.boot.config.GrailsApplicationPostProcessor.performGrailsInitializationSequence(GrailsApplicationPostProcessor.groovy:103)
at grails.boot.config.GrailsApplicationPostProcessor.initializeGrailsApplication(GrailsApplicationPostProcessor.groovy:89)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_79]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_79]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_79]
at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_79]
at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1270) [springloaded-1.2.3.RELEASE.jar:1.2.3.RELEASE]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
... 31 common frames omitted
Caused by: java.lang.reflect.InvocationTargetException: null
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.7.0_79]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccel.java:57) ~[na:1.7.0_79]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.7.0_79]
at java.lang.reflect.Constructor.newInstance(Constructor.java:526) ~[na:1.7.0_79]
at org.springsource.loaded.ri.ReflectiveInterceptor.jlrConstructorNewInstance(ReflectiveInterceptor.java:1002) [springloaded-1.2.3.RELEASE.jar:1.2.3.RELEASE]
at grails.core.ArtefactHandlerAdapter.newArtefactClass(ArtefactHandlerAdapter.java:160) ~[grails-core-3.0.1.jar:3.0.1]
... 46 common frames omitted
Caused by: java.lang.NoClassDefFoundError: reactor/bus/Observable
at java.lang.Class.getDeclaredMethods0(Native Method) ~[na:1.7.0_79]
at java.lang.Class.privateGetDeclaredMethods(Class.java:2615) ~[na:1.7.0_79]
at java.lang.Class.getDeclaredMethods(Class.java:1860) ~[na:1.7.0_79]
at org.springsource.loaded.ri.ReflectiveInterceptor.jlClassGetDeclaredMethods(ReflectiveInterceptor.java:145) [springloaded-1.2.3.RELEASE.jar:1.2.3.RELEASE]
at org.grails.core.util.ClassPropertyFetcher.init(ClassPropertyFetcher.java:185) ~[grails-core-3.0.1.jar:3.0.1]
at org.grails.core.util.ClassPropertyFetcher.<init>(ClassPropertyFetcher.java:95) ~[grails-core-3.0.1.jar:3.0.1]
at org.grails.core.util.ClassPropertyFetcher.forClass(ClassPropertyFetcher.java:86) ~[grails-core-3.0.1.jar:3.0.1]
at org.grails.core.util.ClassPropertyFetcher.forClass(ClassPropertyFetcher.java:61) ~[grails-core-3.0.1.jar:3.0.1]
at org.grails.core.AbstractGrailsClass.<init>(AbstractGrailsClass.java:91) ~[grails-core-3.0.1.jar:3.0.1]
at org.grails.core.AbstractInjectableGrailsClass.<init>(AbstractInjectableGrailsClass.java:31) ~[grails-core-3.0.1.jar:3.0.1]
at org.grails.core.DefaultGrailsServiceClass.<init>(DefaultGrailsServiceClass.java:32) ~[grails-core-3.0.1.jar:3.0.1]
... 52 common frames omitted
Caused by: java.lang.ClassNotFoundException: reactor.bus.Observable
at java.net.URLClassLoader$1.run(URLClassLoader.java:366) ~[na:1.7.0_79]
at java.net.URLClassLoader$1.run(URLClassLoader.java:355) ~[na:1.7.0_79]
asecurity.AccessController.doPrivileged(Native Method) ~[na:1.7.0_79]
at java.net.URLClassLoader.findClass(URLClassLoader.java:354) ~[na:1.7.0_79]
at java.lang.ClassLoader.loadClass(ClassLoader.java:425) ~[na:1.7.0_79]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) ~[na:1.7.0_79]
at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ~[na:1.7.0_79]
... 63 common frames omitted
at grails.boot.config.GrailsApplicationPostProcessor.<init>(GrailsApplicationPostProcessor.groovy:76)
at grails.boot.config.GrailsAutoConfiguration.grailsApplicationPostProcessor(GrailsAutoConfiguration.groovy:38)
at testg3.rssh.Application.grailsApplicationPostProcessor(Application.groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1270)
at org.springframework.beans.factory.support.SimpleInstonStrategy.instantiate(SimpleInstantiationStrategy.java:162)
... 31 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.springsource.loaded.ri.ReflectiveInterceptor.jlrConstructorNewInstance(ReflectiveInterceptor.java:1002)
at grails.core.ArtefactHandlerAdapter.newArtefactClass(ArtefactHandlerAdapter.java:160)
... 46 more
Caused by: java.lang.NoClassDefFoundError: reactor/bus/Observable
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2615)
at java.lang.Class.getDeclaredMethods(Class.java:1860)
at org.springsource.loaded.ri.ReflectiveInterceptor.jlClassGetDeclaredMethods(ReflectiveInterceptor.java:145)
at org.grails.core.util.ClassPropertyFetcher.init(ClassPropertyFetcher.java:185)
at org.grails.core.util.ClassPropertyFetcher.<init>(ClassPropertyFetcher.java:95)
at org.grails.core.util.ClassPropertyFetcher.forClass(ClassPropertyFetcher.java:86)
at org.grails.core.util.ClassPropertyFetcher.forClass(ClassPropertyFetcher.java:61)
at org.grails.core.AbstractGrailsClass.<init>(AbstractGrailsClass.java:91)
at org.grails.core.AbstractInjectableGrailsClass.<init>(AbstractInjectableGrailsClass.java:31)
at org.grails.core.DefaultGrailsServiceClass.<init>(DefaultGrailsServiceClass.java:32)
... 52 more
Caused by: java.lang.ClassNotFoundException: reactor.bus.Observable
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$Appader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 63 more
:testg3-rssh:bootRun FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':testg3-rssh:bootRun'.
> Process 'command '/usr/lib/jvm/jdk1.7.0_79/bin/java'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 11.318 secs
| Error Failed to start server (Use --stacktrace to see the full trace)





______________

So here it is me copying file back doing a clean and starting up again ..


~/Documents/workspace-grails3/testg3-rssh$ ls -l ../remotessh/grails-app/services/grails/plugin/remotessh/
total 0
~/Documents/workspace-grails3/testg3-rssh$ cp ~/RemotesshService.groovy ../remotessh/grails-app/services/grails/plugin/remotessh/
~/Documents/workspace-grails3/testg3-rssh$ cat ../remotessh/grails-app/services/grails/plugin/remotessh/RemotesshService.groovy 
package grails.plugin.remotessh.util

class RemotesshService {


}
~/Documents/workspace-grails3/testg3-rssh$ grails clean
:testg3-rssh:assetClean UP-TO-DATE
:testg3-rssh:clean

BUILD SUCCESSFUL

Total time: 10.469 secs
~/Documents/workspace-grails3/testg3-rssh$ grails run-app

BUILD SUCCESSFUL

Total time: 3.567 secs
:remotessh:compileAstJava UP-TO-DATE
:remotessh:compileAstGroovy UP-TO-DATE
:remotessh:processAstResources UP-TO-DATE
:remotessh:astClasses UP-TO-DATE
:remotessh:compileJava UP-TO-DATE
:remotessh:configScript UP-TO-DATE
:remotessh:compileGroovy
:remotessh:copyAstClasses UP-TO-DATE
:remotessh:copyAssets UP-TO-DATE
:remotessh:copyCommands UP-TO-DATE
:remotessh:copyTemplates UP-TO-DATE
:remotessh:processResources UP-TO-DATE
:remotessh:classes
:remotessh:compileWebappGroovyPages UP-TO-DATE
:remotessh:compileGroovyPages
:remotessh:jar
:testg3-rssh:compileJava UP-TO-DATE
:testg3-rssh:compileGroovy
:testg3-rssh:processResources
:testg3-rssh:classes
:testg3-rssh:findMainClass
:testg3-rssh:bootRun
ERROR grails.boot.GrailsApp - Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsApplicationPostProcessor' defined in testg3.rssh.Application: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [grails.boot.config.GrailsApplicationPostProcessor]: Factory method 'grailsApplicationPostProcessor' threw exception; nested exception is org.grails.core.exceptions.GrailsRuntimeException: Error instantiated artefact class [class grails.plugin.remotessh.util.RemotesshService] of type [class org.grails.core.DefaultGrailsServiceClass]: InvocationTargetException
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1119) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1014) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]

I have tried clearing out ~/.gradle/cache and m2 folders and am out of ideas.


--
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/ad6fab13-abc8-46b5-8481-9050c04986f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Error instantiated artefact class ... of type [class org.grails.core.DefaultGrailsServiceClass]

vahid
so did a lot of playing around found as an abstract service the issue went away but I think as an abstract class it was no longer an injectable service.


Anyhow took bit by bit apart, finally ended up creating a new plugin a new test app and putting bit by bit back in. Still unsure what the cause/issue was since it seems to be back to what it was since it is now working.


On Monday, June 22, 2015 at 9:19:52 PM UTC+1, Vahid Hedayati wrote:
Before anyone points/spots out - the package util was previous test before doing this post, even with it change to correct package

package grails.plugin.remotessh

it is still the same issue. 



On Monday, June 22, 2015 at 9:16:26 PM UTC+1, Vahid Hedayati wrote:
Hi All 

Wondering if anyone can help 

Linux grails 3.0.1 (Tried grails 3.0.2 too)
On 2nd machine, identical issue.

Unsure what is going wrong:


~/workspace-grails3/testg3-rssh$ cat ../remotessh/grails-app/services/grails/plugin/remotessh/RemotesshService.groovy 
package grails.plugin.remotessh.util

class RemotesshService {


}

~/workspace-grails3/testg3-rssh$ mv ../remotessh/grails-app/services/grails/plugin/remotessh/RemotesshService.groovy ~/

~/Documents/workspace-grails3/testg3-rssh$ grails run-app
:remotessh:compileAstJava UP-TO-DATE
:remotessh:compileAstGroovy UP-TO-DATE
:remotessh:processAstResources UP-TO-DATE
:remotessh:astClasses UP-TO-DATE
:remotessh:compileJava UP-TO-DATE
:remotessh:configScript UP-TO-DATE
:remotessh:compileGroovy
:remotessh:copyAstClasses UP-TO-DATE
:remotessh:copyAssets UP-TO-DATE
:remotessh:copyCommands UP-TO-DATE
:remotessh:copyTemplates UP-TO-DATE
:remotessh:processResources UP-TO-DATE
:remotessh:classes
:remotessh:compileWebappGroovyPages UP-TO-DATE
:remotessh:compileGroovyPages
:remotessh:jar
:testg3-rssh:compileJava UP-TO-DATE
:testg3-rssh:compileGroovy
:testg3-rssh:processResources
:testg3-rssh:classes
:testg3-rssh:findMainClass
:testg3-rssh:bootRun
Grails application running at <a href="http://localhost:8080" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Flocalhost%3A8080\46sa\75D\46sntz\0751\46usg\75AFQjCNHe-wK21qitFTuLNvLF8GFyaOoS3w';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Flocalhost%3A8080\46sa\75D\46sntz\0751\46usg\75AFQjCNHe-wK21qitFTuLNvLF8GFyaOoS3w';return true;">http://localhost:8080
> Building 95% > :testg3-rssh:bootRun


Presto all works fine, now if I move that service back in (currently blank) did have content, I get this stack trace:




grails run-app
:remotessh:compileAstJava UP-TO-DATE
:remotessh:compileAstGroovy UP-TO-DATE
:remotessh:processAstResources UP-TO-DATE
:remotessh:astClasses UP-TO-DATE
:remotessh:compileJava UP-TO-DATE
:remotessh:configScript UP-TO-DATE
:remotessh:compileGroovy
:remotessh:copyAstClasses UP-TO-DATE
:remotessh:copyAssets UP-TO-DATE
:remotessh:copyCommands UP-TO-DATE
:remotessh:copyTemplates UP-TO-DATE
:remotessh:processResources UP-TO-DATE
:remotessh:classes
:remotessh:compileWebappGroovyPages UP-TO-DATE
:remotessh:compileGroovyPages
:remotessh:jar
:testg3-rssh:compileJava UP-TO-DATE
:testg3-rssh:compileGroovy
:testg3-rssh:processResources
:testg3-rssh:classes
:testg3-rssh:findMainClass
:testg3-rssh:bootRun
ERROR grails.boot.GrailsApp - Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsApplicationPostProcessor' defined in testg3.rssh.Application: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [grails.boot.config.GrailsApplicationPostProcessor]: Factory method 'grailsApplicationPostProcessor' threw exception; nested exception is org.grails.core.exceptions.GrailsRuntimeException: Error instantiated artefact class [class grails.plugin.remotessh.util.RemotesshService] of type [class org.grails.core.DefaultGrailsServiceClass]: InvocationTargetException
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1119) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1014) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbeanFactory.doGetBean(AbstractBeanFactory.java:299) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:116) ~[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:606) ~[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:462) ~[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118) ~[spring-boot-1.2.3.RELEASE.jar:1.2.3.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686) ~[spring-boot-1.2.3.RELEASE.jar:1.2.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:320) ~[spring-boot-1.2.3.RELEASE.jar:1.2.3.RELEASE]
at grails.boot.GrailsApp.run(GrailsApp.groovy:49) [grails-core-3.0.1.jar:3.0.1]
at grails.boot.GrailsApp.run(GrailsApp.groovy:254) [grails-core-3.0.1.jar:3.0.1]
at grails.boot.GrailsApp.run(GrailsApp.groovy:243) [grails-core-3.0.1.jar:3.0.1]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_79]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_79]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_79]
at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_79]
at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1270) [springloaded-1.2.3.RELEASE.jar:1.2.3.RELEASE]
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.javaroovy-2.4.3.jar:2.4.3]
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324) [groovy-2.4.3.jar:2.4.3]
at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.invoke(StaticMetaMethodSite.java:43) [groovy-2.4.3.jar:2.4.3]
at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.call(StaticMetaMethodSite.java:88) [groovy-2.4.3.jar:2.4.3]
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) [groovy-2.4.3.jar:2.4.3]
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsApplicationPostProcessor' defined in testg3.rssh.Application: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [grails.boot.config.GrailsApplicationPostProcessor]: Factory method 'grailsApplicationPostProcessor' threw exception; nested exception is org.grails.core.exceptions.GrailsRuntimeException: Error instantiated artefact class [class grails.plugin.remotessh.util.RemotesshService] of type [class org.grails.core.DefaultGrailsServiceClass]: InvocationTargetException
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1119)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1014)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:110) [groovy-2.4.3.jar:2.4.3]
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:122) [groovy-2.4.3.jar:2.4.3]
at testg3.rssh.Application.main(Application.groovy:8) [main/:na]
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [grails.boot.config.GrailsApplicationPostProcessor]: Factory method 'grailsApplicationPostProcessor' threw exception; nested exception is org.grails.core.exceptions.GrailsRuntimeException: Error instantiated artefact class [class grails.plugin.remotessh.util.RemotesshService] of type [class org.grails.core.DefaultGrailsServiceClass]: InvocationTargetException
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
... 30 common frames omitted
Caused by: org.grails.core.exceptions.GrailsRuntimeException: Error instantiated artefact class [class grails.plugin.remotessh.util.RemotesshService] of type [class org.grails.core.DefaultGrailsServiceClass]: InvocationTargetException
at grails.core.ArtefactHandlerAdapter.newArtefactClass(ArtefactHandlerAdapter.java:169) ~[grails-core-3.0.1.jar:3.0.1]
at grails.core.DefaultGrailsApplication.addArtefact(DefaultGrailsApplication.java:784) ~[grae-3.0.1.jar:3.0.1]
at grails.core.DefaultGrailsApplication.addOverridableArtefact(DefaultGrailsApplication.java:778) ~[grails-core-3.0.1.jar:3.0.1]
at grails.core.DefaultGrailsApplication.addOverridableArtefact(DefaultGrailsApplication.java:763) ~[grails-core-3.0.1.jar:3.0.1]
at org.grails.plugins.AbstractGrailsPluginManager.registerProvidedArtefacts(AbstractGrailsPluginManager.java:309) ~[grails-core-3.0.1.jar:3.0.1]
at grails.boot.config.GrailsApplicationPostProcessor.performGrailsInitializationSequence(GrailsApplicationPostProcessor.groovy:103) ~[grails-core-3.0.1.jar:3.0.1]
at grails.boot.config.GrailsApplicationPostProcessor.initializeGrailsApplication(GrailsApplicationPostProcessor.groovy:89) ~[grails-core-3.0.1.jar:3.0.1]
at grails.boot.config.GrailsApplicationPostProcessor.<init>(GrailsApplicationPostProcessor.groovy:76) ~[grails-core-3.0.1.jar:3.0.1]
at grails.boot.config.GrailsAutoConfiguration.grailsApplicationPostProcessor(GrailsAutoConfiguration.groovy:38) ~[grails-core-3.0.1.jar:3.0.1]
at testg3.rssh.Application.grailsApplicationPostProcessor(Application.groovy) [main/:na]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:116)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactProcessors(AbstractApplicationContext.java:606)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:462)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
at grails.boot.GrailsApp.run(GrailsApp.groovy:49)
at grails.boot.GrailsApp.run(GrailsApp.groovy:254)
at grails.boot.GrailsApp.run(GrailsApp.groovy:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1270)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)
at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.invoke(StaticMetaMethodSite.java:43)
at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.call(StaticMetaMethodSite.java:88)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:110)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:122)
at testg3.rssh.Application.main(Application.groovy:8)
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [grails.boot.config.GrailsApplicationPostProcessor]: Factory method 'grailsApplicationPostProcessor' threw exception; nested exception is org.grails.core.exceptions.GrailsRuntimeException: Error instantiated artefact class [class grails.plugin.remotessh.util.RemotesshService] of type [class org.grails.core.                                                                              DefaultGrailsServiceClass]: InvocationTargetException
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
... 30 more
Caused by: org.grails.core.exceptions.GrailsRuntimeException: Error instantiated artefact class [class grails.plugin.remotessh.util.RemotesshService] of type [class org.grails.core.DefaultGrailsServiceClass]: InvocationTargetException
at grails.core.ArtefactHandlerAdapter.newArtefactClass(ArtefactHandlerAdapter.java:169)
at grails.core.DefaultGrailsApplication.addArtefact(DefaultGrailsApplication.java:784)
at grails.core.DefaultGrailsApplication.addOverridableArtefact(DefaultGrailsApplication.java:778)
at grails.core.DefaultGrailsApplication.addOverridableArtefact(DefaultGrailsApplication.java:763)
at org.grails.plugins.AbstractGrailsPluginManager.registerProvidedArtefacts(AbstractGrailsPluginManager.java:309)
at grails.boot.config.GrailsApplicationPostProcessor.performGrailsInitializationSequence(GrailsApplicationPostProcessor.groovy:103)
at grails.boot.config.GrailsApplicationPostProcessor.initializeGrailsApplication(GrailsApplicationPostProcessor.groovy:89)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_79]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_79]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_79]
at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_79]
at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1270) [springloaded-1.2.3.RELEASE.jar:1.2.3.RELEASE]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
... 31 common frames omitted
Caused by: java.lang.reflect.InvocationTargetException: null
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.7.0_79]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccel.java:57) ~[na:1.7.0_79]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.7.0_79]
at java.lang.reflect.Constructor.newInstance(Constructor.java:526) ~[na:1.7.0_79]
at org.springsource.loaded.ri.ReflectiveInterceptor.jlrConstructorNewInstance(ReflectiveInterceptor.java:1002) [springloaded-1.2.3.RELEASE.jar:1.2.3.RELEASE]
at grails.core.ArtefactHandlerAdapter.newArtefactClass(ArtefactHandlerAdapter.java:160) ~[grails-core-3.0.1.jar:3.0.1]
... 46 common frames omitted
Caused by: java.lang.NoClassDefFoundError: reactor/bus/Observable
at java.lang.Class.getDeclaredMethods0(Native Method) ~[na:1.7.0_79]
at java.lang.Class.privateGetDeclaredMethods(Class.java:2615) ~[na:1.7.0_79]
at java.lang.Class.getDeclaredMethods(Class.java:1860) ~[na:1.7.0_79]
at org.springsource.loaded.ri.ReflectiveInterceptor.jlClassGetDeclaredMethods(ReflectiveInterceptor.java:145) [springloaded-1.2.3.RELEASE.jar:1.2.3.RELEASE]
at org.grails.core.util.ClassPropertyFetcher.init(ClassPropertyFetcher.java:185) ~[grails-core-3.0.1.jar:3.0.1]
at org.grails.core.util.ClassPropertyFetcher.<init>(ClassPropertyFetcher.java:95) ~[grails-core-3.0.1.jar:3.0.1]
at org.grails.core.util.ClassPropertyFetcher.forClass(ClassPropertyFetcher.java:86) ~[grails-core-3.0.1.jar:3.0.1]
at org.grails.core.util.ClassPropertyFetcher.forClass(ClassPropertyFetcher.java:61) ~[grails-core-3.0.1.jar:3.0.1]
at org.grails.core.AbstractGrailsClass.<init>(AbstractGrailsClass.java:91) ~[grails-core-3.0.1.jar:3.0.1]
at org.grails.core.AbstractInjectableGrailsClass.<init>(AbstractInjectableGrailsClass.java:31) ~[grails-core-3.0.1.jar:3.0.1]
at org.grails.core.DefaultGrailsServiceClass.<init>(DefaultGrailsServiceClass.java:32) ~[grails-core-3.0.1.jar:3.0.1]
... 52 common frames omitted
Caused by: java.lang.ClassNotFoundException: reactor.bus.Observable
at java.net.URLClassLoader$1.run(URLClassLoader.java:366) ~[na:1.7.0_79]
at java.net.URLClassLoader$1.run(URLClassLoader.java:355) ~[na:1.7.0_79]
asecurity.AccessController.doPrivileged(Native Method) ~[na:1.7.0_79]
at java.net.URLClassLoader.findClass(URLClassLoader.java:354) ~[na:1.7.0_79]
at java.lang.ClassLoader.loadClass(ClassLoader.java:425) ~[na:1.7.0_79]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) ~[na:1.7.0_79]
at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ~[na:1.7.0_79]
... 63 common frames omitted
at grails.boot.config.GrailsApplicationPostProcessor.<init>(GrailsApplicationPostProcessor.groovy:76)
at grails.boot.config.GrailsAutoConfiguration.grailsApplicationPostProcessor(GrailsAutoConfiguration.groovy:38)
at testg3.rssh.Application.grailsApplicationPostProcessor(Application.groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1270)
at org.springframework.beans.factory.support.SimpleInstonStrategy.instantiate(SimpleInstantiationStrategy.java:162)
... 31 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.springsource.loaded.ri.ReflectiveInterceptor.jlrConstructorNewInstance(ReflectiveInterceptor.java:1002)
at grails.core.ArtefactHandlerAdapter.newArtefactClass(ArtefactHandlerAdapter.java:160)
... 46 more
Caused by: java.lang.NoClassDefFoundError: reactor/bus/Observable
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2615)
at java.lang.Class.getDeclaredMethods(Class.java:1860)
at org.springsource.loaded.ri.ReflectiveInterceptor.jlClassGetDeclaredMethods(ReflectiveInterceptor.java:145)
at org.grails.core.util.ClassPropertyFetcher.init(ClassPropertyFetcher.java:185)
at org.grails.core.util.ClassPropertyFetcher.<init>(ClassPropertyFetcher.java:95)
at org.grails.core.util.ClassPropertyFetcher.forClass(ClassPropertyFetcher.java:86)
at org.grails.core.util.ClassPropertyFetcher.forClass(ClassPropertyFetcher.java:61)
at org.grails.core.AbstractGrailsClass.<init>(AbstractGrailsClass.java:91)
at org.grails.core.AbstractInjectableGrailsClass.<init>(AbstractInjectableGrailsClass.java:31)
at org.grails.core.DefaultGrailsServiceClass.<init>(DefaultGrailsServiceClass.java:32)
... 52 more
Caused by: java.lang.ClassNotFoundException: reactor.bus.Observable
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$Appader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 63 more
:testg3-rssh:bootRun FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':testg3-rssh:bootRun'.
> Process 'command '/usr/lib/jvm/jdk1.7.0_79/bin/java'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 11.318 secs
| Error Failed to start server (Use --stacktrace to see the full trace)





______________

So here it is me copying file back doing a clean and starting up again ..


~/Documents/workspace-grails3/testg3-rssh$ ls -l ../remotessh/grails-app/services/grails/plugin/remotessh/
total 0
~/Documents/workspace-grails3/testg3-rssh$ cp ~/RemotesshService.groovy ../remotessh/grails-app/services/grails/plugin/remotessh/
~/Documents/workspace-grails3/testg3-rssh$ cat ../remotessh/grails-app/services/grails/plugin/remotessh/RemotesshService.groovy 
package grails.plugin.remotessh.util

class RemotesshService {


}
~/Documents/workspace-grails3/testg3-rssh$ grails clean
:testg3-rssh:assetClean UP-TO-DATE
:testg3-rssh:clean

BUILD SUCCESSFUL

Total time: 10.469 secs
~/Documents/workspace-grails3/testg3-rssh$ grails run-app

BUILD SUCCESSFUL

Total time: 3.567 secs
:remotessh:compileAstJava UP-TO-DATE
:remotessh:compileAstGroovy UP-TO-DATE
:remotessh:processAstResources UP-TO-DATE
:remotessh:astClasses UP-TO-DATE
:remotessh:compileJava UP-TO-DATE
:remotessh:configScript UP-TO-DATE
:remotessh:compileGroovy
:remotessh:copyAstClasses UP-TO-DATE
:remotessh:copyAssets UP-TO-DATE
:remotessh:copyCommands UP-TO-DATE
:remotessh:copyTemplates UP-TO-DATE
:remotessh:processResources UP-TO-DATE
:remotessh:classes
:remotessh:compileWebappGroovyPages UP-TO-DATE
:remotessh:compileGroovyPages
:remotessh:jar
:testg3-rssh:compileJava UP-TO-DATE
:testg3-rssh:compileGroovy
:testg3-rssh:processResources
:testg3-rssh:classes
:testg3-rssh:findMainClass
:testg3-rssh:bootRun
ERROR grails.boot.GrailsApp - Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsApplicationPostProcessor' defined in testg3.rssh.Application: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [grails.boot.config.GrailsApplicationPostProcessor]: Factory method 'grailsApplicationPostProcessor' threw exception; nested exception is org.grails.core.exceptions.GrailsRuntimeException: Error instantiated artefact class [class grails.plugin.remotessh.util.RemotesshService] of type [class org.grails.core.DefaultGrailsServiceClass]: InvocationTargetException
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1119) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1014) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]

I have tried clearing out ~/.gradle/cache and m2 folders and am out of ideas.


--
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/7db1876c-439c-4b23-8f7c-660548802500%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.