Visit Our UNIX and Linux User Community


X11 errors on Solaris 10 - SL Console not showing up


 
Thread Tools Search this Thread
Operating Systems Solaris X11 errors on Solaris 10 - SL Console not showing up
# 1  
Old 05-15-2012
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 10-powered ACSLS server, the machine from which I'm trying to connect is Windows 7 (there's a catch though: I am not connecting to the ACSLS host directly, but through 2 separate gateways accessible on my company's VPN, one that could be considered a "master" gateway - with connections to all other GWs of different clients - and then this specific client's GW)

Code:
root@j-server # uname -a
SunOS j-server 5.10 Generic_127111-06 sun4u sparc SUNW,Sun-Fire-V245

Normally, I would just run ./SLConsole on that host like I usually do for other clients, in order to bring the administration console for the SL8500, but when I do, this is what I get in the first place:

Code:
root@j-server # ./SLConsole/SLConsole &
[1] 19416
root@j-server # Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)
Stack Trace:
java.awt.HeadlessException: 
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
        at java.applet.Applet.<init>(Unknown Source)
        at javax.swing.JApplet.<init>(Unknown Source)
        at com.stortek.ats.elib.opel.Opel.<init>(Opel.java:120)
        at com.stortek.ats.elib.opel.Opel.main(Opel.java:360)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.zerog.lax.LAX.launch(DashoA10*..)
        at com.zerog.lax.LAX.main(DashoA10*..)
This Application has Unexpectedly Quit: Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)

I tried exporting DISPLAY to point to my Windows-desktop VPN IP, to no avail:

Code:
root@j-server # DIPLAY=141.147.153.170:0.0
root@j-server # export DISPLAY
root@j-server # env
MANPATH=/opt/VRTSob/man:/opt/VRTS/man:/opt/VRTSvxvm/man::/usr/man:/usr/share/man:/opt/SUNWexplo/man:/opt/SUNWsneep/man:/opt/CTEact/man
TERM=xterm
SHELL=/sbin/sh
SSH_CLIENT=10.22.224.125 53809 22
SSH_TTY=/dev/pts/3
USER=root
LD_LIBRARY_PATH=/usr/openwin/lib
OPENWINHOME=/usr/openwin
PATH=/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/openwin/bin:/usr/dt/bin:/usr/platform/SUNW,Sun-Fire-V245/sbin:/opt/sun/bin:/etc/vx/bin:/opt/VRTS/bin:/etc/vx/bin:/opt/VRTSob/bin:/opt/VRTSvlic/bin:/opt/SUNWexplo/bin:/opt/SUNWsneep/bin:/opt/CTEact/bin:/opt/VRTSvcs/bin:/export/home/ACSSS/data/external
MAIL=/var/mail//root
PWD=/
EDITOR=vi
TZ=Asia/Jakarta
PS1=root@j-server #
PS2=root@j-server >
SHLVL=1
HOME=/
LOGNAME=root
SSH_CONNECTION=10.22.224.125 53809 10.22.224.212 22
DISPLAY=:0.0
_=/usr/bin/env
root@j-server # !./
./SLConsole/SLConsole &
[1] 7880
root@j-server # Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)
Stack Trace:
java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Unknown Source)
        at sun.awt.X11.XToolkit.<clinit>(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at java.awt.Toolkit$2.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Toolkit.getDefaultToolkit(Unknown Source)
        at sun.swing.SwingUtilities2$AATextInfo.getAATextInfo(Unknown Source)
        at javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(Unknown Source)
        at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(Unknown Source)
        at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(Unknown Source)
        at javax.swing.UIManager.setLookAndFeel(Unknown Source)
        at com.stortek.ats.elib.opel.Opel.main(Opel.java:312)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.zerog.lax.LAX.launch(DashoA10*..)
        at com.zerog.lax.LAX.main(DashoA10*..)
This Application has Unexpectedly Quit: Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)
[1]+  Exit 188                ./SLConsole/SLConsole

