java.lang.reflect.InvocationTargetException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.

tip

If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add to your dependencies. To add it, the groupId is com.fasterxml and artifactId is Classmate.

tip

Check if you didn't forget to instantiate your topic in the kafka broker.

tip

NoClassDefFoundError means java has failed to find a class you're trying to instantiate, look if you've added the class you're trying to instantiate to the dependencies.

tip

You need to add httpcore to your dependencies. Try adding version 4.3 or further.

tip

You might've forgot to add a dependency or it's written wrong. Also, you might be using incompatible versions of Java and Hibernate. More on this here: https://goo.gl/SjSlRA

tip

This error means there's a class missing in your classpath during runtime. You need to create a jar with all your dependencies and have it in your classpath. Check Maven Assembly Plugin and how to add your dependencies to a jar: https://goo.gl/U2zr8k

tip

jsp-api and servlet-api jars must NOT be deployed by your web app. They should be marked as provided but not deployed by your app.

tip

The server rejects all jars that already belong to the server runtime (such as tomcat-**.jar, servlet**.jar). Consider substituting the CORS filter you're using for this one: https://goo.gl/ctQ7Fs

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • I added slf4j-api-1.7.3.jar and slf4j-log4j12-1.7.3.jar to the CE lib folder and it works like a charm. Otherwise: Below exception is thrown when DataCleaner gets started. ERROR 22-01 18:20:47,166 - Error invoking method: profiler.profileStep() java.lang.reflect.InvocationTargetException 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.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:329) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:139) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:123) at org.pentaho.ui.xul.jface.tags.JfaceMenuitem.access$100(JfaceMenuitem.java:26) at org.pentaho.ui.xul.jface.tags.JfaceMenuitem$1.run(JfaceMenuitem.java:88) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402) 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.NoClassDefFoundError: org/slf4j/LoggerFactory at org.eobjects.analyzer.job.concurrent.SingleThreadedTaskRunner.<init>(SingleThreadedTaskRunner.java:28) at org.eobjects.analyzer.configuration.AnalyzerBeansConfigurationImpl.defaultTaskRunner(AnalyzerBeansConfigurationImpl.java:50) at org.eobjects.analyzer.configuration.AnalyzerBeansConfigurationImpl.<init>(AnalyzerBeansConfigurationImpl.java:70) at org.pentaho.di.profiling.datacleaner.ModelerHelper.profileStep(ModelerHelper.java:295) ... 26 more Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory 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) ... 30 more ERROR 22-01 18:20:47,169 - Error calling oncommand event org.pentaho.ui.xul.XulException: Error invoking method: profiler.profileStep() at org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:333) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:139) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:123) at org.pentaho.ui.xul.jface.tags.JfaceMenuitem.access$100(JfaceMenuitem.java:26) at org.pentaho.ui.xul.jface.tags.JfaceMenuitem$1.run(JfaceMenuitem.java:88) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402) 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.reflect.InvocationTargetException 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.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:329) ... 21 more Caused by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at org.eobjects.analyzer.job.concurrent.SingleThreadedTaskRunner.<init>(SingleThreadedTaskRunner.java:28) at org.eobjects.analyzer.configuration.AnalyzerBeansConfigurationImpl.defaultTaskRunner(AnalyzerBeansConfigurationImpl.java:50) at org.eobjects.analyzer.configuration.AnalyzerBeansConfigurationImpl.<init>(AnalyzerBeansConfigurationImpl.java:70) at org.pentaho.di.profiling.datacleaner.ModelerHelper.profileStep(ModelerHelper.java:295) ... 26 more Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory 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) ... 30 more
    via by Jens Bleuel,
  • I added slf4j-api-1.7.3.jar and slf4j-log4j12-1.7.3.jar to the CE lib folder and it works like a charm. Otherwise: Below exception is thrown when DataCleaner gets started. ERROR 22-01 18:20:47,166 - Error invoking method: profiler.profileStep() java.lang.reflect.InvocationTargetException 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.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:329) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:139) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:123) at org.pentaho.ui.xul.jface.tags.JfaceMenuitem.access$100(JfaceMenuitem.java:26) at org.pentaho.ui.xul.jface.tags.JfaceMenuitem$1.run(JfaceMenuitem.java:88) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402) 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.NoClassDefFoundError: org/slf4j/LoggerFactory at org.eobjects.analyzer.job.concurrent.SingleThreadedTaskRunner.<init>(SingleThreadedTaskRunner.java:28) at org.eobjects.analyzer.configuration.AnalyzerBeansConfigurationImpl.defaultTaskRunner(AnalyzerBeansConfigurationImpl.java:50) at org.eobjects.analyzer.configuration.AnalyzerBeansConfigurationImpl.<init>(AnalyzerBeansConfigurationImpl.java:70) at org.pentaho.di.profiling.datacleaner.ModelerHelper.profileStep(ModelerHelper.java:295) ... 26 more Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory 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) ... 30 more ERROR 22-01 18:20:47,169 - Error calling oncommand event org.pentaho.ui.xul.XulException: Error invoking method: profiler.profileStep() at org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:333) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:139) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:123) at org.pentaho.ui.xul.jface.tags.JfaceMenuitem.access$100(JfaceMenuitem.java:26) at org.pentaho.ui.xul.jface.tags.JfaceMenuitem$1.run(JfaceMenuitem.java:88) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402) 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.reflect.InvocationTargetException 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.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:329) ... 21 more Caused by: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at org.eobjects.analyzer.job.concurrent.SingleThreadedTaskRunner.<init>(SingleThreadedTaskRunner.java:28) at org.eobjects.analyzer.configuration.AnalyzerBeansConfigurationImpl.defaultTaskRunner(AnalyzerBeansConfigurationImpl.java:50) at org.eobjects.analyzer.configuration.AnalyzerBeansConfigurationImpl.<init>(AnalyzerBeansConfigurationImpl.java:70) at org.pentaho.di.profiling.datacleaner.ModelerHelper.profileStep(ModelerHelper.java:295) ... 26 more Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory 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) ... 30 more
    via by Jens Bleuel,
  • 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
    via by Marc Batchelor,
  • 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
    via by Marc Batchelor,
  • GitHub comment 23#75024667
    via GitHub by msunilgupta
    ,
  • Class Not found
    via GitHub by kempyk
    ,
    • java.lang.reflect.InvocationTargetException 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.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:329) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:139) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:123) at org.pentaho.ui.xul.jface.tags.JfaceMenuitem.access$100(JfaceMenuitem.java:26) at org.pentaho.ui.xul.jface.tags.JfaceMenuitem$1.run(JfaceMenuitem.java:88) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402) 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.NoClassDefFoundError: org/slf4j/LoggerFactory at org.eobjects.analyzer.job.concurrent.SingleThreadedTaskRunner.<init>(SingleThreadedTaskRunner.java:28) at org.eobjects.analyzer.configuration.AnalyzerBeansConfigurationImpl.defaultTaskRunner(AnalyzerBeansConfigurationImpl.java:50) at org.eobjects.analyzer.configuration.AnalyzerBeansConfigurationImpl.<init>(AnalyzerBeansConfigurationImpl.java:70) at org.pentaho.di.profiling.datacleaner.ModelerHelper.profileStep(ModelerHelper.java:295) ... 26 more Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory 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) ... 30 more

    Users with the same issue

    slash
    1 times, last one,
    Unknown visitor1 times, last one,
    andyglick
    4 times, last one,
    jokester
    1 times, last one,
    bpbhat77
    8 times, last one,
    2285 more bugmates