cancel
Showing results for 
Search instead for 
Did you mean: 

Execution Error in Visual Administrator

Former Member
0 Kudos

hi,

I Installed SAP NW2004s ( ABAP + JAVA) Stack 9 for Linux. I can see see Netweaver Administrator (NWA) using http://<hostname>:54200/nwa and have already configured BW in Netweaver. But I need to configured many things like JCo RFC Provider and others. But I am getting errors while I am trying to execute Visual Administrator using the following line. I there is Java setup error

n4shost:n4sadm 21> /netweaver/sap/N4S/DVEBMGS42/j2ee/admin/go

java version "1.4.2_09"

Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_09-b05)

Java HotSpot(TM) Client VM (build 1.4.2_09-b05, mixed mode)

6/7/08 9:40 PM com.sap.engine.tools.launcher.Launcher Error : unable to invoke m ain class com.sap.engine.services.adminadapter.gui.AdminFrameView

Exception in thread "main" com.sap.engine.tools.launcher.LauncherException

at com.sap.engine.tools.launcher.Launcher.launch(Launcher.java:340)

at com.sap.engine.tools.launcher.Launcher.main(Launcher.java:114)

-


caused by -


java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at com.sap.engine.tools.launcher.Launcher.launch(Launcher.java:336)

at com.sap.engine.tools.launcher.Launcher.main(Launcher.java:114)

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:1 34)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:141)

at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvi ronment.java:62)

at java.awt.Window.init(Window.java:231)

at java.awt.Window.<init>(Window.java:275)

at java.awt.Frame.<init>(Frame.java:401)

at java.awt.Frame.<init>(Frame.java:366)

at javax.swing.SwingUtilities$1.<init>(SwingUtilities.java:1641)

at javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:16 37)

at javax.swing.JWindow.<init>(JWindow.java:160)

at javax.swing.JWindow.<init>(JWindow.java:112)

at com.sap.engine.services.adminadapter.gui.AboutWindow.<init>(AboutWind ow.java:12)

at com.sap.engine.services.adminadapter.gui.AdminFrameView.main(AdminFra meView.java:234)

... 6 more

-


caused by -


java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at com.sap.engine.tools.launcher.Launcher.launch(Launcher.java:336)

at com.sap.engine.tools.launcher.Launcher.main(Launcher.java:114)

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:1 34)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:141)

at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvi ronment.java:62)

at java.awt.Window.init(Window.java:231)

at java.awt.Window.<init>(Window.java:275)

at java.awt.Frame.<init>(Frame.java:401)

at java.awt.Frame.<init>(Frame.java:366)

at javax.swing.SwingUtilities$1.<init>(SwingUtilities.java:1641)

at javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:16 37)

at javax.swing.JWindow.<init>(JWindow.java:160)

at javax.swing.JWindow.<init>(JWindow.java:112)

at com.sap.engine.services.adminadapter.gui.AboutWindow.<init>(AboutWind ow.java:12)

at com.sap.engine.services.adminadapter.gui.AdminFrameView.main(AdminFra meView.java:234)

... 6 more

n4shost:n4sadm 22>

Please help me to resolve this issue.

thanks

Obaid.

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

hi!!!

your problem is the DISPLAY

Caused by: java.lang.InternalError: Can't connect to X11 window server using ':0 .0' as the value of the DISPLAY variable

SCN - 1 same machine diferents users "user1" and "sapuser"

access to X11 with "user1"

  1. xhost +

  2. su sapuser

passwd:xxxx

#/usr/sap/XXX/j2ee/admin/go

SCN - 1 diferents machines access to X11 with "user1" in "myhost"

(myhost)# xhost +

(myhost)# telnet sapserver

user: sapuser

passwd:xxxx

(sapserver)# export DISPLAY=myhost:0.0

(sapserver)# /usr/sap/XXX/j2ee/admin/go

note:

myhost = my ip or my name machine

Former Member
0 Kudos

Hi,

I got the same error. Could you please explain your solution a bit deeper.

Thanks,

Josef

Former Member
0 Kudos

I solved the problem by setting the environment variable to 0.

That's the way I did it:

1. switch to user n4sadm (su - n4sadm)

2. set environment variable to 0 (setenv DISPLAY )

3. start visual admin (usr/sap/N4S/DVEBMGS42/j2ee/admin/go)

I hope this will help you too.

Cheers,

Josef