I found a suggestion about unsetting the DISPLAY variable but I'm no Java coder and I don't want to mess things up there.

Any ideas? Let me know if you need more info. I did do my search and found this but it doesn't apply in my case, unfortunately...

Thanks
# 2  
Old 05-15-2012
If that's an actual screen capture, you set "DIPLAY" instead of "DISPLAY"
# 3  
Old 05-15-2012
Corrected, but still nothing showing up...

---------- Post updated at 06:03 AM ---------- Previous update was at 06:02 AM ----------

The output from the last attempt:

Code:
root@jktbtracsls2 # DISPLAY=141.147.153.170:0.0
root@jktbtracsls2 # export DISPLAY
root@jktbtracsls2 # ./SLConsole/SLConsole &
[1] 19266
root@jktbtracsls2 # Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)
Stack Trace:
java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Unknown Source)
        at sun.awt.X11.XToolkit.<clinit>(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at java.awt.Toolkit$2.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Toolkit.getDefaultToolkit(Unknown Source)
        at sun.swing.SwingUtilities2$AATextInfo.getAATextInfo(Unknown Source)
        at javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(Unknown Source)
        at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(Unknown Source)
        at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(Unknown Source)
        at javax.swing.UIManager.setLookAndFeel(Unknown Source)
        at com.stortek.ats.elib.opel.Opel.main(Opel.java:312)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.zerog.lax.LAX.launch(DashoA10*..)
        at com.zerog.lax.LAX.main(DashoA10*..)
This Application has Unexpectedly Quit: Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)

# 4  
Old 05-15-2012
try to use ssh -X to connect through all the hosts, hopefully that would make ssh to forward the DISPLAY session across all the connections (slowly). Probably there is a Firewall that is blocking the default Xsession port which is 6000.... SSH can forward the X session through the port 22 (encrypted) so you can bypass any restriction on the VPN
That is assuming you have a local X server running.


Cheers

Juan
# 5  
Old 05-15-2012
Quote:
Originally Posted by juan.brein
try to use ssh -X to connect through all the hosts, hopefully that would make ssh to forward the DISPLAY session across all the connections (slowly). Probably there is a Firewall that is blocking the default Xsession port which is 6000.... SSH can forward the X session through the port 22 (encrypted) so you can bypass any restriction on the VPN
That is assuming you have a local X server running.


Cheers

Juan
I did that already, I actually went to putty and clicked on "Enable X display forwarding", it didn't solve anything. Smilie
# 6  
Old 05-15-2012
have you tried to run other applications like dtcalc? That way you can tell if the problem is with the app itself or with the DISPLAY thing. The other thing is that some ssh configuration for security reasons they disable ssh forwarding.... You can check that on /etc/ssh/sshd_config. If that is the case you'll have to talk with the jumpbox administrator.

You can try to ssh to the first host, run dtcalc, if it work then go to the next and try again and so on, so you can tell which host is messing it up.

Juan
# 7  
Old 05-24-2012
Quote:
Originally Posted by juan.brein
have you tried to run other applications like dtcalc? That way you can tell if the problem is with the app itself or with the DISPLAY thing. The other thing is that some ssh configuration for security reasons they disable ssh forwarding.... You can check that on /etc/ssh/sshd_config. If that is the case you'll have to talk with the jumpbox administrator.

You can try to ssh to the first host, run dtcalc, if it work then go to the next and try again and so on, so you can tell which host is messing it up.

Juan
I haven't tried dtcalc, I don't even know what that is but I'll give it a try. I've tried X-ming and X-manager but to no avail.

I know what you're referring to when talking about the sshd_config stuff, so I'm posting what I think it's relevant from the pesky host:

Code:
# IPv4 only
#ListenAddress 0.0.0.0
# IPv4 & IPv6
ListenAddress ::
 
# X11 tunneling options
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
 
# Port forwarding
AllowTcpForwarding no

I have no AddressFamily to modify in sshd_config. Could it be that I hit this bug?

