Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,

    Make sure to add the H2 jar file to the classpath environment variable. If you are using an IDE like NetBeans, add the H2 jar file to your project libraries.

  2. ,
    Expert tip

    A few things cause this exception:
    1) Check if you have all jars and if they're in the correct path.
    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.

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 moreCaused 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