Problem in intiating x11 console


 
Thread Tools Search this Thread
Operating Systems Solaris Problem in intiating x11 console
# 1  
Old 04-24-2014
Problem in intiating x11 console

Hello,
I have a Solaris-10 non global zone. I am using MobaXterm. I login on box with root and then "su - caddrd" and then "/usr/local/bin/sudo -u cadwebppc /cad/envs/qa-cm/cadwccDomain/ucm/cs/bin/UserAdmin". This is supposed to open a GUI console, but it is failing and I am not able to figure out. Can somebody help on this ?
Code:
-bash-3.2$ /usr/local/bin/sudo -u cadwebppc /cad/envs/qa-cm/cadwccDomain/ucm/cs/bin/UserAdmin
>(internal)/6   04.24 10:47:24.687      main    !apFailedToInitialize exception backtrace:
 (internal)/6   04.24 10:47:24.687      main            at intradoc.common.DefaultTraceImplementor.appendStackTrace(DefaultTraceImplementor.java:327)
 (internal)/6   04.24 10:47:24.687      main            at intradoc.common.DefaultTraceImplementor.dumpException(DefaultTraceImplementor.java:391)
 (internal)/6   04.24 10:47:24.687      main            at intradoc.common.DefaultReportHandler.message(DefaultReportHandler.java:436)
 (internal)/6   04.24 10:47:24.687      main            at intradoc.common.DefaultReportDelegator.message(DefaultReportDelegator.java:140)
 (internal)/6   04.24 10:47:24.687      main            at intradoc.common.Report.messageInternal(Report.java:172)
 (internal)/6   04.24 10:47:24.687      main            at intradoc.common.Report.message(Report.java:145)
 (internal)/6   04.24 10:47:24.687      main            at intradoc.common.Report.trace(Report.java:240)
 (internal)/6   04.24 10:47:24.687      main            at IntradocApp.createFrame(IntradocApp.java:336)
 (internal)/6   04.24 10:47:24.687      main            at IntradocApp.main(IntradocApp.java:114)
 (internal)/6   04.24 10:47:24.687      main            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 (internal)/6   04.24 10:47:24.687      main            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 (internal)/6   04.24 10:47:24.687      main            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 (internal)/6   04.24 10:47:24.687      main            at java.lang.reflect.Method.invoke(Method.java:597)
 (internal)/6   04.24 10:47:24.687      main            at intradoc.loader.IdcClassLoader.invokeMain(IdcClassLoader.java:352)
 (internal)/6   04.24 10:47:24.687      main            at intradoc.loader.IdcClassLoader.startMain(IdcClassLoader.java:170)
 (internal)/6   04.24 10:47:24.687      main            at intradoc.loader.IdcClassLoader.main(IdcClassLoader.java:140)
 (internal)/6   04.24 10:47:24.687      main    Caused by: intradoc.data.DataException: !apFailedToInitialize
 (internal)/6   04.24 10:47:24.687      main            at intradoc.apps.shared.AppLauncher.init(AppLauncher.java:177)
 (internal)/6   04.24 10:47:24.687      main            at IntradocApp.createFrame(IntradocApp.java:329)
 (internal)/6   04.24 10:47:24.687      main            ... 8 more
 (internal)/6   04.24 10:47:24.687      main    Caused by: java.awt.HeadlessException:
 (internal)/6   04.24 10:47:24.687      main    No X11 DISPLAY variable was set, but this program performed an operation which requires it.
 (internal)/6   04.24 10:47:24.687      main            at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
 (internal)/6   04.24 10:47:24.687      main            at java.awt.Window.<init>(Window.java:431)
 (internal)/6   04.24 10:47:24.687      main            at java.awt.Frame.<init>(Frame.java:403)
 (internal)/6   04.24 10:47:24.687      main            at java.awt.Frame.<init>(Frame.java:368)
 (internal)/6   04.24 10:47:24.687      main            at javax.swing.JFrame.<init>(JFrame.java:158)
 (internal)/6   04.24 10:47:24.687      main            at intradoc.apps.shared.SplashFrame.<init>(SplashFrame.java:48)
 (internal)/6   04.24 10:47:24.687      main            at intradoc.apps.shared.AppLauncher.init(AppLauncher.java:148)
 (internal)/6   04.24 10:47:24.687      main            ... 9 more
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at intradoc.loader.IdcClassLoader.invokeMain(IdcClassLoader.java:352)
        at intradoc.loader.IdcClassLoader.startMain(IdcClassLoader.java:170)
        at intradoc.loader.IdcClassLoader.main(IdcClassLoader.java:140)
