java.lang.reflect.InvocationTargetException

This exception has no message.

Samebug tips8

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.

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.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web23854

  • via Terracotta by hrithik, 1 year ago
    This exception has no message.
  • via Terracotta by nandinio, 1 year ago
    This exception has no message.
  • via Terracotta by johannr, 1 year ago
    This exception has no message.
  • Stack trace

    • java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.opennms.bootstrap.Bootstrap$4.run(Bootstrap.java:452) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NoClassDefFoundError: com/sun/tools/attach/AttachNotSupportedException at org.opennms.netmgt.vmmgr.ControllerUtils.getController(ControllerUtils.java:48) at org.opennms.upgrade.support.Upgrade.isOpennmsRunning(Upgrade.java:110) at org.opennms.upgrade.support.Upgrade.execute(Upgrade.java:233) at org.opennms.upgrade.support.Upgrade.main(Upgrade.java:266) ... 6 more Caused by: java.lang.ClassNotFoundException: com.sun.tools.attach.AttachNotSupportedException at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:814) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 10 more

    Write tip

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

    Users with the same issue

    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    2430 more bugmates