on 03-05-2012 9:31 AM
Dear Experts,
I'm not able to open configtool by using below path
/usr/sap/<SAPSID>/<Instance_Name>/j2ee/configtool/configtool.sh
here I'm getting below error.
-
Xlib: connection to ":1.0" refused by server
Xlib: No protocol specified
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:61)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)
Caused by: 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.<clinit>(X11GraphicsEnvironment.java:179)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:119)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:91)
at java.awt.Window.init(Window.java:268)
at java.awt.Window.<init>(Window.java:312)
at java.awt.Frame.<init>(Frame.java:431)
at javax.swing.JFrame.<init>(JFrame.java:229)
at com.sap.engine.configtool.visual.ConfigToolView.<init>(ConfigToolView.java:82)
at com.sap.engine.configtool.visual.ConfigTool.<init>(ConfigTool.java:111)
at com.sap.engine.configtool.visual.ConfigTool.main(ConfigTool.java:1176)
-
We are running EP 7.02,
Please letme know how to resolve this....
Thanks in advance.
Regards,
Mahee.
Hi Mahesh,
It is very clear with the logs that you have not set the DISPLAY variable for SIDADM user.
You will be to set the DISPLAY variable similar to the above post and also you can set it using export DISPLAY=localhost:0.0
I guess root user should be you reference for maintaining xauth parameters.
With root user, try executing xclock, if clock pop up then DISPLAY variable is set for root user.
As root, execute xauth list
it will start with hostname/unix:0 MIT-MAGIC-COOKIE-1 f509b3235c4e8a4745ea33d76740f3df
Now do a su - sidadm
then enter xauth add unix:0 MIT-MAGIC-COOKIE-1 f509b3235c4e8a4745ea33d76740f3df
then setenv DISPLAY 0.0
or export DISPLAY=0.0
This should work.
Thanks
Jaianandh V
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Still no luck, I am getting below error,
------------------
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:61)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)
Caused by: 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 sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:179)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:119)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:91)
at java.awt.Window.init(Window.java:268)
at java.awt.Window.<init>(Window.java:312)
at java.awt.Frame.<init>(Frame.java:431)
at javax.swing.JFrame.<init>(JFrame.java:229)
at com.sap.engine.configtool.visual.ConfigToolView.<init>(ConfigToolView.java:82)
at com.sap.engine.configtool.visual.ConfigTool.<init>(ConfigTool.java:111)
at com.sap.engine.configtool.visual.ConfigTool.main(ConfigTool.java:1176)
... 6 more
-----------------------------
Thanks and Regards,
Mahee.
Hi Maheesh,
Please mention the OS.
If it is a UNIX flavour system , please paste the Output of the below commands: -
1) uname -a
2) echo $SHELL
Regards,
Ashish .A. Poojary
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is the type and version of your OS?
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You are getting the error because of :
Caused by: java.lang.InternalError: Can't connect to X11 window server using ':1.0' as the value of the DISPLAY variable.
Please try to correctly set the DISPLAY environment parameter
setenv DISPLAY (local host IP Address) : 0.0 (from your screen)
format : setenv DISPLAY 128.100.2.16:0.0
Once you have set the DISPLAY parameter. try xclock. If it works, Config tool also should start up.
Regards,
Sandeep.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Sandeep,
Thanks for quick reply.
I have set parameters as per your reply, but still no luck.
After maintaing parameters throughing below error.
-
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:61)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)
Caused by: java.lang.InternalError: Can't connect to X11 window server using '<IP>:0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:179)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:119)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:91)
at java.awt.Window.init(Window.java:268)
at java.awt.Window.<init>(Window.java:312)
at java.awt.Frame.<init>(Frame.java:431)
at javax.swing.JFrame.<init>(JFrame.java:229)
at com.sap.engine.configtool.visual.ConfigToolView.<init>(ConfigToolView.java:82)
at com.sap.engine.configtool.visual.ConfigTool.<init>(ConfigTool.java:111)
at com.sap.engine.configtool.visual.ConfigTool.main(ConfigTool.java:1176)
... 6 more
-
Please reply any other settings missing.
Regards,
Mahee.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.