java.lang.reflect.InvocationTargetException

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

You might've forgot to add a dependency or it's written wrong. Also, you might be using incompatible versions of Java and Hibernate. More on this here: https://goo.gl/SjSlRA

tip

This error means there's a class missing in your classpath during runtime. You need to create a jar with all your dependencies and have it in your classpath. Check Maven Assembly Plugin and how to add your dependencies to a jar: https://goo.gl/U2zr8k

tip

jsp-api and servlet-api jars must NOT be deployed by your web app. They should be marked as provided but not deployed by your app.

tip

The server rejects all jars that already belong to the server runtime (such as tomcat-**.jar, servlet**.jar). Consider substituting the CORS filter you're using for this one: https://goo.gl/ctQ7Fs

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

  • I downloaded the eval version yesterday (2.2.x), and have it quasi configured (it was running) when I discovered that 2.3 was released. So I deleted the old version's directory, and installed (unzipped) the new package into c:\fisheye. When running the bat file, this is what I get: C:\Documents and Settings\stalsma>cd \fisheye\fecru-2.3.0\bin C:\fisheye\fecru-2.3.0\bin>run.bat ERROR: problem running command java.lang.reflect.InvocationTargetException 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 com.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:106) at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:39) Caused by: java.lang.NoClassDefFoundError: org/apache/velocity/app/Velocity at com.cenqua.fisheye.AppConfig.<clinit>(AppConfig.java:60) at com.cenqua.fisheye.ctl.Run.initJVM(Run.java:631) at com.cenqua.fisheye.ctl.Run.mainImpl(Run.java:77) at com.cenqua.fisheye.ctl.Run.main(Run.java:69) ... 6 more Caused by: java.lang.ClassNotFoundException: org.apache.velocity.app.Velocity 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) ... 10 more Press any key to continue . . .
    via by Scott Talsma,
  • I downloaded the eval version yesterday (2.2.x), and have it quasi configured (it was running) when I discovered that 2.3 was released. So I deleted the old version's directory, and installed (unzipped) the new package into c:\fisheye. When running the bat file, this is what I get: C:\Documents and Settings\stalsma>cd \fisheye\fecru-2.3.0\bin C:\fisheye\fecru-2.3.0\bin>run.bat ERROR: problem running command java.lang.reflect.InvocationTargetException 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 com.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:106) at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:39) Caused by: java.lang.NoClassDefFoundError: org/apache/velocity/app/Velocity at com.cenqua.fisheye.AppConfig.<clinit>(AppConfig.java:60) at com.cenqua.fisheye.ctl.Run.initJVM(Run.java:631) at com.cenqua.fisheye.ctl.Run.mainImpl(Run.java:77) at com.cenqua.fisheye.ctl.Run.main(Run.java:69) ... 6 more Caused by: java.lang.ClassNotFoundException: org.apache.velocity.app.Velocity 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) ... 10 more Press any key to continue . . .
    via by Scott Talsma,
  • Deploying a Web Service to JBoss
    via by 116331,
  • It Is Up To Date?
    via GitHub by MrBan666
    ,
  • Bean Creation Exception with JBoss 5.1.2
    via Stack Overflow by ajit kumar
    ,
    • java.lang.reflect.InvocationTargetException 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 com.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:106) at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:39) Caused by: java.lang.NoClassDefFoundError: org/apache/velocity/app/Velocity at com.cenqua.fisheye.AppConfig.<clinit>(AppConfig.java:60) at com.cenqua.fisheye.ctl.Run.initJVM(Run.java:631) at com.cenqua.fisheye.ctl.Run.mainImpl(Run.java:77) at com.cenqua.fisheye.ctl.Run.main(Run.java:69) ... 6 more Caused by: java.lang.ClassNotFoundException: org.apache.velocity.app.Velocity 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) ... 10 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Matty
    1 times, last one,
    odd
    1 times, last one,
    tvrmsmith
    2 times, last one,
    2285 more bugmates