java.lang.ClassNotFoundException

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

Check if you've set a name in Application -> Run. If you didn't, the generated XML is gonna have missing information and then this exception will be thrown.

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

  • GitHub comment 277#232261834
    via GitHub by Mygod
    ,
  • GitHub comment 277#232368731
    via GitHub by pfn
    ,
  • scala on stackoverflow | Scala Class
    via by Unknown author,
  • 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,
    • java.lang.ClassNotFoundException: android.view.x at java.lang.Class.classForName(Native Method) at java.lang.BootClassLoader.findClass(ClassLoader.java:781) at java.lang.BootClassLoader.loadClass(ClassLoader.java:841) at java.lang.ClassLoader.loadClass(ClassLoader.java:504)

    Users with the same issue

    Hiren AmaliyarHiren Amaliyar
    2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    1898 more bugmates