java.lang.NoClassDefFoundError

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

Needs to add netty-transport-native-epoll with a OS classifier to the classpath, it's not included in netty-all

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

  • When running a transformation with the GA step, it cannot find its runtime dependencies. It breaks with the following exception: 2013/04/04 10:26:44 - Google Analytics.0 - ERROR (version TRUNK-SNAPSHOT, build 1 from 2013-04-04 09.41.57 by slawo) : Unexpected error 2013/04/04 10:26:44 - Google Analytics.0 - ERROR (version TRUNK-SNAPSHOT, build 1 from 2013-04-04 09.41.57 by slawo) : java.lang.NoClassDefFoundError: com/google/common/collect/Maps 2013/04/04 10:26:44 - Google Analytics.0 - at com.google.gdata.wireformats.AltRegistry.<init>(AltRegistry.java:118) 2013/04/04 10:26:44 - Google Analytics.0 - at com.google.gdata.wireformats.AltRegistry.<init>(AltRegistry.java:100) 2013/04/04 10:26:44 - Google Analytics.0 - at com.google.gdata.client.Service.<clinit>(Service.java:555) 2013/04/04 10:26:44 - Google Analytics.0 - at org.pentaho.di.trans.steps.googleanalytics.GaInputStep.getNextDataEntry(GaInputStep.java:240) 2013/04/04 10:26:44 - Google Analytics.0 - at org.pentaho.di.trans.steps.googleanalytics.GaInputStep.processRow(GaInputStep.java:111) 2013/04/04 10:26:44 - Google Analytics.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:60) 2013/04/04 10:26:44 - Google Analytics.0 - at java.lang.Thread.run(Thread.java:680) 2013/04/04 10:26:44 - Google Analytics.0 - Caused by: java.lang.ClassNotFoundException: com.google.common.collect.Maps 2013/04/04 10:26:44 - Google Analytics.0 - at java.net.URLClassLoader$1.run(URLClassLoader.java:202) 2013/04/04 10:26:44 - Google Analytics.0 - at java.security.AccessController.doPrivileged(Native Method) 2013/04/04 10:26:44 - Google Analytics.0 - at java.net.URLClassLoader.findClass(URLClassLoader.java:190) 2013/04/04 10:26:44 - Google Analytics.0 - at java.lang.ClassLoader.loadClass(ClassLoader.java:306) 2013/04/04 10:26:44 - Google Analytics.0 - at java.lang.ClassLoader.loadClass(ClassLoader.java:247) 2013/04/04 10:26:44 - Google Analytics.0 - ... 7 more This blocks PDI-9587 It works fine on the 4.4.1 branch.
    via by Slawomir Chodnicki,
  • When running a transformation with the GA step, it cannot find its runtime dependencies. It breaks with the following exception: 2013/04/04 10:26:44 - Google Analytics.0 - ERROR (version TRUNK-SNAPSHOT, build 1 from 2013-04-04 09.41.57 by slawo) : Unexpected error 2013/04/04 10:26:44 - Google Analytics.0 - ERROR (version TRUNK-SNAPSHOT, build 1 from 2013-04-04 09.41.57 by slawo) : java.lang.NoClassDefFoundError: com/google/common/collect/Maps 2013/04/04 10:26:44 - Google Analytics.0 - at com.google.gdata.wireformats.AltRegistry.<init>(AltRegistry.java:118) 2013/04/04 10:26:44 - Google Analytics.0 - at com.google.gdata.wireformats.AltRegistry.<init>(AltRegistry.java:100) 2013/04/04 10:26:44 - Google Analytics.0 - at com.google.gdata.client.Service.<clinit>(Service.java:555) 2013/04/04 10:26:44 - Google Analytics.0 - at org.pentaho.di.trans.steps.googleanalytics.GaInputStep.getNextDataEntry(GaInputStep.java:240) 2013/04/04 10:26:44 - Google Analytics.0 - at org.pentaho.di.trans.steps.googleanalytics.GaInputStep.processRow(GaInputStep.java:111) 2013/04/04 10:26:44 - Google Analytics.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:60) 2013/04/04 10:26:44 - Google Analytics.0 - at java.lang.Thread.run(Thread.java:680) 2013/04/04 10:26:44 - Google Analytics.0 - Caused by: java.lang.ClassNotFoundException: com.google.common.collect.Maps 2013/04/04 10:26:44 - Google Analytics.0 - at java.net.URLClassLoader$1.run(URLClassLoader.java:202) 2013/04/04 10:26:44 - Google Analytics.0 - at java.security.AccessController.doPrivileged(Native Method) 2013/04/04 10:26:44 - Google Analytics.0 - at java.net.URLClassLoader.findClass(URLClassLoader.java:190) 2013/04/04 10:26:44 - Google Analytics.0 - at java.lang.ClassLoader.loadClass(ClassLoader.java:306) 2013/04/04 10:26:44 - Google Analytics.0 - at java.lang.ClassLoader.loadClass(ClassLoader.java:247) 2013/04/04 10:26:44 - Google Analytics.0 - ... 7 more This blocks PDI-9587 It works fine on the 4.4.1 branch.
    via by Slawomir Chodnicki,
  • Beginners Problem
    via by William Colls,
  • GData DocService java exception
    via Stack Overflow by Robert Green
    ,
  • Hi, I got an exception
    via GitHub by game-libgdx-unity
    ,
    • java.lang.NoClassDefFoundError: com/google/common/collect/Maps at com.google.gdata.wireformats.AltRegistry.<init>(AltRegistry.java:118) at com.google.gdata.wireformats.AltRegistry.<init>(AltRegistry.java:100) at com.google.gdata.client.Service.<clinit>(Service.java:555) at googlesheet.gsheet.main(gsheet.java:24) Caused by: java.lang.ClassNotFoundException: com.google.common.collect.Maps at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 4 more

    Users with the same issue

    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,
    Unknown visitor
    Unknown visitor1 times, last one,
    2331 more bugmates