java.lang.reflect.InvocationTargetException: null

Google Groups | Piotr Bzdyl | 5 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola and rafael . Or join the community to write better ones.
  1. 0

    AOT classes with clj files on classpath causing ClassNotFoundException

    Google Groups | 5 months ago | Piotr Bzdyl
    java.lang.reflect.InvocationTargetException: null
  2. 0
    samebug tip
    This exception normally means you either have to add the said class to your dependencies or you miswrote it. Look in the documentation of your library how to add it as a dependency.
  3. 0
    samebug tip
    If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add with the following: <groupId>com.fasterxml</groupId> <artifactId>classmate</artifactId> <version>1.0</version>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    This was caused by a failure to instantiate Kafka broker. Check your dependencies.
  6. 0
    samebug 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.

  1. rsprangemeijer 6 times, last 1 day ago
  2. marcbouvierdav 26 times, last 3 days ago
  3. batwalrus76 12 times, last 4 days ago
  4. musketyr 1 times, last 4 days ago
  5. SteVio1989 4 times, last 5 days ago
69 more registered users
26 unregistered visitors
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.lang.ClassNotFoundException

    clojure.java.jdbc.Connectable

    at java.net.URLClassLoader.findClass()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader.findClass(URLClassLoader.java:381)[na:1.8.0_102]
    2. java.lang.ClassLoader.loadClass(ClassLoader.java:424)[na:1.8.0_102]
    3. java.lang.ClassLoader.loadClass(ClassLoader.java:357)[na:1.8.0_102]
    3 frames
  3. com.example.db
    database__init.<clinit>
    1. com.example.db.common.database__init.load(Unknown Source)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    2. com.example.db.common.database__init.<clinit>(Unknown Source)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    2 frames
  4. Java RT
    Class.forName
    1. java.lang.Class.forName0(Native Method)[na:1.8.0_102]
    2. java.lang.Class.forName(Class.java:348)[na:1.8.0_102]
    2 frames
  5. Clojure
    RestFn.invoke
    1. clojure.lang.RT.classForName(RT.java:2154)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    2. clojure.lang.RT.classForName(RT.java:2163)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    3. clojure.lang.RT.loadClassForName(RT.java:2182)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    4. clojure.lang.RT.load(RT.java:436)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    5. clojure.lang.RT.load(RT.java:412)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    6. clojure.core$load$fn__5448.invoke(core.clj:5866)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    7. clojure.core$load.doInvoke(core.clj:5865)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    8. clojure.lang.RestFn.invoke(RestFn.java:408)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    9. clojure.core$load_one.invoke(core.clj:5671)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    10. clojure.core$load_lib$fn__5397.invoke(core.clj:5711)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    11. clojure.core$load_lib.doInvoke(core.clj:5710)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    12. clojure.lang.RestFn.applyTo(RestFn.java:142)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    13. clojure.core$apply.invoke(core.clj:632)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    14. clojure.core$load_libs.doInvoke(core.clj:5749)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    15. clojure.lang.RestFn.applyTo(RestFn.java:137)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    16. clojure.core$apply.invoke(core.clj:632)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    17. clojure.core$require.doInvoke(core.clj:5832)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    18. clojure.lang.RestFn.invoke(RestFn.java:421)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    18 frames
  6. com.example.db
    password__init.<clinit>
    1. com.example.db.auth.password$loading__5340__auto____1250.invoke(password.clj:1)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    2. com.example.db.auth.password__init.load(Unknown Source)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    3. com.example.db.auth.password__init.<clinit>(Unknown Source)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    3 frames
  7. Java RT
    Class.forName
    1. java.lang.Class.forName0(Native Method)[na:1.8.0_102]
    2. java.lang.Class.forName(Class.java:348)[na:1.8.0_102]
    2 frames
  8. Clojure
    RestFn.invoke
    1. clojure.lang.RT.classForName(RT.java:2154)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    2. clojure.lang.RT.classForName(RT.java:2163)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    3. clojure.lang.RT.loadClassForName(RT.java:2182)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    4. clojure.lang.RT.load(RT.java:436)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    5. clojure.lang.RT.load(RT.java:412)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    6. clojure.core$load$fn__5448.invoke(core.clj:5866)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    7. clojure.core$load.doInvoke(core.clj:5865)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    8. clojure.lang.RestFn.invoke(RestFn.java:408)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    9. clojure.core$load_one.invoke(core.clj:5671)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    10. clojure.core$load_lib$fn__5397.invoke(core.clj:5711)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    11. clojure.core$load_lib.doInvoke(core.clj:5710)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    12. clojure.lang.RestFn.applyTo(RestFn.java:142)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    13. clojure.core$apply.invoke(core.clj:632)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    14. clojure.core$load_libs.doInvoke(core.clj:5749)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    15. clojure.lang.RestFn.applyTo(RestFn.java:137)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    16. clojure.core$apply.invoke(core.clj:634)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    17. clojure.core$use.doInvoke(core.clj:5843)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    18. clojure.lang.RestFn.invoke(RestFn.java:436)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    18 frames
  9. com.example.db
    user__init.<clinit>
    1. com.example.db.auth.user$loading__5340__auto____1248.invoke(user.clj:1)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    2. com.example.db.auth.user__init.load(Unknown Source)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    3. com.example.db.auth.user__init.<clinit>(Unknown Source)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    3 frames
  10. Java RT
    Class.forName
    1. java.lang.Class.forName0(Native Method)[na:1.8.0_102]
    2. java.lang.Class.forName(Class.java:348)[na:1.8.0_102]
    2 frames
  11. Clojure
    RestFn.invoke
    1. clojure.lang.RT.classForName(RT.java:2154)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    2. clojure.lang.RT.classForName(RT.java:2163)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    3. clojure.lang.RT.loadClassForName(RT.java:2182)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    4. clojure.lang.RT.load(RT.java:436)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    5. clojure.lang.RT.load(RT.java:412)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    6. clojure.core$load$fn__5448.invoke(core.clj:5866)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    7. clojure.core$load.doInvoke(core.clj:5865)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    8. clojure.lang.RestFn.invoke(RestFn.java:408)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    9. clojure.core$load_one.invoke(core.clj:5671)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    10. clojure.core$load_lib$fn__5397.invoke(core.clj:5711)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    11. clojure.core$load_lib.doInvoke(core.clj:5710)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    12. clojure.lang.RestFn.applyTo(RestFn.java:142)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    13. clojure.core$apply.invoke(core.clj:632)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    14. clojure.core$load_libs.doInvoke(core.clj:5753)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    15. clojure.lang.RestFn.applyTo(RestFn.java:137)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    16. clojure.core$apply.invoke(core.clj:632)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    17. clojure.core$require.doInvoke(core.clj:5832)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    18. clojure.lang.RestFn.invoke(RestFn.java:436)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    18 frames
  12. com.example.db
    init__init.<clinit>
    1. com.example.db.auth.init$loading__5340__auto____1246.invoke(init.clj:1)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    2. com.example.db.auth.init__init.load(Unknown Source)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    3. com.example.db.auth.init__init.<clinit>(Unknown Source)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    3 frames
  13. Java RT
    Class.forName
    1. java.lang.Class.forName0(Native Method)[na:1.8.0_102]
    2. java.lang.Class.forName(Class.java:348)[na:1.8.0_102]
    2 frames
  14. Clojure
    RestFn.invoke
    1. clojure.lang.RT.classForName(RT.java:2154)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    2. clojure.lang.RT.classForName(RT.java:2163)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    3. clojure.lang.RT.loadClassForName(RT.java:2182)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    4. clojure.lang.RT.load(RT.java:436)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    5. clojure.lang.RT.load(RT.java:412)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    6. clojure.core$load$fn__5448.invoke(core.clj:5866)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    7. clojure.core$load.doInvoke(core.clj:5865)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    8. clojure.lang.RestFn.invoke(RestFn.java:408)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    9. clojure.core$load_one.invoke(core.clj:5671)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    10. clojure.core$load_lib$fn__5397.invoke(core.clj:5711)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    11. clojure.core$load_lib.doInvoke(core.clj:5710)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    12. clojure.lang.RestFn.applyTo(RestFn.java:142)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    13. clojure.core$apply.invoke(core.clj:632)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    14. clojure.core$load_libs.doInvoke(core.clj:5749)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    15. clojure.lang.RestFn.applyTo(RestFn.java:137)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    16. clojure.core$apply.invoke(core.clj:632)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    17. clojure.core$require.doInvoke(core.clj:5832)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    18. clojure.lang.RestFn.invoke(RestFn.java:408)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    18 frames
  15. com.example.services
    activator$_main.doInvoke
    1. com.example.services.activator$register_services.invoke(activator.clj:61)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    2. com.example.services.activator$startup.invoke(activator.clj:131)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    3. com.example.services.activator$_main.doInvoke(activator.clj:139)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    3 frames
  16. Clojure
    RestFn.applyTo
    1. clojure.lang.RestFn.invoke(RestFn.java:397)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    2. clojure.lang.AFn.applyToHelper(AFn.java:152)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    3. clojure.lang.RestFn.applyTo(RestFn.java:132)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    3 frames
  17. com.example.services
    activator.main
    1. com.example.services.activator.main(Unknown Source)[example-2.5.0-SNAPSHOT-standalone.jar:na]
    1 frame
  18. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_102]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_102]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_102]
    4. java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_102]
    4 frames
  19. com.example
    Launcher$ThreadLauncher.run
    1. com.example.Launcher$ThreadLauncher.run(Launcher.java:42)[na:na]
    1 frame
  20. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)[na:1.8.0_102]
    1 frame