LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-24-2007, 07:50 AM   #1
shankarbrnair
LQ Newbie
 
Registered: Aug 2007
Posts: 6

Rep: Reputation: 0
Error in Java


Hi, I am facing the problem below. Could you plz help me out in this matter?


java -jar AHISInstaller.jar
- ERROR -
java.lang.NullPointerException
java.lang.NullPointerException
at java.util.Hashtable.put(Unknown Source)
at java.util.Properties.setProperty(Unknown Source)
at com.izforge.izpack.installer.AutomatedInstallData.setVariable(AutomatedInstallData.java:172)
at com.izforge.izpack.installer.AutomatedInstallData.setIP(AutomatedInstallData.java:214)
at com.izforge.izpack.installer.InstallerBase.loadInstallData(InstallerBase.java:217)
at com.izforge.izpack.installer.GUIInstaller.<init>(GUIInstaller.java:110)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at com.izforge.izpack.installer.Installer.main(Installer.java:62)
 
Old 09-26-2007, 12:06 PM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
We probably need some more information here if we are going to help you.

At the very least it would be helpful to know your Java and JVM version. Run "java -version" and post the output.

The error message just means that AHISInstaller.jar is trying to put a null (or "unknown") value into a property map.
Possibly this could mean that you need to pass some other options to AHSIInstaller.jar.

A quick search on Google doesn't reveal anything about this file; if it is a program you have bought or downloaded then you could contact the authors of the program for help.

The fact that it's in a method called "setIP" could also point to a networking issue. Can you connect to the Internet from that computer? If you run "/sbin/ifconfig eth0 | grep inet" (the | symbol is a pipe character) then you should get your network address, which is usually a number something like 192.168.1.1. If you get an error like "device not found" instead then I would start by looking at your network setup.

Another thing you could try is running a simple "hello, world" Java program (http://www.javacoffeebreak.com/java101/java101.html) and seeing if you get the same error; if so then it is likely to be a problem with your JVM (Java Virtual Machine); you could try re-installing Java.

Hope that helps,

—Robert J Lee
 
Old 09-28-2007, 01:14 AM   #3
shankarbrnair
LQ Newbie
 
Registered: Aug 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Java problem

Thanks a lot for your reply. I have pasted the version of java below.

[root@localhost ~]# java -version
java version "1.4.2_15"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_15-b02)
Java HotSpot(TM) Client VM (build 1.4.2_15-b02, mixed mode)


There are no problems with the network at all. I am checked the network connection by the following command.

[root@localhost Desktop]# ping www.google.com
PING www.l.google.com (72.14.215.99) 56(84) bytes of data.
64 bytes from hu-in-f99.google.com (72.14.215.99): icmp_seq=0 ttl=239 time=365 ms
64 bytes from hu-in-f99.google.com (72.14.215.99): icmp_seq=1 ttl=239 time=361 ms
64 bytes from hu-in-f99.google.com (72.14.215.99): icmp_seq=2 ttl=239 time=404 ms
64 bytes from hu-in-f99.google.com (72.14.215.99): icmp_seq=3 ttl=239 time=349 ms

All I have with me is the AHISInstaller jar file with me which I have downloaded. The source codes are not with us. Should I go back to them? Do you think it is a coding problem? Would be really helpful if you could advice on this.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Error...I think mijohnst Solaris / OpenSolaris 4 01-12-2007 01:23 PM
java error lbdgwgt Linux - Software 4 11-14-2006 02:26 AM
Java-GTK glib-java-0.2.5 Error hikkerguy Linux - Software 2 07-19-2006 06:01 PM
Java error "Exception in thread "main" java.lang.StackOverflowError" nro Programming 1 09-04-2004 03:47 AM
java error Hal Hunt Linux - General 0 07-14-2001 09:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration