java.lang.NoClassDefFoundError: org/apache/commons/compress/utils/CountingOutputStream

GitHub | akiezun | 9 months 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

    GitHub comment 576#232178662

    GitHub | 9 months ago | akiezun
    java.lang.NoClassDefFoundError: org/apache/commons/compress/utils/CountingOutputStream
  2. 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.
  3. 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>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    This was caused by a failure to instantiate Kafka broker. Check your dependencies.
  6. 0
    samebug tip
    NoClassDefFoundError means java has failed to find a class you're trying to instantiate, look if you've added the class you're trying to instantiate to the dependencies.
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.commons.compress.utils.CountingOutputStream

    at java.net.URLClassLoader.findClass()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    2. java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    3. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    4. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    4 frames
  3. htsjdk.samtools.cram
    CramIO.writeHeader
    1. htsjdk.samtools.cram.build.CramIO.writeContainerForSamFileHeader(CramIO.java:269)
    2. htsjdk.samtools.cram.build.CramIO.writeCramHeader(CramIO.java:183)
    3. htsjdk.samtools.cram.build.CramIO.writeHeader(CramIO.java:118)
    3 frames
  4. HTS JDK
    SAMFileWriterFactory.makeWriter
    1. htsjdk.samtools.CRAMContainerStreamWriter.writeHeader(CRAMContainerStreamWriter.java:116)
    2. htsjdk.samtools.CRAMFileWriter.writeHeader(CRAMFileWriter.java:119)
    3. htsjdk.samtools.SAMFileWriterImpl.setHeader(SAMFileWriterImpl.java:142)
    4. htsjdk.samtools.CRAMFileWriter.<init>(CRAMFileWriter.java:105)
    5. htsjdk.samtools.SAMFileWriterFactory.createCRAMWriterWithSettings(SAMFileWriterFactory.java:485)
    6. htsjdk.samtools.SAMFileWriterFactory.makeCRAMWriter(SAMFileWriterFactory.java:435)
    7. htsjdk.samtools.SAMFileWriterFactory.makeWriter(SAMFileWriterFactory.java:381)
    7 frames
  5. picard.sam
    RevertSam.doWork
    1. picard.sam.RevertSam$RevertSamWriter.<init>(RevertSam.java:556)
    2. picard.sam.RevertSam.doWork(RevertSam.java:222)
    2 frames
  6. picard.cmdline
    CommandLineProgramTest.runPicardCommandLine
    1. picard.cmdline.CommandLineProgram.instanceMain(CommandLineProgram.java:208)
    2. picard.cmdline.PicardCommandLine.instanceMain(PicardCommandLine.java:95)
    3. picard.cmdline.PicardCommandLine.instanceMain(PicardCommandLine.java:100)
    4. picard.cmdline.CommandLineProgramTest.runPicardCommandLine(CommandLineProgramTest.java:48)
    4 frames
  7. picard.sam
    RevertSamTest.testOutputByReadGroupWithOutputMap
    1. picard.sam.RevertSamTest.testOutputByReadGroupWithOutputMap(RevertSamTest.java:172)
    1 frame
  8. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  9. TestNG
    TestNG.run
    1. org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:86)
    2. org.testng.internal.Invoker.invokeMethod(Invoker.java:643)
    3. org.testng.internal.Invoker.invokeTestMethod(Invoker.java:820)
    4. org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1128)
    5. org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:129)
    6. org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112)
    7. org.testng.TestRunner.privateRun(TestRunner.java:782)
    8. org.testng.TestRunner.run(TestRunner.java:632)
    9. org.testng.SuiteRunner.runTest(SuiteRunner.java:366)
    10. org.testng.SuiteRunner.runSequentially(SuiteRunner.java:361)
    11. org.testng.SuiteRunner.privateRun(SuiteRunner.java:319)
    12. org.testng.SuiteRunner.run(SuiteRunner.java:268)
    13. org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
    14. org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
    15. org.testng.TestNG.runSuitesSequentially(TestNG.java:1244)
    16. org.testng.TestNG.runSuitesLocally(TestNG.java:1169)
    17. org.testng.TestNG.run(TestNG.java:1064)
    17 frames
  10. org.gradle.api
    SuiteTestClassProcessor.stop
    1. org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.runTests(TestNGTestClassProcessor.java:133)
    2. org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.stop(TestNGTestClassProcessor.java:83)
    3. org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:61)
    3 frames
  11. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  12. Gradle Core
    ProxyDispatchAdapter$DispatchingInvocationHandler.invoke
    1. org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
    2. org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
    3. org.gradle.messaging.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
    4. org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
    4 frames
  13. com.sun.proxy
    $Proxy2.stop
    1. com.sun.proxy.$Proxy2.stop(Unknown Source)
    1 frame
  14. org.gradle.api
    TestWorker.stop
    1. org.gradle.api.internal.tasks.testing.worker.TestWorker.stop(TestWorker.java:120)
    1 frame
  15. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  16. Gradle Core
    ReflectionDispatch.dispatch
    1. org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
    2. org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
    2 frames
  17. org.gradle.messaging
    MessageHub$Handler.run
    1. org.gradle.messaging.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:364)
    1 frame
  18. Gradle Core
    StoppableExecutorImpl$1.run
    1. org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
    2. org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
    2 frames
  19. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    3. java.lang.Thread.run(Thread.java:745)
    3 frames