java.lang.reflect.InvocationTargetException

Exception #2494718

Samebug tips0

We couldn't find tips for this exception.

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

Solutions on the web1

  • via Unknown by pgovindraj,
  • Stack trace

    • java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:323) at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:338) Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at org.terracotta.agent.Agent.premain(Agent.java:154) ... 6 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.terracotta.agent.Agent.premain(Agent.java:151) ... 6 more Caused by: org.osgi.framework.BundleException: BundleActivator start failed at org.knopflerfish.framework.BundleImpl.start0(BundleImpl.java:404) at org.knopflerfish.framework.PermissionOps.callStart0(PermissionOps.java:198) at org.knopflerfish.framework.BundleImpl.start(BundleImpl.java:320) at org.knopflerfish.framework.Framework.startBundle(Framework.java:501) at com.tc.bundles.KnopflerfishOSGi.startBundle(KnopflerfishOSGi.java:92) at com.tc.bundles.KnopflerfishOSGi.startBundles(KnopflerfishOSGi.java:73) at com.tc.plugins.ModulesLoader.initModules(ModulesLoader.java:210) at com.tc.plugins.ModulesLoader.initModules(ModulesLoader.java:127) at org.terracotta.agent.Agent$Boot.<init>(Agent.java:352) ... 11 more Caused by: java.lang.LinkageError: loader constraint violation: when resolving method "org.terracotta.modules.hibernatecache.activation.BaseHibernateConfigurator.<init>(Lorg/terracotta/modules/hibernate/concurrency/instrumentation/HibernateVersion;)V" the class loader (instance of org/knopflerfish/framework/BundleClassLoader) of the current class, org/terracotta/modules/hibernatecache/v33/HibernateCacheV33TerracottaConfigurator, and the class loader (instance of org/knopflerfish/framework/BundleClassLoader) for resolved class, org/terracotta/modules/hibernatecache/activation/BaseHibernateConfigurator, have different Class objects for the type org/terracotta/modules/hibernate/concurrency/instrumentation/HibernateVersion used in the signature at org.terracotta.modules.hibernatecache.v33.HibernateCacheV33TerracottaConfigurator.<init>(HibernateCacheV33TerracottaConfigurator.java:21) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.knopflerfish.framework.BundleImpl.start0(BundleImpl.java:371) ... 19 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

    We couldn't find other users who have seen this exception.