java.lang.ExceptionInInitializerError

Pentaho BI Platform Tracking | Marc Batchelor | 3 years ago
  1. 0

    Attempts to make a standalone plugin out of the Blackduck Plugin developed by Arunima (IP Audit Engineer) have failed. Initial attempts were with cxf-2.4.3 because that's the version of CFX that the Protex SDK (the latest) bundles. Using those .jar files in the plugins' lib folder throws exceptions in apache cxf LogUtils (clearly a classloader issue where it was reporting that a class couldn't be found, but it was in the .jar file all along). ============ CXF 2.4.3 Stack ========= Unable to open dialog for this step java.lang.ExceptionInInitializerError at org.apache.cxf.jaxws.JaxWsClientFactoryBean.<init>(JaxWsClientFactoryBean.java:38) at org.apache.cxf.jaxws.JaxWsProxyFactoryBean.<init>(JaxWsProxyFactoryBean.java:65) at com.blackducksoftware.sdk.protex.client.util.ProtexServerProxyV6_3.getPortFromUrl(ProtexServerProxyV6_3.java:748) at com.blackducksoftware.sdk.protex.client.util.ProtexServerProxyV6_3.getUserApi(ProtexServerProxyV6_3.java:734) at com.blackducksoftware.sdk.protex.client.util.ProtexServerProxyV6_3.getUserApi(ProtexServerProxyV6_3.java:729) at org.pentaho.di.trans.steps.bdplugin.BDGetProtexData.login(Unknown Source) at org.pentaho.di.trans.steps.bdplugin.BDConnection.connect(Unknown Source) at org.pentaho.di.ui.trans.steps.bdplugin.BDInputDialog.test(Unknown Source) at org.pentaho.di.ui.trans.steps.bdplugin.BDInputDialog.access$300(Unknown Source) at org.pentaho.di.ui.trans.steps.bdplugin.BDInputDialog$5.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.trans.steps.bdplugin.BDInputDialog.open(Unknown Source) at org.pentaho.di.ui.spoon.delegates.SpoonStepsDelegate.editStep(SpoonStepsDelegate.java:137) at org.pentaho.di.ui.spoon.Spoon.editStep(Spoon.java:8195) at org.pentaho.di.ui.spoon.trans.TransGraph.editStep(TransGraph.java:2952) at org.pentaho.di.ui.spoon.trans.TransGraph.mouseDoubleClick(TransGraph.java:720) at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1227) at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7368) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:8673) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:625) 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.pentaho.commons.launcher.Launcher.main(Launcher.java:134) Caused by: java.lang.RuntimeException: java.util.MissingResourceException: Can't find org.apache.cxf.service.factory.SimpleMessages bundle at org.apache.cxf.common.logging.LogUtils.createLogger(LogUtils.java:226) at org.apache.cxf.common.logging.LogUtils.getL7dLogger(LogUtils.java:178) at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.<clinit>(ReflectionServiceFactoryBean.java:146) ... 33 more Caused by: java.util.MissingResourceException: Can't find org.apache.cxf.service.factory.SimpleMessages bundle at java.util.logging.Logger.setupResourceInfo(Unknown Source) at java.util.logging.Logger.<init>(Unknown Source) ================================= I upgraded to 2.4.10 of CXF and tried it because the code in LogUtils had changed. Now, there's a NoClassDef occurring. Of course, the AbstractPhaseInterceptor is in the cxf-bundle jar. =========== CXF 2.4.10 issue ========= Unable to open dialog for this step java.lang.NoClassDefFoundError: org/apache/cxf/phase/AbstractPhaseInterceptor at org.pentaho.di.trans.steps.bdplugin.BDGetProtexData.login(Unknown Source) at org.pentaho.di.trans.steps.bdplugin.BDConnection.connect(Unknown Source) at org.pentaho.di.ui.trans.steps.bdplugin.BDInputDialog.test(Unknown Source) at org.pentaho.di.ui.trans.steps.bdplugin.BDInputDialog.access$300(Unknown Source) at org.pentaho.di.ui.trans.steps.bdplugin.BDInputDialog$5.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.trans.steps.bdplugin.BDInputDialog.open(Unknown Source) at org.pentaho.di.ui.spoon.delegates.SpoonStepsDelegate.editStep(SpoonStepsDelegate.java:137) at org.pentaho.di.ui.spoon.Spoon.editStep(Spoon.java:8195) at org.pentaho.di.ui.spoon.trans.TransGraph.editStep(TransGraph.java:2952) at org.pentaho.di.ui.spoon.trans.TransGraph.mouseDoubleClick(TransGraph.java:720) at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1227) at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7368) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:8673) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:625) 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.pentaho.commons.launcher.Launcher.main(Launcher.java:134) Caused by: java.lang.ClassNotFoundException: org.apache.cxf.phase.AbstractPhaseInterceptor at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at org.pentaho.di.core.plugins.KettleURLClassLoader.loadClass(KettleURLClassLoader.java:98) at java.lang.ClassLoader.loadClass(Unknown Source) ... 28 more

    Pentaho BI Platform Tracking | 3 years ago | Marc Batchelor
    java.lang.ExceptionInInitializerError
  2. 0

    Attempts to make a standalone plugin out of the Blackduck Plugin developed by Arunima (IP Audit Engineer) have failed. Initial attempts were with cxf-2.4.3 because that's the version of CFX that the Protex SDK (the latest) bundles. Using those .jar files in the plugins' lib folder throws exceptions in apache cxf LogUtils (clearly a classloader issue where it was reporting that a class couldn't be found, but it was in the .jar file all along). ============ CXF 2.4.3 Stack ========= Unable to open dialog for this step java.lang.ExceptionInInitializerError at org.apache.cxf.jaxws.JaxWsClientFactoryBean.<init>(JaxWsClientFactoryBean.java:38) at org.apache.cxf.jaxws.JaxWsProxyFactoryBean.<init>(JaxWsProxyFactoryBean.java:65) at com.blackducksoftware.sdk.protex.client.util.ProtexServerProxyV6_3.getPortFromUrl(ProtexServerProxyV6_3.java:748) at com.blackducksoftware.sdk.protex.client.util.ProtexServerProxyV6_3.getUserApi(ProtexServerProxyV6_3.java:734) at com.blackducksoftware.sdk.protex.client.util.ProtexServerProxyV6_3.getUserApi(ProtexServerProxyV6_3.java:729) at org.pentaho.di.trans.steps.bdplugin.BDGetProtexData.login(Unknown Source) at org.pentaho.di.trans.steps.bdplugin.BDConnection.connect(Unknown Source) at org.pentaho.di.ui.trans.steps.bdplugin.BDInputDialog.test(Unknown Source) at org.pentaho.di.ui.trans.steps.bdplugin.BDInputDialog.access$300(Unknown Source) at org.pentaho.di.ui.trans.steps.bdplugin.BDInputDialog$5.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.trans.steps.bdplugin.BDInputDialog.open(Unknown Source) at org.pentaho.di.ui.spoon.delegates.SpoonStepsDelegate.editStep(SpoonStepsDelegate.java:137) at org.pentaho.di.ui.spoon.Spoon.editStep(Spoon.java:8195) at org.pentaho.di.ui.spoon.trans.TransGraph.editStep(TransGraph.java:2952) at org.pentaho.di.ui.spoon.trans.TransGraph.mouseDoubleClick(TransGraph.java:720) at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1227) at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7368) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:8673) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:625) 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.pentaho.commons.launcher.Launcher.main(Launcher.java:134) Caused by: java.lang.RuntimeException: java.util.MissingResourceException: Can't find org.apache.cxf.service.factory.SimpleMessages bundle at org.apache.cxf.common.logging.LogUtils.createLogger(LogUtils.java:226) at org.apache.cxf.common.logging.LogUtils.getL7dLogger(LogUtils.java:178) at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.<clinit>(ReflectionServiceFactoryBean.java:146) ... 33 more Caused by: java.util.MissingResourceException: Can't find org.apache.cxf.service.factory.SimpleMessages bundle at java.util.logging.Logger.setupResourceInfo(Unknown Source) at java.util.logging.Logger.<init>(Unknown Source) ================================= I upgraded to 2.4.10 of CXF and tried it because the code in LogUtils had changed. Now, there's a NoClassDef occurring. Of course, the AbstractPhaseInterceptor is in the cxf-bundle jar. =========== CXF 2.4.10 issue ========= Unable to open dialog for this step java.lang.NoClassDefFoundError: org/apache/cxf/phase/AbstractPhaseInterceptor at org.pentaho.di.trans.steps.bdplugin.BDGetProtexData.login(Unknown Source) at org.pentaho.di.trans.steps.bdplugin.BDConnection.connect(Unknown Source) at org.pentaho.di.ui.trans.steps.bdplugin.BDInputDialog.test(Unknown Source) at org.pentaho.di.ui.trans.steps.bdplugin.BDInputDialog.access$300(Unknown Source) at org.pentaho.di.ui.trans.steps.bdplugin.BDInputDialog$5.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.trans.steps.bdplugin.BDInputDialog.open(Unknown Source) at org.pentaho.di.ui.spoon.delegates.SpoonStepsDelegate.editStep(SpoonStepsDelegate.java:137) at org.pentaho.di.ui.spoon.Spoon.editStep(Spoon.java:8195) at org.pentaho.di.ui.spoon.trans.TransGraph.editStep(TransGraph.java:2952) at org.pentaho.di.ui.spoon.trans.TransGraph.mouseDoubleClick(TransGraph.java:720) at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1227) at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7368) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:8673) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:625) 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.pentaho.commons.launcher.Launcher.main(Launcher.java:134) Caused by: java.lang.ClassNotFoundException: org.apache.cxf.phase.AbstractPhaseInterceptor at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at org.pentaho.di.core.plugins.KettleURLClassLoader.loadClass(KettleURLClassLoader.java:98) at java.lang.ClassLoader.loadClass(Unknown Source) ... 28 more

    Pentaho BI Platform Tracking | 3 years ago | Marc Batchelor
    java.lang.ExceptionInInitializerError
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    TimedRestore fails to initialize on Spigot 1.8

    GitHub | 2 years ago | ndkv
    org.bukkit.plugin.InvalidPluginException: 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.util.MissingResourceException

      Can't find org.apache.cxf.service.factory.SimpleMessages bundle

      at java.util.logging.Logger.setupResourceInfo()
    2. Java RT
      Logger.<init>
      1. java.util.logging.Logger.setupResourceInfo(Unknown Source)
      2. java.util.logging.Logger.<init>(Unknown Source)
      2 frames