cancel
Showing results for 
Search instead for 
Did you mean: 

could no start the gui client console for client backup and restore

Rami_Nasser1
Level 6
Partner Accredited Certified

Hi all

in my test environment when i'm starting java console in linux client it starting normally:

 

student@lnxclient bin]$ ./jbpSA &
[1] 2948
[student@lnxclient bin]$
 Starting user console version 7.5.
 The log file for this execution instance is
 /usr/openv/netbackup/logs/user_ops/nbjlogs/jbp.student.jbpSA.2948.log

but i couldnot able to start the console in the production linux client:

Command line options were:

        ./jbpSA

 

Starting user console version 7.5.

 

LANG=en_US.UTF-8

LC_CTYPE="en_US.UTF-8"

LC_NUMERIC="en_US.UTF-8"

LC_TIME="en_US.UTF-8"

LC_COLLATE="en_US.UTF-8"

LC_MONETARY="en_US.UTF-8"

LC_MESSAGES="en_US.UTF-8"

LC_PAPER="en_US.UTF-8"

LC_NAME="en_US.UTF-8"

LC_ADDRESS="en_US.UTF-8"

LC_TELEPHONE="en_US.UTF-8"

LC_MEASUREMENT="en_US.UTF-8"

LC_IDENTIFICATION="en_US.UTF-8"

LC_ALL=

 

java version "1.6.0_29"

Java(TM) SE Runtime Environment (build 1.6.0_29-b11)

Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02, mixed mode)

 

java.awt.HeadlessException:

No X11 DISPLAY variable was set, but this program performed an operation which requires it.

        at java.awt.GraphicsEnvironment.checkHeadless(Unknown Source)

        at java.awt.Window.<init>(Unknown Source)

        at java.awt.Frame.<init>(Unknown Source)

        at javax.swing.JFrame.<init>(Unknown Source)

        at vrts.common.utilities.CommonFrame.<init>(CommonFrame.java:75)

        at vrts.common.utilities.CommonFrame.<init>(CommonFrame.java:70)

        at vrts.nbe.BaseNBEFrame.<init>(BaseNBEFrame.java:83)

        at vrts.nbe.LoginFrame.<init>(LoginFrame.java:228)

        at vrts.nbe.JavaPresentationLayer.initiateLogin(JavaPresentationLayer.java:150)

        at vrts.nbe.UserConsole.main(UserConsole.java:69)

 

 

kindly help to solve the issue !!!

Regards,

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

Putty is a textbased terminal only, and is therefore unable to display any GUI-type application (not only NBU GUI).

If you Google 'windows x-server', you will find many 3rd-party X-server applications, e.g. Reflection X, Hummingbird Exceed, Xmanager, Xming, etc... etc...

Once the X-application is started, run this command in Putty session:

# export DISPLAY=<desktop/pc IP address>:0.0
# jbpSA &
 

The GUI should now open on your desktop.

View solution in original post

10 REPLIES 10

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

No X11 DISPLAY variable was set, but this program performed an operation which requires it.

How are you connecting to the client? 

Are you logged directly onto the client's console or with some text-bases terminal like 'putty'?

If text-based terminal, you need some some sort of X-display application on your desktop as well as export display to your desktop IP address.

Rami_Nasser1
Level 6
Partner Accredited Certified

appreciate your response.i'm using putty.

""If text-based terminal, you need some some sort of X-display application on your desktop as well as export display to your desktop IP address.""

please more details about this!

regards,

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

Putty is a textbased terminal only, and is therefore unable to display any GUI-type application (not only NBU GUI).

If you Google 'windows x-server', you will find many 3rd-party X-server applications, e.g. Reflection X, Hummingbird Exceed, Xmanager, Xming, etc... etc...

Once the X-application is started, run this command in Putty session:

# export DISPLAY=<desktop/pc IP address>:0.0
# jbpSA &
 

The GUI should now open on your desktop.

Rami_Nasser1
Level 6
Partner Accredited Certified

I installed Cygwin then I run the command below but the console didnt start :

[root@BEC13-ENC1-1 ~]# export DISPLAY=:0.0

[root@BEC13-ENC1-1 ~]# jbpSA &

[1] 5623

[root@BEC13-ENC1-1 ~]# -bash: jbpSA: command not found

[root@BEC13-ENC1-1 bin]#

        Starting user console version 7.5.

        The log file for this execution instance is

        /usr/openv/netbackup/logs/user_ops/nbjlogs/jbp.root.jbpSA.5633.log

[root@BEC13-ENC1-1 bin]#

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

[root@BEC13-ENC1-1 ~]# export DISPLAY=:0.0

You forgot to add the IP address of your desktop....

 export DISPLAY=desktop-IP-address:0.0

Rami_Nasser1
Level 6
Partner Accredited Certified

No thing. the same result the console not running:

login as: root
root@172.20.165.9's password:
Last login: Mon Nov  5 18:40:38 2012 from 10.33.24.11
[root@BEC13-ENC1-1 ~]# export DISPLAY=:0.0
[root@BEC13-ENC1-1 ~]# ./jbpSA &
[1] 7184
[root@BEC13-ENC1-1 ~]# -bash: ./jbpSA: No such file or directory

