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
    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.
  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
    Check if you didn't forget to instantiate your topic in the kafka broker.

  1. osvzs 4 times, last 1 week ago
  2. olle.hallin 3 times, last 5 days ago
  3. rp 1 times, last 2 weeks ago
  4. Dunmer 1 times, last 3 weeks ago
  5. poroszd 1 times, last 3 weeks ago
78 more registered users
17 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