java.lang.ExceptionInInitializerError

Jenkins JIRA | María García | 12 months ago
  1. 0

    I have Jira plugin 1.29. I executed my job that is cofigured to use Update relevant JIRA issue and it is produce the error: ERROR: Publisher hudson.plugins.jira.JiraIssueUpdater aborted due to exception java.lang.ExceptionInInitializerError at org.apache.axis.handlers.BasicHandler.<clinit>(BasicHandler.java:43) at org.apache.axis.client.Service.getAxisClient(Service.java:104) at org.apache.axis.client.Service.<init>(Service.java:113) at hudson.plugins.jira.soap.JiraSoapServiceServiceLocator.<init>(JiraSoapServiceServiceLocator.java:12) at hudson.plugins.jira.JiraSite.createSession(JiraSite.java:141) at hudson.plugins.jira.Updater.perform(Updater.java:68) at hudson.plugins.jira.JiraIssueUpdater.perform(JiraIssueUpdater.java:29) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:736) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:685) at hudson.model.Run.execute(Run.java:1765) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:233) Caused by: org.apache.commons.discovery.DiscoveryException: Class org.apache.commons.logging.impl.SLF4JLogFactory does not implement org.apache.commons.logging.LogFactory at org.apache.commons.discovery.tools.ClassUtils.verifyAncestory(ClassUtils.java:135) at org.apache.commons.discovery.tools.SPInterface.verifyAncestory(SPInterface.java:156) at org.apache.commons.discovery.tools.SPInterface.newInstance(SPInterface.java:150) at org.apache.commons.discovery.tools.DiscoverClass.newInstance(DiscoverClass.java:534) at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:373) at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:333) at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41) at org.apache.axis.components.logger.LogFactory.<clinit>(LogFactory.java:33) ... 16 more Finished: FAILURE What is the problem? Thanks and regards.

    Jenkins JIRA | 12 months ago | María García
    java.lang.ExceptionInInitializerError
  2. 0

    I have Jira plugin 1.29. I executed my job that is cofigured to use Update relevant JIRA issue and it is produce the error: ERROR: Publisher hudson.plugins.jira.JiraIssueUpdater aborted due to exception java.lang.ExceptionInInitializerError at org.apache.axis.handlers.BasicHandler.<clinit>(BasicHandler.java:43) at org.apache.axis.client.Service.getAxisClient(Service.java:104) at org.apache.axis.client.Service.<init>(Service.java:113) at hudson.plugins.jira.soap.JiraSoapServiceServiceLocator.<init>(JiraSoapServiceServiceLocator.java:12) at hudson.plugins.jira.JiraSite.createSession(JiraSite.java:141) at hudson.plugins.jira.Updater.perform(Updater.java:68) at hudson.plugins.jira.JiraIssueUpdater.perform(JiraIssueUpdater.java:29) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:736) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:685) at hudson.model.Run.execute(Run.java:1765) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:233) Caused by: org.apache.commons.discovery.DiscoveryException: Class org.apache.commons.logging.impl.SLF4JLogFactory does not implement org.apache.commons.logging.LogFactory at org.apache.commons.discovery.tools.ClassUtils.verifyAncestory(ClassUtils.java:135) at org.apache.commons.discovery.tools.SPInterface.verifyAncestory(SPInterface.java:156) at org.apache.commons.discovery.tools.SPInterface.newInstance(SPInterface.java:150) at org.apache.commons.discovery.tools.DiscoverClass.newInstance(DiscoverClass.java:534) at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:373) at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:333) at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41) at org.apache.axis.components.logger.LogFactory.<clinit>(LogFactory.java:33) ... 16 more Finished: FAILURE What is the problem? Thanks and regards.

    Jenkins JIRA | 12 months ago | María García
    java.lang.ExceptionInInitializerError
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    I am running PAX Logging and using log4j as my logging implementation for the bundles I have been creating. All works well as long as I omit org.apache.commons.logging-1.0.4 in Eclipse PDE Target Platform -> Plug-ins Life was good until I tried to consume a web service using Axis1.4. I created a Web Service Client Bundle which makes calls to a server side web service. All works fine. I then I converted the project via Eclipse to a PDE project so I could use it in my RCP application. My client bundle now requires the Axis 1.4 jars to run which includes the 'org.apache.commons.discovery-0.2.0' bundle. This bundle has a Required-Bundle on 'org.apache.commons.logging'. So I then get the following issue exception: Jan 30, 2008 1:20:49 PM org.springframework.osgi.extender.internal.ContextLoaderListener start INFO: Starting org.springframework.osgi.extender bundle v.[1.0.0.rc2] Jan 30, 2008 1:20:50 PM org.springframework.osgi.extender.internal.ContextLoaderListener addAnnotationBPP INFO: disabled automatic Spring-DM annotation processing; [ org.springframework.osgi.extender.annotation.auto.processing=null] Jan 30, 2008 1:20:50 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh INFO: Refreshing org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@11a772d: display name [OsgiBundleXmlApplicationContext(bundle=com.agfa.websend.bundle.user.services, config=osgibundle:/META-INF/spring/*.xml)]; startup date [Wed Jan 30 13:20:50 EST 2008]; root of context hierarchy osgi> Jan 30, 2008 1:20:50 PM org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor fail SEVERE: Unable to create application context for [com.agfa.websend.bundle.user.services], unsatisfied dependencies: none - Show quoted text - org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: java.lang.NoClassDefFoundError: Could not initialize class org.springframework.osgi.util.DebugUtils (Caused by java.lang.NoClassDefFoundError: Could not initialize class org.springframework.osgi.util.DebugUtils) (Caused by org.apache.commons.logging.LogConfigurationException: java.lang.NoClassDefFoundError: Could not initialize class org.springframework.osgi.util.DebugUtils (Caused by java.lang.NoClassDefFoundError: Could not initialize class org.springframework.osgi.util.DebugUtils)) 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 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.<init>(DefaultSingletonBeanRegistry.java:83) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.<init>(FactoryBeanRegistrySupport.java:40) at org.springframework.beans.factory.support.AbstractBeanFactory.<init>(AbstractBeanFactory.java:146) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.<init>(AbstractAutowireCapableBeanFactory.java:140) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.<init>(AbstractAutowireCapableBeanFactory.java:151) at org.springframework.beans.factory.support.DefaultListableBeanFactory.<init>(DefaultListableBeanFactory.java:115) at org.springframework.context.support.AbstractRefreshableApplicationContext.createBeanFactory(AbstractRefreshableApplicationContext.java:150) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:95) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:411) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:190) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:212) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:163) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:124) at org.springframework.osgi.extender.internal.ContextLoaderListener$2.run(ContextLoaderListener.java:630) at java.lang.Thread.run(Unknown Source) Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.NoClassDefFoundError: Could not initialize class org.springframework.osgi.util.DebugUtils (Caused by java.lang.NoClassDefFoundError: Could not initialize class org.springframework.osgi.util.DebugUtils) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529) ... 18 more Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.springframework.osgi.util.DebugUtils at org.springframework.osgi.util.DebugUtils.debugClassLoading(DebugUtils.java:124) at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:124) at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:178) at java.lang.ClassLoader.loadClass(Unknown Source) at org.apache.commons.logging.impl.LogFactoryImpl$1.run(LogFactoryImpl.java:441) at java.security.AccessController.doPrivileged(Native Method) at org.apache.commons.logging.impl.LogFactoryImpl.loadClass(LogFactoryImpl.java:435) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:376) ... 19 more So I then open up the 'org.apache.commons.discovery-0.2.0' bundle and replace the 'Require-Bundle:org.apache.commons.logging' with 'Import-Package:org.apache.commons.logging' Now I receive the following error in the Equinox OSGi container: !ENTRY org.eclipse.osgi 4 0 2008-01-31 13:30:54.337 !MESSAGE Application error !STACK 1 java.lang.ExceptionInInitializerError at org.apache.axis.handlers.BasicHandler.<clinit>(BasicHandler.java:43) at org.apache.axis.client.Service.getAxisClient(Service.java:104) at org.apache.axis.client.Service.<init>(Service.java:113) at com.agfa.websend.axis.client.user.UserServiceServiceLocator.<init>(UserServiceServiceLocator.java:12) at com.agfa.websend.sandbox.ws.app.Application.test3UserServiceLogon(Application.java:55) at com.agfa.websend.sandbox.ws.app.Application.start(Application.java:20) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447) at org.eclipse.equinox.launcher.Main.run(Main.java:1173) at org.eclipse.equinox.launcher.Main.main(Main.java:1148) Caused by: org.apache.commons.discovery.DiscoveryException: No implementation defined for org.apache.commons.logging.LogFactory at org.apache.commons.discovery.tools.ClassUtils.verifyAncestory(ClassUtils.java:176) at org.apache.commons.discovery.tools.SPInterface.verifyAncestory(SPInterface.java:201) at org.apache.commons.discovery.tools.SPInterface.newInstance(SPInterface.java:195) at org.apache.commons.discovery.tools.DiscoverClass.newInstance(DiscoverClass.java:579) at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:418) at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:378) at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41) at org.apache.axis.components.logger.LogFactory.<clinit>(LogFactory.java:33) ... 19 more To reproduced this I simply created a Eclipse RCP plugin project using the 'HelloWorld' template. I then created then Axis 1.4 WebService Client project from an existing WSDL. I then convert the WebService Client project to a PDE Project using the PDE Tools - Convert to PDE Project. (Simply right click the project in Eclipse and select PDE Tools - Convert to PDE Project). I then imported the packages need into my RCP bundle. My Webservice Client bundle is using the Spring-OSGi provided jcl104-over-slf4j and the slf4j-log4j implementation so there is no requirement on 'org.apache.commons.logging'.

    Spring JIRA | 9 years ago | Kyle S. Bober
    java.lang.ExceptionInInitializerError

    5 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. org.apache.commons.discovery.DiscoveryException

      Class org.apache.commons.logging.impl.SLF4JLogFactory does not implement org.apache.commons.logging.LogFactory

      at org.apache.commons.discovery.tools.ClassUtils.verifyAncestory()
    2. Commons Discovery
      DiscoverSingleton.find
      1. org.apache.commons.discovery.tools.ClassUtils.verifyAncestory(ClassUtils.java:135)
      2. org.apache.commons.discovery.tools.SPInterface.verifyAncestory(SPInterface.java:156)
      3. org.apache.commons.discovery.tools.SPInterface.newInstance(SPInterface.java:150)
      4. org.apache.commons.discovery.tools.DiscoverClass.newInstance(DiscoverClass.java:534)
      5. org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:373)
      6. org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:333)
      6 frames
    3. Axis Web Services
      LogFactory$1.run
      1. org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45)
      1 frame
    4. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    5. Axis Web Services
      Service.<init>
      1. org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41)
      2. org.apache.axis.components.logger.LogFactory.<clinit>(LogFactory.java:33)
      3. org.apache.axis.handlers.BasicHandler.<clinit>(BasicHandler.java:43)
      4. org.apache.axis.client.Service.getAxisClient(Service.java:104)
      5. org.apache.axis.client.Service.<init>(Service.java:113)
      5 frames
    6. Hudson JIRA plugin
      JiraIssueUpdater.perform
      1. hudson.plugins.jira.soap.JiraSoapServiceServiceLocator.<init>(JiraSoapServiceServiceLocator.java:12)
      2. hudson.plugins.jira.JiraSite.createSession(JiraSite.java:141)
      3. hudson.plugins.jira.Updater.perform(Updater.java:68)
      4. hudson.plugins.jira.JiraIssueUpdater.perform(JiraIssueUpdater.java:29)
      4 frames
    7. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:736)
      4. hudson.model.Build$BuildExecution.post2(Build.java:183)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:685)
      6. hudson.model.Run.execute(Run.java:1765)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      8. hudson.model.ResourceController.execute(ResourceController.java:88)
      9. hudson.model.Executor.run(Executor.java:233)
      9 frames