Wednesday, June 12, 2013

Exception in thread "main" java.lang.InternalError: Can't connect to X11 window

Running RCU to install Oracle BI 11g . Getting the following exception

[svraman@adc2201664 bin]$ sudo ./rcu
Password:
Xlib: connection to ":1.0" refused by server
Xlib: No protocol specified

Exception in thread "main" java.lang.InternalError: Can't connect to X11 window
server using ':1.0' as the value of the DISPLAY variable.
        at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
        at sun.awt.X11GraphicsEnvironment.access$100(X11GraphicsEnvironment.java
:52)
        at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:155)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:1

Solution:

[svraman@adc2201664 bin]$ echo $DISPLAY
[svraman@adc2201664 bin]$ 1.0

[svraman@adc2201664 bin]$ setenv DISPLAY adc2201664:1

I have used the vncserver to connect to the remote m/c.

[svraman@adc2201664 bin]$ xhost +
access control disabled, clients can connect from any host

[svraman@adc2201664 bin]$ sudo ./rcu

No comments: