Click here to Skip to main content
15,881,559 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to use GML4J, an open-source GML reader coded in JAVA.
I tested it on Linux & Windows platform, under JRE versions 5,6 & 7.

It works fine on Linux but on windows I am always getting run-time error :
java.lang.NullPointerException at java.io.StringReader.<init>(StringReader.java:33)</init>


I am not able to put the source code under some IDE (like eclipse) and debug
it to describe the problem more explicitly.

Is there any difference between JRE for windows & Linux? Is some JDK component is missing
on my machine? As things are working fine on Linux, it does not appear to be problem
with code. It appears to be JAVA installation/library issue. How this can be analyzed
and resolved?
Posted
Updated 24-Jan-11 23:30pm
v3

Are you sure to use the correct path and file separators when opening files?
http://download.oracle.com/javase/1.4.2/docs/api/java/io/File.html[^]

Good luck!
 
Share this answer
 
The input to application is an XML file. Hence, I was suspecting the path issue, initially. But from the stack trace, I can see that path input is proper as per windows system. And hence, initial level of classes in stack do not report any exception. The exception occurs at later stage when the GML reader wants to read the XML schema
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900