Home » Infrastructure » Linux » netca java.lang.nullpointerexception (Redhat linux 64-bit)
icon4.gif  netca java.lang.nullpointerexception [message #539285] Fri, 13 January 2012 00:48 Go to next message
subani123
Messages: 11
Registered: January 2012
Location: pune
Junior Member
Embarassed

Hi Everyone,

I am trying to open netca in redhat linux from command line

$netca..

java.lang exeception error occured..

I googled it ,found it like xclock must work before netca to work,

i set DISPLAY Env variable as:export DISPLAY=linux:0.0

$xclock....gives me the error
Can't Open Display for linux:0.0

How to get rid of this error..?
Please help
Re: netca java.lang.nullpointerexception [message #539290 is a reply to message #539285] Fri, 13 January 2012 01:25 Go to previous messageGo to next message
Michel Cadot
Messages: 58954
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Are you sure the DISPLAY value is correct?
Use the "xhost" command to allow the X display on your PC from your database server.

Regards
Michel
Re: netca java.lang.nullpointerexception [message #539291 is a reply to message #539290] Fri, 13 January 2012 01:31 Go to previous messageGo to next message
subani123
Messages: 11
Registered: January 2012
Location: pune
Junior Member
My Hostname is:linux
From root user i did:$xhost +linux
linux have been added to access list
$export DISPLAY=linux:0.0
$echo $DISPLAY
linux:0.0
$xclock

Cant Open Display for linux:0.0 error
Re: netca java.lang.nullpointerexception [message #539292 is a reply to message #539291] Fri, 13 January 2012 01:35 Go to previous messageGo to next message
subani123
Messages: 11
Registered: January 2012
Location: pune
Junior Member
sorry for my mistake,
after xhost ,i login as oracle user and repeat the stepa mentined above
Re: netca java.lang.nullpointerexception [message #539295 is a reply to message #539292] Fri, 13 January 2012 01:59 Go to previous messageGo to next message
Michel Cadot
Messages: 58954
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
So the issue is solved?
If not, answer:
Quote:
Are you sure the DISPLAY value is correct?

Is your PC name "linux"?
Does your /etc/hosts contains this alias for your PC?

Regards
Michel
Re: netca java.lang.nullpointerexception [message #539303 is a reply to message #539295] Fri, 13 January 2012 03:56 Go to previous messageGo to next message
subani123
Messages: 11
Registered: January 2012
Location: pune
Junior Member
Hi Michel,
Issue is not solved ,my hostname id linux and I made an entry already in /etc/hosts file as
192.168.1.7 linux linux

It looks everything is fine but unable to open the GUI window t oconfigure netca.

please help..?
Re: netca java.lang.nullpointerexception [message #539307 is a reply to message #539303] Fri, 13 January 2012 04:07 Go to previous message
Michel Cadot
Messages: 58954
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
You should post this in a Linux forum, you will have a better chance to get an answer.
Once xclock will work, if you still have a problem then you can come back here.

Regards
Michel
Previous Topic: Error: Missing library libclntsh.so.10.1 in Oracle client Directory /u01/app/oracle/product/11.2.0/x
Next Topic: Oracle Developer 10g Installation on Linux
Goto Forum:
  


Current Time: Mon Sep 01 23:25:54 CDT 2014

Total time taken to generate the page: 0.12097 seconds