java.lang.reflect.InvocationTargetException

This exception has no message.

Samebug tips9

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 com.tangosol.util.Base.ensureRuntimeException(Base.java:288) at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2652) at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2536) at com.tangosol.net.DefaultConfigurableCacheFactory.instantiateAny(DefaultConfigurableCacheFactory.java:3476) at com.tangosol.net.DefaultConfigurableCacheFactory.instantiateCacheStore(DefaultConfigurableCacheFactory.java:3324) at com.tangosol.net.DefaultConfigurableCacheFactory.instantiateReadWriteBackingMap(DefaultConfigurableCacheFactory.java:1753) at com.tangosol.net.DefaultConfigurableCacheFactory.configureBackingMap(DefaultConfigurableCacheFactory.java:1500) at com.tangosol.net.DefaultConfigurableCacheFactory$Manager.instantiateBackingMap(DefaultConfigurableCacheFactory.java:4111) at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Storage.instantiateBackingMap(PartitionedCache.CDB:23) at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Storage.setCacheName(PartitionedCache.CDB:25) at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ServiceConfig$ConfigListener.entryInserted(PartitionedCache.CDB:17) at com.tangosol.util.MapEvent.dispatch(MapEvent.java:266) at com.tangosol.util.MapEvent.dispatch(MapEvent.java:226) at com.tangosol.util.MapListenerSupport.fireEvent(MapListenerSupport.java:567) at com.tangosol.util.ObservableHashMap.dispatchEvent(ObservableHashMap.java:229) at com.tangosol.util.ObservableHashMap$Entry.onAdd(ObservableHashMap.java:270) at com.tangosol.util.SafeHashMap.put(SafeHashMap.java:244) at com.tangosol.coherence.component.util.ServiceConfig$Map.put(ServiceConfig.CDB:43) at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$StorageIdRequest.onReceived(PartitionedCache.CDB:45) at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:34) at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:33) at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onNotify(PartitionedService.CDB:3) at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onNotify(PartitionedCache.CDB:3) at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42) at java.lang.Thread.run(Thread.java:662) 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 com.tangosol.util.ClassHelper.newInstance(ClassHelper.java:694) at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2611) ... 23 more Caused by: java.lang.NoClassDefFoundError: javax/persistence/Persistence at com.tangosol.coherence.jpa.JpaCacheLoader.initialize(JpaCacheLoader.java:160) at com.tangosol.coherence.jpa.JpaCacheLoader.<init>(JpaCacheLoader.java:49) at com.tangosol.coherence.jpa.JpaCacheStore.<init>(JpaCacheStore.java:44) ... 29 more Caused by: java.lang.ClassNotFoundException: javax.persistence.Persistence at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ... 32 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
    2 times, 11 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Once, 6 months ago
    Unknown user
    Once, 11 months ago
    2376 more bugmates