Caused by: java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
        at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
        at java.awt.Window.<init>(Window.java:431)
        at java.awt.Frame.<init>(Frame.java:403)
        at java.awt.Frame.<init>(Frame.java:368)
        at javax.swing.JFrame.<init>(JFrame.java:158)
        at intradoc.apps.shared.SplashFrame.<init>(SplashFrame.java:48)
        at intradoc.apps.shared.AppLauncher.reportOperationError(AppLauncher.java:386)
        at intradoc.apps.shared.AppLauncher.reportError(AppLauncher.java:426)
        at intradoc.apps.shared.AppLauncher.reportFatal(AppLauncher.java:442)
        at IntradocApp.createFrame(IntradocApp.java:338)
        at IntradocApp.main(IntradocApp.java:114)
        ... 7 more
-bash-3.2$

-----------------------------------------------------
Update - I am refining this question more. I am able to run xclock via root, via caddrd and via cadwebppc also. But when I am using it with sudo, it is giving error. So it seems something like, having issue with passing variables.

Last edited by solaris_1977; 04-24-2014 at 04:20 PM..
# 2  
Old 04-24-2014
The answer seems to be in your message...
Code:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.

You need to defined the DISPLAY variable...
Code:
export DISPLAY=ip-address:0.0

Don't forget to do an
Code:
 xhost +ip-address of client

# 3  
Old 04-24-2014
blackrageous, I am able to get xclock when I login directly to root or caddrd or cadwebppc. I made a entry in .profile of home directory of cadwebppc. Also, I made entry in auth list. But no luck. Here were the steps I was following.
Code:
ssh root@server1
/root# /usr/openwin/bin/xauth list
tsapiq05-zcadq01/unix:10  MIT-MAGIC-COOKIE-1  40d89c398dd5a69ecfba8f0bd853ec02
tsapiq05-zcadq01/unix:11  MIT-MAGIC-COOKIE-1  03cc68b63e22985c68b484ffa8408baf
su - caddrd
-bash-3.2$ /usr/openwin/bin/xauth add prod-appstess/unix:10  MIT-MAGIC-COOKIE-1  40d89c398dd5a69ecfba8f0bd853ec02
-bash-3.2$ /usr/openwin/bin/xauth add prod-appstess/unix:11  MIT-MAGIC-COOKIE-1  03cc68b63e22985c68b484ffa8408baf
-bash-3.2$ /usr/openwin/bin/xauth list
prod-appstess/unix:10  MIT-MAGIC-COOKIE-1  40d89c398dd5a69ecfba8f0bd853ec02
prod-appstess/unix:11  MIT-MAGIC-COOKIE-1  03cc68b63e22985c68b484ffa8408baf
(Copy same keys for cadwebppc account also)
/usr/local/bin/sudo -u cadwebppc /cad/envs/qa-cm/cadwccDomain/ucm/cs/bin/UserAdmin

Here xauth merge should work. But each time, I add keys via xauth, it will work. I will log out and next time, it will again stops. Seems like, it generates new cookies every time. I am not able to figure out, how should I automate it

Last edited by solaris_1977; 04-25-2014 at 02:40 PM.. Reason: More specific
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Problem in loading program correctly using SSH and X11 forwading

