java.lang.ExceptionInInitializerError

Jenkins JIRA | tblack | 9 years ago
  1. 0

    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

    Jenkins JIRA | 9 years ago | tblack
    java.lang.ExceptionInInitializerError
  2. 0

    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

    Jenkins JIRA | 9 years ago | tblack
    java.lang.ExceptionInInitializerError
  3. 0

    [groovy-user] InvocationTargetException with JavaWebStart

    Google Groups | 9 years ago | verbose
    java.lang.reflect.InvocationTargetException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    db:: 4.71::BEA-001129:Received exception while creating connection for pool sc

    hivmr.com | 5 months ago
    java.lang.ExceptionInInitializerError
  6. 0

    NullPointerException - Calendar.getInstance()

    GitHub | 1 year ago | danielross
    java.lang.ExceptionInInitializerError

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ExceptionInInitializerError

      No message provided

      at groovy.lang.GroovyObjectSupport.<init>()
    2. Groovy
      GroovyShell.<init>
      1. groovy.lang.GroovyObjectSupport.<init>(GroovyObjectSupport.java:61)
      2. groovy.lang.Binding.<init>(Binding.java:62)
      3. groovy.lang.GroovyShell.<init>(GroovyShell.java:85)
      3 frames
    3. Hudson
      Hudson.doScript
      1. hudson.model.Hudson.doScript(Hudson.java:1613)
      1 frame
    4. Java RT
      NativeMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      2 frames