rundeck-plugins / rightscale-nodes

Rightscale Nodes Plugin
0 stars 6 forks source link

Investigate SPI exception case #11

Open ahonor opened 10 years ago

ahonor commented 10 years ago

Investigate the cause for the following exception. It seems to cause the plugin to hang on the refresh.

DEBUG: Caught buildRest exception for href /api/servers.xml. Throwable type: com.sun.jersey.spi.service.ServiceConfigurationError Exception in thread "Thread-2115" org.codehaus.groovy.runtime.InvokerInvocationException: com.simplifyops.rundeck.plugin.resources.RightscaleAPIRequest$RequestException: Error while building a client for href /api/servers.xml: com.sun.jersey.spi.inject.InjectableProvider: : java.io.FileNotFoundException: /Users/alexh/Development/rundeck-workspace/2.0.0/libext/cache/rightscale-nodes-1.0.0.5/lib/jersey-core-1.17.1.jar (No such file or directory) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:97) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1082) at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1106) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:906) at groovy.lang.Closure.call(Closure.java:412) at groovy.lang.Closure.call(Closure.java:406) at groovy.lang.Closure.run(Closure.java:490) at java.lang.Thread.run(Thread.java:744) Caused by: com.simplifyops.rundeck.plugin.resources.RightscaleAPIRequest$RequestException: Error while building a client for href /api/servers.xml: com.sun.jersey.spi.inject.InjectableProvider: : java.io.FileNotFoundException: /Users/alexh/Development/rundeck-workspace/2.0.0/libext/cache/rightscale-nodes-1.0.0.5/lib/jersey-core-1.17.1.jar (No such file or directory) 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.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77) at org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:71) at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorSite.java:81) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:182) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:194) at com.simplifyops.rundeck.plugin.resources.RightscaleAPIRequest$ApiClient.get(RightscaleAPIRequest.groovy:448) at com.simplifyops.rundeck.plugin.resources.RightscaleAPIRequest$ApiClient$get.call(Unknown Source) at com.simplifyops.rundeck.plugin.resources.RightscaleAPIRequest.getServers(RightscaleAPIRequest.groovy:69) at com.simplifyops.rundeck.plugin.resources.RightscaleAPI$getServers.call(Unknown Source) at com.simplifyops.rundeck.plugin.resources.CacheLoader_v2.loadPrimary(CacheLoader.groovy:295) at com.simplifyops.rundeck.plugin.resources.CacheLoader_v2.this$3$loadPrimary(CacheLoader.groovy) at com.simplifyops.rundeck.plugin.resources.CacheLoader_v2$this$3$loadPrimary.callCurrent(Unknown Source) at com.simplifyops.rundeck.plugin.resources.CacheLoader_v2.load(CacheLoader.groovy:198) at com.simplifyops.rundeck.plugin.resources.CacheLoader_v2$load.call(Unknown Source) at com.simplifyops.rundeck.plugin.resources.RightscaleNodes.loadCache(RightscaleNodes.groovy:178) at com.simplifyops.rundeck.plugin.resources.RightscaleNodes$loadCache.callCurrent(Unknown Source) at com.simplifyops.rundeck.plugin.resources.RightscaleNodes.refresh(RightscaleNodes.groovy:269) at sun.reflect.GeneratedMethodAccessor1253.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1082) at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1106) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:906) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1027) at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1106) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:906) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:137) at com.simplifyops.rundeck.plugin.resources.RightscaleNodes$_getNodes_closure1.doCall(RightscaleNodes.groovy:218) at com.simplifyops.rundeck.plugin.resources.RightscaleNodes$_getNodes_closure1.doCall(RightscaleNodes.groovy) at sun.reflect.GeneratedMethodAccessor1252.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) ... 8 more

ahonor commented 10 years ago

This might be caused by the CLI tools clobbering the libext/cache directory.

See https://github.com/rundeck/rundeck/issues/808