Previous Thread | Next Thread
Test Your Knowledge in Computers #167
Difficulty: Easy
The Transmission Control Protocol (TCP) is one of the least used protocols of the Internet protocol suite.
True or False?

10 More Discussions You Might Find Interesting

1. Solaris

Virtual Terminal (Console) showing non-global zone?

Hope that everyone is doing well today. Happy Friday. I am running an illumos (opensolaris) based system which is like SmartOS, OmniOS, and OpenIndiana I have been searching all over the Internet into various documents and forms that have to do with Solaris, Opensolaris, Illumos, and SmartOS... (3 Replies)
Discussion started by: LonnieTC
3 Replies

2. Solaris

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... (2 Replies)
Discussion started by: solaris_1977
2 Replies

3. Shell Programming and Scripting

shell_script showing errors in the below mentioned script while executing in linux

code: IMAGE=$imgvalue; if then echo DO=ABC; elif then echo DO=ETC; elif then echo DO=XYZ; else echo "$imgvalue is unsupported"; exit 1; fi in above script IMAGE=1 , IMAGE=2, IMAGE=3 whatever may be the value i have assigned it's showing only DO=ABC other conditions... (7 Replies)
Discussion started by: saku
7 Replies

4. Linux

xset errors when trying to remote x11 from solaris

Hi all, Trying to achieve: Remote X11 app (advance trader workstation... really old) from solaris to linux. This app uses a startup script that loads some fonts via xset. I get an error from xset saying "incorrect font server address or syntax" Of course its not correct since i'm... (0 Replies)
Discussion started by: maverick72
0 Replies

5. UNIX for Dummies Questions & Answers

Display Console errors in Red color

I browsed the forums but i couldn't find the best answer.so,i'm posting here again.. I have a parent bash script which calls another child script and the child script is used to deploy the tar file using weblogic deployer. The script is used to display the output on the console and sent to a log... (5 Replies)
Discussion started by: ramse8pc
5 Replies

6. Solaris

X11 and "Cannot Open Display" errors

Greetings Forumers! I'm posting a solution to an Issue I ran into this week: Getting applications to display on another through X11 and SSH. I have run into this issue many years ago and finally found my notes. Some of you may already know the answer to this issue but it took me a while to... (1 Reply)
Discussion started by: bluescreen
1 Replies

7. IP Networking

netstat showing lots of errors

Hi, I have a server which receive lots of events to it and when I do netstat -Ie1000g0, I'm seeing the errors as below. Name Mtu Net/Dest Address Ipkts Ierrs Opkts Oerrs Collis Queue e1000g0 1500 abc-1.com abc-1.com 3093708246 12757 92069412 0 0 0 If anyone could direct me to right... (3 Replies)
Discussion started by: mohzub
3 Replies

8. SuSE

X11 errors in users .xsession_errors

Hi, i have an user, he uses a suse linux 10.3 box with dual monitor. He has many logs in .xsession_errors like: X Error: BadWindow (invalid Window parameter) 3 Major opcode: 20 Minor opcode: 0 Resource id: 0x2e00013 Does anyone know what this exactly means? Thx in front for... (1 Reply)
Discussion started by: ortsvorsteher
1 Replies

9. HP-UX

Error alert keep showing at console

Hi, I would like to ask for your help. I tried to log in through console to my server HP-UX 10.20 but I keep receiving error message as below: Vxfs: mesg 001: vx_nospace -/dev/vg02/lvol6 file system full Vxfs: mesg 001: vx_nospace - /dev/vg02/lvol9 file system full How should I stop this... (4 Replies)
Discussion started by: yeazas
4 Replies

10. Shell Programming and Scripting

Showing errors when connecting to sqlplus in shell script

hi, I am trying to automate the compilation of procedures stored in .sql files in Unix. Is there any way in which we can sho err if there errors are raised in the compilation? I am using the following code to connect to the sqlplus sqlplus ${SQL_USER}/${SQL_PASSWORD} (5 Replies)
Discussion started by: silas.john
5 Replies

Featured Tech Videos