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!

Powered by Vanilla. Made with Bootstrap.
GATK 3.7 is here! Be sure to read the Version Highlights and optionally the full Release Notes.
Register now for the upcoming GATK Best Practices workshop, Feb 20-22 in Leuven, Belgium. Open to all comers! More info and signup at

Error: Can't connect to window server - not enough permissions, when running "RealignerTargetCreator

rcholicrcholic DenverMember Posts: 68
edited July 2013 in Ask the GATK team

I started with BWA-MEM to do alignment, used Picard to process the .SAM files (converted to bam, reorder, addorreplacegroup, etc). The GATK version I'm using is version 2.5-2-gf57256b, I cannot run 2.6 because the server only has Java 6 and I cannot upgrade it to Java 7.

I got a huge stack of error message when I run this command line (RealignerTargetCrator):

java -Xmx2g -jar $CLASSPATH/GenomeAnalysisTK.jar \

-T RealignerTargetCreator \
-R /Volumes/files/Users/user1/GATK_ref/hg19.fasta \
-I sorted_Deduped_reorder_grp.bam \
-o ./GATK/forIndelRealigner.intervals>

The error messages are these (sorry, a lot): I don't know why GATK needs to connect to window server? what permission problem? I am using a Mac OS X built server (remote). Thank you

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

java.lang.InternalError: Can't connect to window server - not enough permissions.
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(
at java.lang.ClassLoader.loadLibrary(
at java.lang.Runtime.loadLibrary0(
at java.lang.System.loadLibrary(
at Method)
at java.awt.Toolkit.loadLibraries(
at java.awt.Toolkit.(
at sun.awt.AppContext$
at sun.awt.AppContext$
at Method)
at sun.awt.AppContext.initMainAppContext(
at sun.awt.AppContext.access$200(
at sun.awt.AppContext$
at Method)
at sun.awt.AppContext.getAppContext(
at com.sun.jmx.trace.Trace.out(
at com.sun.jmx.trace.Trace.isSelected(
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.isTraceOn(
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(
at com.sun.jmx.mbeanserver.JmxMBeanServer$
at Method)
at com.sun.jmx.mbeanserver.JmxMBeanServer.initialize(
at com.sun.jmx.mbeanserver.JmxMBeanServer.(
at com.sun.jmx.mbeanserver.JmxMBeanServer.(
at com.sun.jmx.mbeanserver.JmxMBeanServer.newMBeanServer(
at org.broadinstitute.sting.gatk.executive.MicroScheduler.(
at org.broadinstitute.sting.gatk.executive.LinearMicroScheduler.(
at org.broadinstitute.sting.gatk.executive.MicroScheduler.create(
at org.broadinstitute.sting.gatk.GenomeAnalysisEngine.createMicroscheduler(
at org.broadinstitute.sting.gatk.GenomeAnalysisEngine.execute(
at org.broadinstitute.sting.gatk.CommandLineExecutable.execute(
at org.broadinstitute.sting.commandline.CommandLineProgram.start(
at org.broadinstitute.sting.commandline.CommandLineProgram.start(
at org.broadinstitute.sting.gatk.CommandLineGATK.main(

ERROR ------------------------------------------------------------------------------------------
ERROR A GATK RUNTIME ERROR has occurred (version 2.5-2-gf57256b):

Issue · Github
by Geraldine_VdAuwera

Issue Number
Last Updated
Closed By


  • rcholicrcholic DenverMember Posts: 68

    I think I found the answer to my question. After I include the "-Djava.awt.headless=true" option before "-jar" in my above command, GATK runs perfectly fine on my remote Mac server. I post this in case other people may find it helpful in future. - cheers.

  • Geraldine_VdAuweraGeraldine_VdAuwera Administrator, Dev Posts: 11,118 admin

    Thanks for posting the solution to your issue, @rcholic -- and sorry for not responding earlier. Glad your issue is resolved.

    Geraldine Van der Auwera, PhD

  • rcholicrcholic DenverMember Posts: 68

    @Geraldine_VdAuwera said:
    Thanks for posting the solution to your issue, rcholic -- and sorry for not responding earlier. Glad your issue is resolved.

    sure, you are welcome. Thank YOU GUYS for offering GATK. I think the code in GATK package may somehow triggers awt (accidentally?, might be a bug) during running, which is not possible to execute in SSH. I guess this is the main cause for my error messages posted in the original post. -cheers

  • Geraldine_VdAuweraGeraldine_VdAuwera Administrator, Dev Posts: 11,118 admin

    Yep, sounds like a bug -- we'll try to fix this issue in an upcoming version. But in the meantime it's good to have a workaround.

    Geraldine Van der Auwera, PhD

  • Geraldine_VdAuweraGeraldine_VdAuwera Administrator, Dev Posts: 11,118 admin
    edited April 2015

    @rcholic Just an update -- this has been lingering in the queue forever because versions that run on java 6 are deprecated, and it seems it doesn't happen with java 7, so we're now accepting that we just can't devote any effort to this at all, especially since you have a workaround and no work is blocked afaik. We're happy to take a patch from someone of course.

    Geraldine Van der Auwera, PhD

Sign In or Register to comment.