net.sf.samtools.FileTruncatedException: Premature end of file

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via sourceforge.net by Unknown author, 1 year ago
Premature end of file
via GitHub by royfrancis
, 1 year ago
Premature end of file
net.sf.samtools.FileTruncatedException: Premature end of file
at net.sf.samtools.util.BlockCompressedInputStream.readBlock(BlockCompressedInputStream.java:290)
at net.sf.samtools.util.BlockCompressedInputStream.available(BlockCompressedInputStream.java:100)
at net.sf.samtools.util.BlockCompressedInputStream.read(BlockCompressedInputStream.java:169)
at java.io.DataInputStream.read(DataInputStream.java:132)
at net.sf.samtools.util.BinaryCodec.readBytesOrFewer(BinaryCodec.java:394)
at net.sf.samtools.util.BinaryCodec.readBytes(BinaryCodec.java:371)
at net.sf.samtools.util.BinaryCodec.readBytes(BinaryCodec.java:357)
at net.sf.samtools.BAMRecordCodec.decode(BAMRecordCodec.java:182)
at net.sf.samtools.BAMFileReader$BAMFileIterator.getNextRecord(BAMFileReader.java:397)
at net.sf.samtools.BAMFileReader$BAMFileIterator.advance(BAMFileReader.java:373)
at net.sf.samtools.BAMFileReader$BAMFileIterator.next(BAMFileReader.java:363)
at net.sf.samtools.BAMFileReader$BAMFileIterator.next(BAMFileReader.java:330)
at net.sf.picard.sam.MarkDuplicates.buildSortedReadEndLists(MarkDuplicates.java:261)
at net.sf.picard.sam.MarkDuplicates.doWork(MarkDuplicates.java:112)
at net.sf.picard.cmdline.CommandLineProgram.instanceMain(CommandLineProgram.java:150)
at net.sf.picard.sam.MarkDuplicates.main(MarkDuplicates.java:96)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.