java.lang.reflect.InvocationTargetException

DataStax JIRA | Benjamin Seyinbour | 4 years ago
  1. 0

    I am able to read and write data to C* but can't get rid of this rather annoying error. I have only one copy of snappy-java-1.0.4.1 (the C* copy) in my ear. Here is the code 16:34:56,768 ERROR [stderr] (MSC service thread 1-8) java.lang.reflect.InvocationTargetException 16:34:56,774 ERROR [stderr] (MSC service thread 1-8) at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source) 16:34:56,777 ERROR [stderr] (MSC service thread 1-8) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 16:34:56,784 ERROR [stderr] (MSC service thread 1-8) at java.lang.reflect.Method.invoke(Method.java:601) 16:34:56,787 ERROR [stderr] (MSC service thread 1-8) at org.xerial.snappy.SnappyLoader.injectSnappyNativeLoader(SnappyLoader.java:268) 16:34:56,792 ERROR [stderr] (MSC service thread 1-8) at org.xerial.snappy.SnappyLoader.load(SnappyLoader.java:217) 16:34:56,795 ERROR [stderr] (MSC service thread 1-8) at org.xerial.snappy.Snappy.<clinit>(Snappy.java:44) 16:34:56,798 ERROR [stderr] (MSC service thread 1-8) at org.apache.cassandra.transport.FrameCompressor$SnappyCompressor.<init>(FrameCompressor.java:68) 16:34:56,802 ERROR [stderr] (MSC service thread 1-8) at org.apache.cassandra.transport.FrameCompressor$SnappyCompressor.<clinit>(FrameCompressor.java:43) 16:34:56,811 ERROR [stderr] (MSC service thread 1-8) at com.datastax.driver.core.ProtocolOptions$Compression.<clinit>(ProtocolOptions.java:32) 16:34:56,812 ERROR [stderr] (MSC service thread 1-8) at com.datastax.driver.core.Cluster$Builder.<init>(Cluster.java:256) 16:34:56,812 ERROR [stderr] (MSC service thread 1-8) at com.xxxxxx.xxx.dao.utils.PersistentUnit$CCluster.<init>(PersistentUnit.java:417) 16:34:56,813 ERROR [stderr] (MSC service thread 1-8) at com.xxxxxx.xxx.dao.utils.PersistentUnit$CCluster.create(PersistentUnit.java:408) 16:34:56,814 ERROR [stderr] (MSC service thread 1-8) at com.xxxxxx.xxx.dao.utils.PersistentUnit.buildCluster(PersistentUnit.java:85) 16:34:56,821 ERROR [stderr] (MSC service thread 1-8) at com.xxxxxx.xxx.dao.utils.PersistentUnit.getSession(PersistentUnit.java:96) 16:34:56,822 ERROR [stderr] (MSC service thread 1-8) at com.xxxxxx.xxx.dao.utils.PersistentUnit.getSession(PersistentUnit.java:126) 16:34:56,835 ERROR [stderr] (MSC service thread 1-8) at com.xxxxxx.xxx.dao.repository.AbstractRepository.<clinit>(AbstractRepository.java:108) 16:34:56,836 ERROR [stderr] (MSC service thread 1-8) at java.lang.Class.forName0(Native Method) 16:34:56,837 ERROR [stderr] (MSC service thread 1-8) at java.lang.Class.forName(Class.java:266) 16:34:56,838 ERROR [stderr] (MSC service thread 1-8) at org.jboss.invocation.proxy.AbstractProxyFactory.afterClassLoad(AbstractProxyFactory.java:94) 16:34:56,838 ERROR [stderr] (MSC service thread 1-8) at org.jboss.invocation.proxy.AbstractClassFactory.defineClass(AbstractClassFactory.java:166) 16:34:56,839 ERROR [stderr] (MSC service thread 1-8) at org.jboss.invocation.proxy.AbstractProxyFactory.getCachedMethods(AbstractProxyFactory.java:145) 16:34:56,840 ERROR [stderr] (MSC service thread 1-8) at org.jboss.as.ejb3.component.singleton.SingletonComponentDescription$4.configure(SingletonComponentDescription.java:185) 16:34:56,841 ERROR [stderr] (MSC service thread 1-8) at org.jboss.as.ee.component.ComponentDescription$DefaultComponentConfigurator.configure(ComponentDescription.java:929) 16:34:56,841 ERROR [stderr] (MSC service thread 1-8) at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:80) 16:34:56,842 ERROR [stderr] (MSC service thread 1-8) at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120) 16:34:56,843 ERROR [stderr] (MSC service thread 1-8) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) 16:34:56,857 ERROR [stderr] (MSC service thread 1-8) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) 16:34:56,867 ERROR [stderr] (MSC service thread 1-8) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 16:34:56,868 ERROR [stderr] (MSC service thread 1-8) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 16:34:56,868 ERROR [stderr] (MSC service thread 1-8) at java.lang.Thread.run(Thread.java:722) 16:34:56,870 ERROR [stderr] (MSC service thread 1-8) Caused by: java.lang.LinkageError: loader (instance of sun/misc/Launcher$ExtClassLoader): attempted duplicate class definition for name: "org/xerial/snappy/SnappyNativeLoader" 16:34:56,871 ERROR [stderr] (MSC service thread 1-8) at java.lang.ClassLoader.defineClass1(Native Method) 16:34:56,872 ERROR [stderr] (MSC service thread 1-8) at java.lang.ClassLoader.defineClass(ClassLoader.java:791) 16:34:56,873 ERROR [stderr] (MSC service thread 1-8) ... 30 more

    DataStax JIRA | 4 years ago | Benjamin Seyinbour
    java.lang.reflect.InvocationTargetException
  2. 0

    titan-cassandra mvn test issue on both 0.4.2 and 0.4.3

    Google Groups | 3 years ago | Maggie Pong
    java.lang.reflect.InvocationTargetException
  3. 0

    ElasticSearch 0.19.8 - JVM crash on solaris

    Google Groups | 4 years ago | Shantanu
    java.lang.reflect.InvocationTargetException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ProcessAccessException occurred inside Setter with Hibernate Search

    Stack Overflow | 3 years ago | Wasif Kirmani
    org.hibernate.PropertyAccessException: Exception occurred inside setter of com.bo.Sample.logEvents
  6. 0

    Yarn/ hdfs attempting to use kerberos when security is disabled

    Stack Overflow | 1 year ago | javadba
    java.lang.IllegalArgumentException: Can't get Kerberos realm
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.LinkageError

    loader (instance of sun/misc/Launcher$ExtClassLoader): attempted duplicate class definition for name: "org/xerial/snappy/SnappyNativeLoader"

    at java.lang.ClassLoader.defineClass1()
  2. Java RT
    Method.invoke
    1. java.lang.ClassLoader.defineClass1(Native Method)
    2. java.lang.ClassLoader.defineClass(ClassLoader.java:791)
    3. sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    4. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    5. java.lang.reflect.Method.invoke(Method.java:601)
    5 frames
  3. snappy-java
    Snappy.<clinit>
    1. org.xerial.snappy.SnappyLoader.injectSnappyNativeLoader(SnappyLoader.java:268)
    2. org.xerial.snappy.SnappyLoader.load(SnappyLoader.java:217)
    3. org.xerial.snappy.Snappy.<clinit>(Snappy.java:44)
    3 frames
  4. org.apache.cassandra
    FrameCompressor$SnappyCompressor.<clinit>
    1. org.apache.cassandra.transport.FrameCompressor$SnappyCompressor.<init>(FrameCompressor.java:68)
    2. org.apache.cassandra.transport.FrameCompressor$SnappyCompressor.<clinit>(FrameCompressor.java:43)
    2 frames
  5. DataStax Java Driver for Apache Cassandra - Core
    Cluster$Builder.<init>
    1. com.datastax.driver.core.ProtocolOptions$Compression.<clinit>(ProtocolOptions.java:32)
    2. com.datastax.driver.core.Cluster$Builder.<init>(Cluster.java:256)
    2 frames
  6. com.xxxxxx.xxx
    AbstractRepository.<clinit>
    1. com.xxxxxx.xxx.dao.utils.PersistentUnit$CCluster.<init>(PersistentUnit.java:417)
    2. com.xxxxxx.xxx.dao.utils.PersistentUnit$CCluster.create(PersistentUnit.java:408)
    3. com.xxxxxx.xxx.dao.utils.PersistentUnit.buildCluster(PersistentUnit.java:85)
    4. com.xxxxxx.xxx.dao.utils.PersistentUnit.getSession(PersistentUnit.java:96)
    5. com.xxxxxx.xxx.dao.utils.PersistentUnit.getSession(PersistentUnit.java:126)
    6. com.xxxxxx.xxx.dao.repository.AbstractRepository.<clinit>(AbstractRepository.java:108)
    6 frames
  7. Java RT
    Class.forName
    1. java.lang.Class.forName0(Native Method)
    2. java.lang.Class.forName(Class.java:266)
    2 frames
  8. org.jboss.invocation
    AbstractProxyFactory.getCachedMethods
    1. org.jboss.invocation.proxy.AbstractProxyFactory.afterClassLoad(AbstractProxyFactory.java:94)
    2. org.jboss.invocation.proxy.AbstractClassFactory.defineClass(AbstractClassFactory.java:166)
    3. org.jboss.invocation.proxy.AbstractProxyFactory.getCachedMethods(AbstractProxyFactory.java:145)
    3 frames
  9. JBoss Application Server: EJB Subsystem
    SingletonComponentDescription$4.configure
    1. org.jboss.as.ejb3.component.singleton.SingletonComponentDescription$4.configure(SingletonComponentDescription.java:185)
    1 frame
  10. JBoss Application Server: EE
    EEModuleConfigurationProcessor.deploy
    1. org.jboss.as.ee.component.ComponentDescription$DefaultComponentConfigurator.configure(ComponentDescription.java:929)
    2. org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:80)
    2 frames
  11. JBoss Application Server: Server
    DeploymentUnitPhaseService.start
    1. org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120)
    1 frame
  12. JBoss Modular Service Container
    ServiceControllerImpl$StartTask.run
    1. org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
    2. org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
    2 frames
  13. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    3. java.lang.Thread.run(Thread.java:722)
    3 frames