-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Platform: PC, OS: Windows XP
Hudson v1.145
Using the example command in the groovy script console:
println(hudson.model.Hudson.instance.pluginManager.plugins)
Yields:
Status Code: 500
Exception:
Stacktrace:
java.lang.ExceptionInInitializerError
at groovy.lang.GroovyObjectSupport.(GroovyObjectSupport.java:61)
at groovy.lang.Binding.(Binding.java:62)
at groovy.lang.GroovyShell.(GroovyShell.java:85)
at hudson.model.Hudson.doScript(Hudson.java:1613)
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:585)
at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:103)
at org.kohsuke.stapler.Function.bindAndinvoke(Function.java:59)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:63)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:291)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:228)
at org.kohsuke.stapler.Stapler.service(Stapler.java:76)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
at winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
at winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
at hudson.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:79)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
at java.lang.Thread.run(Thread.java:595)
Caused by: groovy.lang.GroovyRuntimeException: Could not instantiate custom
Metaclass for class: java.lang.String. Reason:
java.lang.reflect.InvocationTargetException
at groovy.lang.MetaClassRegistry.getMetaClassFor(MetaClassRegistry.java:237)
at groovy.lang.MetaClassRegistry.lookup(MetaClassRegistry.java:211)
at groovy.lang.MetaClassRegistry.registerMethods(MetaClassRegistry.java:126)
at groovy.lang.MetaClassRegistry.(MetaClassRegistry.java:110)
at groovy.lang.MetaClassRegistry.(MetaClassRegistry.java:89)
at org.codehaus.groovy.runtime.Invoker.(Invoker.java:102)
at org.codehaus.groovy.runtime.InvokerHelper.(InvokerHelper.java:80)
... 26 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at groovy.lang.MetaClassRegistry.getMetaClassFor(MetaClassRegistry.java:229)
... 32 more
Caused by: java.lang.NoSuchMethodError:
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.selectConstructorAndTransformArguments([Ljava/lang/Object;ILjava/lang/Class;)I
at groovy.runtime.metaclass.java.lang.StringMetaClass.(StringMetaClass.groovy:31)
... 37 more