Question: BBTools - bug (?)
gravatar for cacampbell
4.2 years ago by
United States
cacampbell50 wrote:

Hello Brian Bushnell,

I get an ambiguous stack trace in 1/8 - 1/10 of jobs (but not other tools), and I cannot seem to reliably reproduce the problem. Running the same jobs again on the same files only produces errors in the same files by rare coincidence, if at all.

Here is the full output:

java -ea -Xmx38G -cp /home/cacampbe/.prog/bbmap/current/ jgi.SplitPairsAndSingles rp in1=ErrCorrect/SM13_200/FCC5V31ANXX_L1_wHAXPI019566-83_R1.fq.gz in2=ErrCorrect/SM13_200/FCC5V31ANXX_L1_wHAXPI019566-83_R2.fq.gz out1=ErrCorrect_Repair/SM13_200/FCC5V31ANXX_L1_wHAXPI019566-83_R1.fq.gz out2=ErrCorrect_Repair/SM13_200/FCC5V31ANXX_L1_wHAXPI019566-83_R2.fq.gz -Xmx38G t=9
Executing jgi.SplitPairsAndSingles [rp, in1=ErrCorrect/SM13_200/FCC5V31ANXX_L1_wHAXPI019566-83_R1.fq.gz, in2=ErrCorrect/SM13_200/FCC5V31ANXX_L1_wHAXPI019566-83_R2.fq.gz, out1=ErrCorrect_Repair/SM13_200/FCC5V31ANXX_L1_wHAXPI019566-83_R1.fq.gz, out2=ErrCorrect_Repair/SM13_200/FCC5V31ANXX_L1_wHAXPI019566-83_R2.fq.gz, -Xmx38G, t=9]

Set threads to 9
Set INTERLEAVED to false
Exception in thread "main" java.lang.NoClassDefFoundError: java/lang/ProcessBuilder$Redirect
    at fileIO.ReadWrite.getOutputStreamFromProcess(
    at fileIO.ReadWrite.getPigzStream(
    at fileIO.ReadWrite.getGZipOutputStream(
    at fileIO.ReadWrite.getOutputStream(
    at fileIO.ReadWrite.getOutputStream(
    at stream.ReadStreamWriter.<init>(
    at stream.ReadStreamByteWriter.<init>(
    at stream.ConcurrentGenericReadOutputStream.<init>(
    at stream.ConcurrentReadOutputStream.getStream(
    at stream.ConcurrentReadOutputStream.getStream(
    at jgi.SplitPairsAndSingles.process2(
    at jgi.SplitPairsAndSingles.process(
    at jgi.SplitPairsAndSingles.main(
Caused by: java.lang.ClassNotFoundException: java.lang.ProcessBuilder$Redirect
    at Method)
    at java.lang.ClassLoader.loadClass(
    at sun.misc.Launcher$AppClassLoader.loadClass(
    at java.lang.ClassLoader.loadClass(
    ... 13 more

Some (relevant?) background information:

  • Java 1.8

  • pigz

  • BBMap 35.92

The process then hangs seemingly indefinitely.

bbtools • 2.0k views
ADD COMMENTlink modified 4.2 years ago • written 4.2 years ago by cacampbell50

That's really strange, and I can't seem to replicate it. Are you using OpenJDK or the Oracle version of Java?

Either way, if you add these flags:

pigz=f unpigz=f

...the problem should go away. Please let me know if it doesn't.

It kind of sounds to me like sometimes an old version of Java is being used. For example, if you are on a cluster and the job is running on some random node, then there is one node with perhaps Java 1.6 and all the others have Java 1.8; or one node has pigz installed and the others don't. Basically, they only explanation I can imagine is that the environment is different for the jobs that fail compared to the ones that succeed.

ADD REPLYlink modified 4.2 years ago • written 4.2 years ago by Brian Bushnell17k

Hi Brian, I believe that the java problem was the issue.

We do use an environment module system, and I was loading java 1.8 for each of these jobs. Nonetheless, it appears that three nodes are unable to find the modulepath and thus default to java 1.6. I have notified our system administrators.

I didn't see this issue with other processes because the three nodes in question all have very little RAM. Reformat doesn't take much RAM, so it is the only process that ever ran on these nodes (of the BBTools that I have been running so far)

Thanks for the help!

ADD REPLYlink modified 4.2 years ago • written 4.2 years ago by cacampbell50

Ah. Modules are wonderful but when individual nodes misbehave it can be hard to track down .. specially when you are a regular user.

ADD REPLYlink written 4.2 years ago by genomax89k
gravatar for cacampbell
4.2 years ago by
United States
cacampbell50 wrote:

Java version error due to nodes not finding modulepath -- see comments

ADD COMMENTlink written 4.2 years ago by cacampbell50
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1130 users visited in the last hour