java.lang.ExceptionInInitializerError

Jenkins JIRA | Kyle Schlosser | 2 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    I launched a swarm agent and attempted to run a job which involves an RTC source extraction step. The same job runs okay on the master as well as the ssh/dumb slaves, but fails due to a log library conflict on the swarm node. Stack trace follows: RTC : checkout... FATAL: RTC : checkout failure: null java.lang.ExceptionInInitializerError at java.lang.J9VMInternals.ensureError(J9VMInternals.java:186) at java.lang.J9VMInternals.recordInitializationFailure(J9VMInternals.java:175) at com.ibm.team.repository.client.TeamPlatform.startup(TeamPlatform.java:49) at com.ibm.team.build.internal.hjplugin.rtc.BuildClient.<clinit>(BuildClient.java:39) at com.ibm.team.build.internal.hjplugin.rtc.RTCFacade.getBuildClient(RTCFacade.java:51) at com.ibm.team.build.internal.hjplugin.rtc.RTCFacade.checkout(RTCFacade.java:384) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56) at java.lang.reflect.Method.invoke(Method.java:620) at com.ibm.team.build.internal.hjplugin.RTCFacadeFactory$RTCFacadeWrapper.invoke(RTCFacadeFactory.java:115) at com.ibm.team.build.internal.hjplugin.RTCCheckoutTask.invoke(RTCCheckoutTask.java:166) at com.ibm.team.build.internal.hjplugin.RTCCheckoutTask.invoke(RTCCheckoutTask.java:32) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2577) at hudson.remoting.UserRequest.perform(UserRequest.java:121) at hudson.remoting.UserRequest.perform(UserRequest.java:49) at hudson.remoting.Request$2.run(Request.java:324) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:274) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1177) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at hudson.remoting.Engine$1$1.run(Engine.java:63) at java.lang.Thread.run(Thread.java:857) Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@52df4f0b for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org.apache.log4j.Category) (Caused by org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@52df4f0b for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org.apache.log4j.Category)) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351) at com.ibm.team.repository.common.internal.util.InternalTeamPlatform.<clinit>(InternalTeamPlatform.java:42) ... 21 more Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@52df4f0b for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org.apache.log4j.Category) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:413) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529) ... 25 more Caused by: java.lang.NoClassDefFoundError: org.apache.log4j.Category at java.lang.J9VMInternals.prepareClassImpl(Native Method) at java.lang.J9VMInternals.prepare(J9VMInternals.java:450) at java.lang.Class.getConstructor(Class.java:435) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:410) ... 26 more Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Category at java.net.URLClassLoader.findClass(URLClassLoader.java:666) at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:942) at java.lang.ClassLoader.loadClass(ClassLoader.java:869) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:336) at java.lang.ClassLoader.loadClass(ClassLoader.java:847) ... 30 more

    Jenkins JIRA | 2 years ago | Kyle Schlosser
    java.lang.ExceptionInInitializerError
  2. 0

    I launched a swarm agent and attempted to run a job which involves an RTC source extraction step. The same job runs okay on the master as well as the ssh/dumb slaves, but fails due to a log library conflict on the swarm node. Stack trace follows: RTC : checkout... FATAL: RTC : checkout failure: null java.lang.ExceptionInInitializerError at java.lang.J9VMInternals.ensureError(J9VMInternals.java:186) at java.lang.J9VMInternals.recordInitializationFailure(J9VMInternals.java:175) at com.ibm.team.repository.client.TeamPlatform.startup(TeamPlatform.java:49) at com.ibm.team.build.internal.hjplugin.rtc.BuildClient.<clinit>(BuildClient.java:39) at com.ibm.team.build.internal.hjplugin.rtc.RTCFacade.getBuildClient(RTCFacade.java:51) at com.ibm.team.build.internal.hjplugin.rtc.RTCFacade.checkout(RTCFacade.java:384) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56) at java.lang.reflect.Method.invoke(Method.java:620) at com.ibm.team.build.internal.hjplugin.RTCFacadeFactory$RTCFacadeWrapper.invoke(RTCFacadeFactory.java:115) at com.ibm.team.build.internal.hjplugin.RTCCheckoutTask.invoke(RTCCheckoutTask.java:166) at com.ibm.team.build.internal.hjplugin.RTCCheckoutTask.invoke(RTCCheckoutTask.java:32) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2577) at hudson.remoting.UserRequest.perform(UserRequest.java:121) at hudson.remoting.UserRequest.perform(UserRequest.java:49) at hudson.remoting.Request$2.run(Request.java:324) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:274) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1177) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at hudson.remoting.Engine$1$1.run(Engine.java:63) at java.lang.Thread.run(Thread.java:857) Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@52df4f0b for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org.apache.log4j.Category) (Caused by org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@52df4f0b for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org.apache.log4j.Category)) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351) at com.ibm.team.repository.common.internal.util.InternalTeamPlatform.<clinit>(InternalTeamPlatform.java:42) ... 21 more Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@52df4f0b for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org.apache.log4j.Category) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:413) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529) ... 25 more Caused by: java.lang.NoClassDefFoundError: org.apache.log4j.Category at java.lang.J9VMInternals.prepareClassImpl(Native Method) at java.lang.J9VMInternals.prepare(J9VMInternals.java:450) at java.lang.Class.getConstructor(Class.java:435) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:410) ... 26 more Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Category at java.net.URLClassLoader.findClass(URLClassLoader.java:666) at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:942) at java.lang.ClassLoader.loadClass(ClassLoader.java:869) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:336) at java.lang.ClassLoader.loadClass(ClassLoader.java:847) ... 30 more

    Jenkins JIRA | 2 years ago | Kyle Schlosser
    java.lang.ExceptionInInitializerError
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  1. jokester 2 times, last 4 months ago
24 unregistered visitors
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.ClassNotFoundException

    org.apache.log4j.Category

    at java.net.URLClassLoader.findClass()
  2. Java RT
    Class.getConstructor
    1. java.net.URLClassLoader.findClass(URLClassLoader.java:666)
    2. java.lang.ClassLoader.loadClassHelper(ClassLoader.java:942)
    3. java.lang.ClassLoader.loadClass(ClassLoader.java:869)
    4. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:336)
    5. java.lang.ClassLoader.loadClass(ClassLoader.java:847)
    6. java.lang.J9VMInternals.prepareClassImpl(Native Method)
    7. java.lang.J9VMInternals.prepare(J9VMInternals.java:450)
    8. java.lang.Class.getConstructor(Class.java:435)
    8 frames
  3. Apache Commons Logging
    LogFactory.getLog
    1. org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:410)
    2. org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
    3. org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
    4. org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
    5. org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
    5 frames
  4. com.ibm.team
    RTCFacade.checkout
    1. com.ibm.team.repository.common.internal.util.InternalTeamPlatform.<clinit>(InternalTeamPlatform.java:42)
    2. com.ibm.team.repository.client.TeamPlatform.startup(TeamPlatform.java:49)
    3. com.ibm.team.build.internal.hjplugin.rtc.BuildClient.<clinit>(BuildClient.java:39)
    4. com.ibm.team.build.internal.hjplugin.rtc.RTCFacade.getBuildClient(RTCFacade.java:51)
    5. com.ibm.team.build.internal.hjplugin.rtc.RTCFacade.checkout(RTCFacade.java:384)
    5 frames
  5. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
    4. java.lang.reflect.Method.invoke(Method.java:620)
    4 frames
  6. com.ibm.team
    RTCCheckoutTask.invoke
    1. com.ibm.team.build.internal.hjplugin.RTCFacadeFactory$RTCFacadeWrapper.invoke(RTCFacadeFactory.java:115)
    2. com.ibm.team.build.internal.hjplugin.RTCCheckoutTask.invoke(RTCCheckoutTask.java:166)
    3. com.ibm.team.build.internal.hjplugin.RTCCheckoutTask.invoke(RTCCheckoutTask.java:32)
    3 frames
  7. Hudson
    FilePath$FileCallableWrapper.call
    1. hudson.FilePath$FileCallableWrapper.call(FilePath.java:2577)
    1 frame
  8. Hudson :: Remoting Layer
    InterceptingExecutorService$1.call
    1. hudson.remoting.UserRequest.perform(UserRequest.java:121)
    2. hudson.remoting.UserRequest.perform(UserRequest.java:49)
    3. hudson.remoting.Request$2.run(Request.java:324)
    4. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
    4 frames
  9. Java RT
    ThreadPoolExecutor$Worker.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:274)
    2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1177)
    3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
    3 frames
  10. Hudson :: Remoting Layer
    Engine$1$1.run
    1. hudson.remoting.Engine$1$1.run(Engine.java:63)
    1 frame
  11. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:857)
    1 frame