This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 53799 - java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
Summary: java.lang.InternalError: Can't connect to X11 window server using ':0.0' as t...
Status: CLOSED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Execution (show other bugs)
Version: 3.x
Hardware: Macintosh Linux
: P3 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-21 11:54 UTC by eppesuigoccas
Modified: 2008-12-22 19:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description eppesuigoccas 2005-01-21 11:54:26 UTC
Whenever I execute a java classes that uses AWT
from netbeans, I get this error:

Exception in thread "main"
java.lang.InternalError: Can't connect to X11
window server using ':0.0' as the value of the
DISPLAY variable.
        at
sun.awt.X11GraphicsEnvironment.initDisplay(Native
Method)
        at      at
sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:161).null(Unknown
Source)
        at java.lang.Class.forName1(Native Method)
        at java.lang.Class.forName(Class.java:176)
        at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:90)
        at java.awt.Window.init(Window.java:257)
        at java.awt.Window.<init>(Window.java:301)
        at java.awt.Frame.<init>(Frame.java:427)
        at java.awt.Frame.<init>(Frame.java:392)
        at javax.swing.JFrame.<init>(JFrame.java:175)
        at
gui.ParentChildFrame.<init>(ParentChildFrame.java:41)
        at gui.MainFrame.<init>(MainFrame.java:43)
        at gui.MainFrame.main(MainFrame.java:487)


I may execute without problems the same classes
from the command line.

I use netbeans on a powerpc machine, using IBM JVM
1.4.1 and Linux Debian Sarge.
Comment 1 Petr Nejedly 2005-02-03 23:00:26 UTC
Please try running with temporaly disabled authentication (using
"xhost +" to disable and "xhost -" to reenable authentication.
There may be problem with passing XAUTHORITY variable through exec(),
but I'm not aware of any such problem known.

And, of course, try running NB4.0
Comment 2 eppesuigoccas 2005-02-04 13:03:17 UTC
I have my $DISPLAY running with authentication enabled. I did try to
run the application after executing 'xhost -' but I got the same
error. (I really cannot figure why)
Comment 3 Petr Nejedly 2005-02-07 14:39:38 UTC
Bad news. Unsupported platform and we can hardly simulate your setup
here. Closing as WONTFIX.
If you manage to find out what's wrong, please reopen with details, or
better yet, with a patch.
Comment 4 Marian Mirilovic 2005-12-22 14:56:36 UTC
verified/closed