I'm trying to load a program remotely using SSH with X11 forwarding. I have no issue with loading xwindows and programs like firefox works fine. But one software that I use for my work has some issues when I load it up. For example, I can't see the pull-down menus etc, which show up when I load it... (1 Reply)
Discussion started by: lost.identity
1 Replies

2. AIX

X11 Font problem

Currently ,we use Exceed,X-Win32,winaxe 7.7,Reflection X software for doing evaluation. 1.Chinese word problem When we use "more filename" to check the file in xterm command console mode from our client Window XP to IBM AIX server.it can show the chinese word,but when we change to grahpic mode... (1 Reply)
Discussion started by: whbun123
1 Replies

3. UNIX for Dummies Questions & Answers

Problem with X11 Forwarding

Hello. I installed a Debian box, and its installed remotely. I need to boot up iceweasel from there to do a quick test. I log on using: ssh root@<IP> -X I have modified the /etc/ssh/sshd_config file, and added the X11Forwarding yes flag And yet I still get: Error: cannot open... (10 Replies)
Discussion started by: dynelight
10 Replies

4. Solaris

X11 errors on Solaris 10 - SL Console not showing up

Hi all, I have been administrating large backup environments for quite some time now, but I have never seen the types of errors I'm getting for a client I have in Asia, so I humbly appeal to your expertise in order to fix things. Set up: StreamLine 8500 library connected to a Solaris... (7 Replies)
Discussion started by: dilibau
7 Replies

5. UNIX Desktop Questions & Answers

X11 Display Problem with Mac OSX after creating new account

For preliminaries, I am on a Mac Pro running 10.5. I am trying to run a program that opens an X11 graphic and plots a mesh. The little program is called showme. It has worked just fine in the past. Up until I had to make a new user account on this machine for myself. Now every time I try to... (8 Replies)
Discussion started by: Bocephus85
8 Replies

6. UNIX for Dummies Questions & Answers

X11 connection problem when using Xwin-32

Hi I'm using Xwin-32 to connect to my labs UNIX machines. Previously I was able to connect to the systems easily but now I get this error message (posted below) and the unix session is not able to start. can somebody help me. Looking up host "blade2.tec.ufl.edu" Connecting to 128.227.241.112... (0 Replies)
Discussion started by: mevich
0 Replies

7. UNIX for Dummies Questions & Answers

X11 problem

Hey guys, I'm on a Solaris 9 boxes and I setup Putty to do X11 forwarding I can get my Xmanager to connect and load Xwindows screens fine. But, sometimes if I lose my putty connection or the app im running crashes X freaks out and deletes my display, setting it to nothing. When I add my display... (2 Replies)
Discussion started by: kingdbag
2 Replies

8. Red Hat

X11 forwarding problem between 2 RHEL4 machines with SSH

X11 forwarding problem between 2 RHEL4 machines with SSH Already configured the following on both machines under /etc/ssh Under sshd_config: UsePAM no AllowTcpForwarding yes Under ssh_config: ForwardAgent yes ForwardX11 yes ForwardX11Trusted yes ----------------------------- Using... (1 Reply)
Discussion started by: panggou
1 Replies

9. Debian

X11 Forwarding Problem

I have 2 Debian boxes. In my ssh.com client and my putty client, I have X11 fowarding turned on for both boxes. When I connect one, I can xterm with no problem back to my pc. On the other, I keep getting: xterm Xt error: Can't open display: xterm: DISPLAY is not set On both... (3 Replies)
Discussion started by: natter
3 Replies

10. UNIX for Advanced & Expert Users

Problem with X11 Root Window

At school, on an HP-UX or B.11.11 U 9000/785 system, my X11 root window is always set to 8-bit color, but all the child windows are 24-bit. The problem with this, is any background/wallpaper looks extremely ugly with the 8-bit color. Is there any way to make X starts with 24-bit color root window?... (0 Replies)
Discussion started by: ljfong
0 Replies
Login or Register to Ask a Question