[1]+  Exit 127                ./jbpSA
[root@BEC13-ENC1-1 ~]# cd /usr
[root@BEC13-ENC1-1 usr]# cd openv
[root@BEC13-ENC1-1 openv]# cd netbackup
[root@BEC13-ENC1-1 netbackup]# cd bin
[root@BEC13-ENC1-1 bin]# ./jbpSA &
[1] 7186
[root@BEC13-ENC1-1 bin]#
        Starting user console version 7.5.
        The log file for this execution instance is
        /usr/openv/netbackup/logs/user_ops/nbjlogs/jbp.root.jbpSA.7186.log


[root@BEC13-ENC1-1 bin]#
[root@BEC13-ENC1-1 bin]# export DISPLAY=desktop-IP-address:192.168.75.1
[root@BEC13-ENC1-1 bin]# ./jbpSA &
[2] 7263
[root@BEC13-ENC1-1 bin]#
        Starting user console version 7.5.
        The log file for this execution instance is
        /usr/openv/netbackup/logs/user_ops/nbjlogs/jbp.root.jbpSA.7263.log


DISPLAY environment variable is set to: desktop-IP-address:192.168.75.1
Console was started on:
        Linux BEC13-ENC1-1 2.6.32-220.el6.x86_64 #1 SMP Wed Nov 9 08:03:13 EST 2                                                                                                                     011 x86_64 x86_64 x86_64 GNU/Linux

Command line options were:
        ./jbpSA

Starting user console version 7.5.

LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02, mixed mode)

java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11.XToolkit
        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 vrts.common.utilities.Util.getImage(Util.java:546)
        at vrts.nbu.client.JBP.LocalizedConstants.<clinit>(LocalizedConstants.ja                                                                                                                     va:2073)
        at vrts.nbe.UserConsole.getLoginTitle(UserConsole.java:168)
        at vrts.nbe.JavaPresentationLayer.initiateLogin(JavaPresentationLayer.ja                                                                                                                     va:150)
        at vrts.nbe.UserConsole.main(UserConsole.java:69)

[2]+  Done                    ./jbpSA
[root@BEC13-ENC1-1 bin]#
[root@BEC13-ENC1-1 bin]# export DISPLAY=192.168.75.1:0.0
[root@BEC13-ENC1-1 bin]# ./jbpSA &
[2] 7336
[root@BEC13-ENC1-1 bin]#
        Starting user console version 7.5.
        The log file for this execution instance is
        /usr/openv/netbackup/logs/user_ops/nbjlogs/jbp.root.jbpSA.7336.log


DISPLAY environment variable is set to: 192.168.75.1:0.0
Console was started on:
        Linux BEC13-ENC1-1 2.6.32-220.el6.x86_64 #1 SMP Wed Nov 9 08:03:13 EST 2                                                                                                                     011 x86_64 x86_64 x86_64 GNU/Linux

Command line options were:
        ./jbpSA

Starting user console version 7.5.

LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02, mixed mode)

java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11.XToolkit
        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 vrts.common.utilities.Util.getImage(Util.java:546)
        at vrts.nbu.client.JBP.LocalizedConstants.<clinit>(LocalizedConstants.ja                                                                                                                     va:2073)
        at vrts.nbe.UserConsole.getLoginTitle(UserConsole.java:168)
        at vrts.nbe.JavaPresentationLayer.initiateLogin(JavaPresentationLayer.ja                                                                                                                     va:150)
        at vrts.nbe.UserConsole.main(UserConsole.java:69)

[2]+  Done                    ./jbpSA
[root@BEC13-ENC1-1 bin]#
[root@BEC13-ENC1-1 bin]#

Yasuhisa_Ishika
Level 6
Partner Accredited Certified

Have you already installed and configuered X11 server on 192.168.75.1? Are there any firewall between server and 192.168.75.1?

"Could not initialize class sun.awt.X11.XToolkit" error will happen when no X11 server is running, or GUI can not communicate with X11 server.

If you can make another choice, please consider to install Java Windows Administration Console on your PC and use it instead.

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

Export of display variable must be IP address of your desktop, not the words 'desktop-IP-address'

So, if the IP address of your PC/laptop/desktop is 192.168.75.1, the command will be:

export DISPLAY=192.168.75.1:0.0

Forget about NBU java GUI. Test with other GUI-applications - something like OS built-in x-utilities such as xclock or xeyes.

I have just tested as follows:

Started Xmanager on my laptop.

Checked my IP address: 


C:\>ipconfig
 
Windows IP Configuration
 
Ethernet adapter Local Area Connection:
 
   Connection-specific DNS Suffix  . : company.co.za
   IPv4 Address. . . . . . . . . . . : 10.5.1.105
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   
Issued the following on Putty terminal:
# export DISPLAY=10.5.1.105:0.0
 

Started xclock:

/usr/bin/xclock &

Result in top left of my laptop screen:
 
 
PS: 'jpbSA &' worked as well.....
 
 

Rami_Nasser1
Level 6
Partner Accredited Certified

 

not starting!!!!!
[root@BEC13-ENC1-1 bin]# export DISPLAY=192.168.75.1:0.0
[root@BEC13-ENC1-1 bin]# ./jbpSA &
[1] 8667
[root@BEC13-ENC1-1 bin]#
        Starting user console version 7.5.
        The log file for this execution instance is
        /usr/openv/netbackup/logs/user_ops/nbjlogs/jbp.root.jbpSA.8667.log

 

I will try from other machine maybe some thing wrong!!

i'm usingXming Xserver and in the the program icon giving "xming server:0.0

 

 

 

 

 

 

 

Yasuhisa_Ishika
Level 6
Partner Accredited Certified
As Marianne wrote, try with other basic X applications like xclock, xterm or so. if you can not run them, jnbSA doesn't either.