Caused by: java.lang.ClassNotFoundException: org.apache.commons.compress.utils.CountingOutputStream #40
Comments
Getting similar exception using v3.0 java -jar ~/bin/cramtools-3.0/cramtools-3.0.jar bam --input-cram-file HG00096.alt_bwamem_GRCh38DH.20150526.low_coverage.bam.cram --reference-fasta-file /cedar/lin/Data/human/GRCh38_full_analysis_set_plus_decoy_hla.fa --output-bam-file HG00096.alt_bwamem_GRCh38DH.20150526.low_coverage.bam Exception in thread "main" java.lang.reflect.InvocationTargetException |
Here too:
The reference has an index (X.fasta & X.fasta.fai)
|
Same here.
|
I solved the errors by reinstall cramtools from source by following the instruction. |
@ChihHsuLin, did not work for me. |
@ChihHsuLin @kaktus42 |
The release tag is missing some dependencies. I've checked in the fixed jar. |
Gah, just got stuck on this too. Any chance you could update the latest release to include the dependencies? |
Did you try the latest jar from the master branch? |
Yes, that worked fine. |
next release is coming, hopefully fixing this issue permanently. |
I'm currently using the latest release and I'm getting the same error. Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at net.sf.cram.CramTools.invoke(CramTools.java:91)
at net.sf.cram.CramTools.main(CramTools.java:121)
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/compress/utils/CountingOutputStream
at htsjdk.samtools.cram.build.CramIO.writeContainerForSamFileHeader(CramIO.java:247)
at htsjdk.samtools.cram.build.CramIO.writeCramHeader(CramIO.java:161)
at net.sf.cram.Bam2Cram.main(Bam2Cram.java:405)
... 6 more
Caused by: java.lang.ClassNotFoundException: org.apache.commons.compress.utils.CountingOutputStream
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358) |
[root@localhost cramtools]# java -jar cramtools-3.0.jar bam --input-cram-file /usr/snp/cramtools/HG00096.alt_bwamem_GRCh38DH.20150718.GBR.low_coverage.cram --reference-fasta-file /usr/snp/cramtools/GRCh38_full_analysis_set_plus_decoy_hla.fa --skip-md5-check --output-bam-file HG00096.bam |
@wangying0128 please try with more memory: |
I also had the same problem, building from the repo fixed it. |
Getting the same error. adding more memory did not fix it. |
Getting the same error. Cloning from git and building fixed it! |
Because this thread helped >1 year after, I also fixed error by cloning git and building with |
Getting this exception using the versioned download in v3.0 (https://github.com/enasequence/cramtools/archive/v3.0.tar.gz):
The text was updated successfully, but these errors were encountered: