java.lang.InternalError: Can't connect to window server - not enough permissions.

Jenkins JIRA | jcbuffington | 9 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Symptom: hudson.war fails to initialize while attempting to connect to a non-existent window server process. Tomcat is launched as a service on Mac OS X Server using Apple's launchd process. The Tomcat process does not have access to an interactive window server session. Hudson appears to require a interactive session window server to load the java.awt.Font class. Environment: OS -> Mac OS X Server 10.5.1 (Leopard) Java -> Apple's Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-237) Tomcat -> 6.0.14 Hudson -> 1.165 and 1.166 catalina.out: ... INFO: Deploying web application archive hudson.war hudson home directory: /usr/local/hudson Jan 5, 2008 6:59:41 AM hudson.WebAppMain$2 run SEVERE: Failed to initialize Hudson 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(ClassLoader.java:1822) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1723) at java.lang.Runtime.loadLibrary0(Runtime.java:822) at java.lang.System.loadLibrary(System.java:993) at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.loadLibraries(Toolkit.java:1509) at java.awt.Toolkit.<clinit>(Toolkit.java:1530) at java.awt.Font.<clinit>(Font.java:141) at hudson.model.DependencyGraph.<clinit>(DependencyGraph.java:286) at hudson.model.Hudson.<init>(Hudson.java:210) at hudson.WebAppMain$2.run(WebAppMain.java:129) ...

    Jenkins JIRA | 9 years ago | jcbuffington
    java.lang.InternalError: Can't connect to window server - not enough permissions.
  2. 0

    Symptom: hudson.war fails to initialize while attempting to connect to a non-existent window server process. Tomcat is launched as a service on Mac OS X Server using Apple's launchd process. The Tomcat process does not have access to an interactive window server session. Hudson appears to require a interactive session window server to load the java.awt.Font class. Environment: OS -> Mac OS X Server 10.5.1 (Leopard) Java -> Apple's Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-237) Tomcat -> 6.0.14 Hudson -> 1.165 and 1.166 catalina.out: ... INFO: Deploying web application archive hudson.war hudson home directory: /usr/local/hudson Jan 5, 2008 6:59:41 AM hudson.WebAppMain$2 run SEVERE: Failed to initialize Hudson 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(ClassLoader.java:1822) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1723) at java.lang.Runtime.loadLibrary0(Runtime.java:822) at java.lang.System.loadLibrary(System.java:993) at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.loadLibraries(Toolkit.java:1509) at java.awt.Toolkit.<clinit>(Toolkit.java:1530) at java.awt.Font.<clinit>(Font.java:141) at hudson.model.DependencyGraph.<clinit>(DependencyGraph.java:286) at hudson.model.Hudson.<init>(Hudson.java:210) at hudson.WebAppMain$2.run(WebAppMain.java:129) ...

    Jenkins JIRA | 9 years ago | jcbuffington
    java.lang.InternalError: Can't connect to window server - not enough permissions.

    Root Cause Analysis

    1. java.lang.InternalError

      Can't connect to window server - not enough permissions.

      at java.lang.ClassLoader$NativeLibrary.load()
    2. Java RT
      Font.<clinit>
      1. java.lang.ClassLoader$NativeLibrary.load(Native Method)
      2. java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1822)
      3. java.lang.ClassLoader.loadLibrary(ClassLoader.java:1723)
      4. java.lang.Runtime.loadLibrary0(Runtime.java:822)
      5. java.lang.System.loadLibrary(System.java:993)
      6. sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
      7. java.security.AccessController.doPrivileged(Native Method)
      8. java.awt.Toolkit.loadLibraries(Toolkit.java:1509)
      9. java.awt.Toolkit.<clinit>(Toolkit.java:1530)
      10. java.awt.Font.<clinit>(Font.java:141)
      10 frames
    3. Hudson
      WebAppMain$2.run
      1. hudson.model.DependencyGraph.<clinit>(DependencyGraph.java:286)
      2. hudson.model.Hudson.<init>(Hudson.java:210)
      3. hudson.WebAppMain$2.run(WebAppMain.java:129)
      3 frames