java.lang.reflect.InvocationTargetException: null

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

tip

This might be an issue with the file location in the Spark submit command. Try it with "spark-submit --master spark://master:7077 hello_world_from_pyspark.py {file location}"

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

  • org.apache.log.format.Formatter not found
    via hibernatepojoge by cretu02
    ,
  • Java - Apache POI - Convert XLS/XLSX to CSV · GitHub
    via by Unknown author,
  • GitHub comment 645#228892779
    via GitHub by arianaa30
    ,
  • Unable to create report
    via GitHub by Ryxmedia
    ,
  • GitHub comment 3625#126674820
    via GitHub by Dreampie
    ,
    • java.lang.reflect.InvocationTargetException: null at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_102] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_102] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_102] at java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_102] at com.example.Launcher$ThreadLauncher.run(Launcher.java:42)[na:na] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_102] Caused by: java.lang.NoClassDefFoundError: clojure/java/jdbc/Connectable at com.example.db.common.database__init.load(Unknown Source)[example-2.5.0-SNAPSHOT-standalone.jar:na] at com.example.db.common.database__init.<clinit>(Unknown Source)[example-2.5.0-SNAPSHOT-standalone.jar:na] at java.lang.Class.forName0(Native Method)[na:1.8.0_102] at java.lang.Class.forName(Class.java:348)[na:1.8.0_102] at clojure.lang.RT.classForName(RT.java:2154)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.lang.RT.classForName(RT.java:2163)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.lang.RT.loadClassForName(RT.java:2182)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.lang.RT.load(RT.java:436)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.lang.RT.load(RT.java:412)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$load$fn__5448.invoke(core.clj:5866)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$load.doInvoke(core.clj:5865)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.lang.RestFn.invoke(RestFn.java:408)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$load_one.invoke(core.clj:5671)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$load_lib$fn__5397.invoke(core.clj:5711)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$load_lib.doInvoke(core.clj:5710)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.lang.RestFn.applyTo(RestFn.java:142)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$apply.invoke(core.clj:632)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$load_libs.doInvoke(core.clj:5749)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.lang.RestFn.applyTo(RestFn.java:137)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$apply.invoke(core.clj:632)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$require.doInvoke(core.clj:5832)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.lang.RestFn.invoke(RestFn.java:421)[example-2.5.0-SNAPSHOT-standalone.jar:na] at com.example.db.auth.password$loading__5340__auto____1250.invoke(password.clj:1)[example-2.5.0-SNAPSHOT-standalone.jar:na] at com.example.db.auth.password__init.load(Unknown Source)[example-2.5.0-SNAPSHOT-standalone.jar:na] at com.example.db.auth.password__init.<clinit>(Unknown Source)[example-2.5.0-SNAPSHOT-standalone.jar:na] at java.lang.Class.forName0(Native Method)[na:1.8.0_102] at java.lang.Class.forName(Class.java:348)[na:1.8.0_102] at clojure.lang.RT.classForName(RT.java:2154)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.lang.RT.classForName(RT.java:2163)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.lang.RT.loadClassForName(RT.java:2182)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.lang.RT.load(RT.java:436)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.lang.RT.load(RT.java:412)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$load$fn__5448.invoke(core.clj:5866)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$load.doInvoke(core.clj:5865)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.lang.RestFn.invoke(RestFn.java:408)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$load_one.invoke(core.clj:5671)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$load_lib$fn__5397.invoke(core.clj:5711)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$load_lib.doInvoke(core.clj:5710)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.lang.RestFn.applyTo(RestFn.java:142)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$apply.invoke(core.clj:632)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$load_libs.doInvoke(core.clj:5749)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.lang.RestFn.applyTo(RestFn.java:137)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$apply.invoke(core.clj:634)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$use.doInvoke(core.clj:5843)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.lang.RestFn.invoke(RestFn.java:436)[example-2.5.0-SNAPSHOT-standalone.jar:na] at com.example.db.auth.user$loading__5340__auto____1248.invoke(user.clj:1)[example-2.5.0-SNAPSHOT-standalone.jar:na] at com.example.db.auth.user__init.load(Unknown Source)[example-2.5.0-SNAPSHOT-standalone.jar:na] at com.example.db.auth.user__init.<clinit>(Unknown Source)[example-2.5.0-SNAPSHOT-standalone.jar:na] at java.lang.Class.forName0(Native Method)[na:1.8.0_102] at java.lang.Class.forName(Class.java:348)[na:1.8.0_102] at clojure.lang.RT.classForName(RT.java:2154)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.lang.RT.classForName(RT.java:2163)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.lang.RT.loadClassForName(RT.java:2182)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.lang.RT.load(RT.java:436)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.lang.RT.load(RT.java:412)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$load$fn__5448.invoke(core.clj:5866)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$load.doInvoke(core.clj:5865)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.lang.RestFn.invoke(RestFn.java:408)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$load_one.invoke(core.clj:5671)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$load_lib$fn__5397.invoke(core.clj:5711)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$load_lib.doInvoke(core.clj:5710)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.lang.RestFn.applyTo(RestFn.java:142)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$apply.invoke(core.clj:632)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$load_libs.doInvoke(core.clj:5753)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.lang.RestFn.applyTo(RestFn.java:137)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$apply.invoke(core.clj:632)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$require.doInvoke(core.clj:5832)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.lang.RestFn.invoke(RestFn.java:436)[example-2.5.0-SNAPSHOT-standalone.jar:na] at com.example.db.auth.init$loading__5340__auto____1246.invoke(init.clj:1)[example-2.5.0-SNAPSHOT-standalone.jar:na] at com.example.db.auth.init__init.load(Unknown Source)[example-2.5.0-SNAPSHOT-standalone.jar:na] at com.example.db.auth.init__init.<clinit>(Unknown Source)[example-2.5.0-SNAPSHOT-standalone.jar:na] at java.lang.Class.forName0(Native Method)[na:1.8.0_102] at java.lang.Class.forName(Class.java:348)[na:1.8.0_102] at clojure.lang.RT.classForName(RT.java:2154)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.lang.RT.classForName(RT.java:2163)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.lang.RT.loadClassForName(RT.java:2182)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.lang.RT.load(RT.java:436)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.lang.RT.load(RT.java:412)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$load$fn__5448.invoke(core.clj:5866)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$load.doInvoke(core.clj:5865)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.lang.RestFn.invoke(RestFn.java:408)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$load_one.invoke(core.clj:5671)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$load_lib$fn__5397.invoke(core.clj:5711)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$load_lib.doInvoke(core.clj:5710)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.lang.RestFn.applyTo(RestFn.java:142)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$apply.invoke(core.clj:632)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$load_libs.doInvoke(core.clj:5749)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.lang.RestFn.applyTo(RestFn.java:137)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$apply.invoke(core.clj:632)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.core$require.doInvoke(core.clj:5832)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.lang.RestFn.invoke(RestFn.java:408)[example-2.5.0-SNAPSHOT-standalone.jar:na] at com.example.services.activator$register_services.invoke(activator.clj:61)[example-2.5.0-SNAPSHOT-standalone.jar:na] at com.example.services.activator$startup.invoke(activator.clj:131)[example-2.5.0-SNAPSHOT-standalone.jar:na] at com.example.services.activator$_main.doInvoke(activator.clj:139)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.lang.RestFn.invoke(RestFn.java:397)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.lang.AFn.applyToHelper(AFn.java:152)[example-2.5.0-SNAPSHOT-standalone.jar:na] at clojure.lang.RestFn.applyTo(RestFn.java:132)[example-2.5.0-SNAPSHOT-standalone.jar:na] at com.example.services.activator.main(Unknown Source)[example-2.5.0-SNAPSHOT-standalone.jar:na] ... 6 more Caused by: java.lang.ClassNotFoundException: clojure.java.jdbc.Connectable at java.net.URLClassLoader.findClass(URLClassLoader.java:381)[na:1.8.0_102] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)[na:1.8.0_102] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[na:1.8.0_102] ... 104 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown User
    Unknown User1 times, last one,
    Andreas Häber
    Andreas Häber1 times, last one,
    rp
    rp1 times, last one,
    poroszd
    poroszd5 times, last one,
    2331 more bugmates