java.lang.NullPointerException
Hi,
I'm way out of my league here, and I am not a developer. I get the following error message when I try to access a virtual tour on a specific site:
1/2/2002 @ 1:48:26
MGI Software Corp. VTM 1.0.Wed Jan 02 01:48:26 PST 2002bld:0001
java.io.FileNotFoundException: http://www.westcotthouse.org/restoration/vrtourlib/fall2001/HiRes/XML\Ext_Sidewalk_South_Java_1.xml
Java Exception: java.lang.NullPointerException -
Stack Trace:
java.lang.NullPointerException
at vtjpeg.b(Compiled Code)
at vtjpeg.ResetApplet(Unknown Source)
at vtjpeg.start(Unknown Source)
at com.apple.mrj.JManager.JMAppletViewer_OLD.doAppletStart(JMAppletViewerOld.java)
at com.apple.mrj.JManager.JMAppletViewer_OLD.setState(JMAppletViewerOld.java)
at com.apple.mrj.JManager.JMViewerEvent.post(JMAppletViewerOld.java)
at com.apple.mrj.JManager.AVDispatcherThread.run(JMAppletViewerOld.java)
I have never come across this problem before, and it occurs on any browser I use.
I use a Mac G4. The webmaster can't help, and informs me that tests showed other Macs don't appear to have this problem.
I figure if I can't get help here, I can't get it anywhere!
Thanks anyone!
[1277 byte] By [
frobur] at [2007-9-26 16:32:45]

Hello,
I had a look at this site - I must say you are not able to fix it, becase it's an error in the applet - it has wrong usage of "\", thats why it works only in ms windows an internet explorer.
Anyway, you can see the pictures manually, by putting the url:
"http://www.westcotthouse.org/restoration/vrtourlib/fall2001/HiRes/PHOTOS/"
into your browser.
Greetings.
Maciek
NullPointerException
means that ur code tries to use a variable that has not been intialized in other words it has no value.
the wrest of the message shows u were the variable is being used.
so just look for the variable and try to initialize it.
if u cant find it try using
System.out.println(put the variable name here);
if it prints out some gobly gope ur cool, if it prints out "null" thats ur variable and u have to initialize it
Hello again,
Well you might not be full satisfied with plain pictures, cause the applet shows you an animation.
As I wrote before you are not able to fix it, but webmaster is.
Just ask him to find in the file:
http://www.westcotthouse.org/restoration/vrtourlib/fall2001/HiRes/vt_fall01_hr.html
the line which is now:
<param name="xmlfile" value="XML\Ext_Sidewalk_South_Java_1.xml">
and replace there "XML\Ext" with "XML/Ext".
The applet should be than ok on your comp.
Maciek
Hi,
I have taught myself java and have not used images before, and I'm trying to write a simple MIDlet for a MIDP in J2ME that displays a picture on the click of a button. There seems to be a problem initializing the instance of an image with the following code:
try
{
picture = createImage("c:/Platform.png");
}catch(IOException ex)
{
}
I keep getting the "java.lang.NullPointerException" bug. Please can someone tell me why the code won't initialize the image object.
Your assistance will be appreciated.
Thanks
Gareth.