java.lang.reflect.InvocationTargetException

Atlassian JIRA | Scott Talsma | 7 years 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

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

    Atlassian JIRA | 7 years ago | Scott Talsma
    java.lang.reflect.InvocationTargetException
  2. 0

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

    Atlassian JIRA | 7 years ago | Scott Talsma
    java.lang.reflect.InvocationTargetException
  3. 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.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

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

  1. marcbouvierdav 26 times, last 7 hours ago
  2. batwalrus76 12 times, last 21 hours ago
  3. musketyr 1 times, last 1 day ago
  4. SteVio1989 4 times, last 2 days ago
  5. andyglick 2 times, last 2 weeks ago
68 more registered users
27 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

    org.apache.velocity.app.Velocity

    at java.net.URLClassLoader$1.run()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader$1.run(Unknown Source)
    2. java.security.AccessController.doPrivileged(Native Method)
    3. java.net.URLClassLoader.findClass(Unknown Source)
    4. java.lang.ClassLoader.loadClass(Unknown Source)
    5. java.lang.ClassLoader.loadClass(Unknown Source)
    5 frames
  3. com.cenqua.fisheye
    Run.main
    1. com.cenqua.fisheye.AppConfig.<clinit>(AppConfig.java:60)
    2. com.cenqua.fisheye.ctl.Run.initJVM(Run.java:631)
    3. com.cenqua.fisheye.ctl.Run.mainImpl(Run.java:77)
    4. com.cenqua.fisheye.ctl.Run.main(Run.java:69)
    4 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    4. java.lang.reflect.Method.invoke(Unknown Source)
    4 frames
  5. com.cenqua.fisheye
    FishEyeCtl.main
    1. com.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:106)
    2. com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:39)
    2 frames