The current GATK version is 3.7-0
Examples: Monday, today, last week, Mar 26, 3/26/04

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Get notifications!


You can opt in to receive email notifications, for example when your questions get answered or when there are new announcements, by following the instructions given here.

Did you remember to?


1. Search using the upper-right search box, e.g. using the error message.
2. Try the latest version of tools.
3. Include tool and Java versions.
4. Tell us whether you are following GATK Best Practices.
5. Include relevant details, e.g. platform, DNA- or RNA-Seq, WES (+capture kit) or WGS (PCR-free or PCR+), paired- or single-end, read length, expected average coverage, somatic data, etc.
6. For tool errors, include the error stacktrace as well as the exact command.
7. For format issues, include the result of running ValidateSamFile for BAMs or ValidateVariants for VCFs.
8. For weird results, include an illustrative example, e.g. attach IGV screenshots according to Article#5484.
9. For a seeming variant that is uncalled, include results of following Article#1235.

Did we ask for a bug report?


Then follow instructions in Article#1894.

Formatting tip!


Wrap blocks of code, error messages and BAM/VCF snippets--especially content with hashes (#)--with lines with three backticks ( ``` ) each to make a code block as demonstrated here.
Powered by Vanilla. Made with Bootstrap.
Picard 2.9.0 is now available. Download and read release notes here.
GATK 3.7 is here! Be sure to read the Version Highlights and optionally the full Release Notes.

Code Exception when running UG with multiple threads

vasyavasya Member Posts: 5
edited October 2012 in Ask the GATK team

Hi --

I'm running the UG on a subset of 1000G data (100 samples subset to chr20), and I would love to throw some more threads at the problem. However, using the -nt flag throws the following code exception:

ERROR ------------------------------------------------------------------------------------------
ERROR stack trace

java.lang.InternalError
at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:815)
at sun.misc.URLClassPath.getResource(URLClassPath.java:195)
at sun.misc.URLClassPath.getResource(URLClassPath.java:247)
at java.lang.ClassLoader.getBootstrapResource(ClassLoader.java:1298)
at java.lang.ClassLoader.getResource(ClassLoader.java:1135)
at java.lang.ClassLoader.getResource(ClassLoader.java:1133)
at java.lang.ClassLoader.getSystemResource(ClassLoader.java:1260)
at java.lang.ClassLoader.getSystemResourceAsStream(ClassLoader.java:1363)
at java.lang.Class.getResourceAsStream(Class.java:2045)
at javax.xml.stream.SecuritySupport$4.run(SecuritySupport.java:92)
at java.security.AccessController.doPrivileged(Native Method)
at javax.xml.stream.SecuritySupport.getResourceAsStream(SecuritySupport.java:87)
at javax.xml.stream.FactoryFinder.findJarServiceProvider(FactoryFinder.java:285)
at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:253)
at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:177)
at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:153)
at org.simpleframework.xml.stream.NodeBuilder.(NodeBuilder.java:48)
at org.simpleframework.xml.core.Persister.write(Persister.java:1000)
at org.simpleframework.xml.core.Persister.write(Persister.java:982)
at org.simpleframework.xml.core.Persister.write(Persister.java:963)
at org.broadinstitute.sting.gatk.phonehome.GATKRunReport.postReportToStream(GATKRunReport.java:236)
at org.broadinstitute.sting.gatk.phonehome.GATKRunReport.postReportToAWSS3(GATKRunReport.java:333)
at org.broadinstitute.sting.gatk.phonehome.GATKRunReport.postReport(GATKRunReport.java:215)
at org.broadinstitute.sting.gatk.CommandLineExecutable.generateGATKRunReport(CommandLineExecutable.java:157)
at org.broadinstitute.sting.gatk.CommandLineExecutable.execute(CommandLineExecutable.java:116)
at org.broadinstitute.sting.commandline.CommandLineProgram.start(CommandLineProgram.java:236)
at org.broadinstitute.sting.commandline.CommandLineProgram.start(CommandLineProgram.java:146)
at org.broadinstitute.sting.gatk.CommandLineGATK.main(CommandLineGATK.java:93)
Caused by: java.io.FileNotFoundException: /usr/java/jdk1.7.0_03/jre/lib/resources.jar (Too many open files)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:214)
at java.util.zip.ZipFile.(ZipFile.java:144)
at java.util.jar.JarFile.(JarFile.java:152)
at java.util.jar.JarFile.(JarFile.java:89)
at sun.misc.URLClassPath$JarLoader.getJarFile(URLClassPath.java:706)
at sun.misc.URLClassPath$JarLoader.access$600(URLClassPath.java:587)
at sun.misc.URLClassPath$JarLoader$1.run(URLClassPath.java:667)
at sun.misc.URLClassPath$JarLoader$1.run(URLClassPath.java:660)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath$JarLoader.ensureOpen(URLClassPath.java:659)
at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:813)
... 27 more

ERROR ------------------------------------------------------------------------------------------
ERROR A GATK RUNTIME ERROR has occurred (version 2.1-13-g1706365):
ERROR
ERROR Please visit the wiki to see if this is a known problem
ERROR If not, please post the error, with stack trace, to the GATK forum
ERROR Visit our website and forum for extensive documentation and answers to
ERROR commonly asked questions http://www.broadinstitute.org/gatk
ERROR
ERROR MESSAGE: Code exception (see stack trace for error itself)
ERROR ------------------------------------------------------------------------------------------

The code is called with the following code. Without the -nt flag it executes normally.

java -jar /userhome/vasya/apps/GenomeAnalysisTK-2.1-13/GenomeAnalysisTK.jar \
    -T UnifiedGenotyper \
    $(echo $bamFiles) \
    -R ${fasta} \
    -nt 2 \
    -o ${ug_vcf_root}

Are there any known issues with the threading options in the UG for GATK2?

Any suggestions for where to look next would be much appreciated! Its hard to know where to start with this.

Post edited by Geraldine_VdAuwera on

Best Answers

Answers

Sign In or Register to comment.