Skip to main content

Problem: NullpointerException

1 reply [Last post]
mickey2combs
Offline
Joined: 2007-08-06

I have a problem with an upload applet I have installed on my site. It is installed and working OK but when I navigate away from the page and then go back - the applet refuses to load. I am running Windows XP Professional with SP2 and IE7 and have JRE 6 update 2 installed. I have tried it with earlier versions of Java but both 1.4 and 1.5 give the same problem.

The console error reads:

Java Plug-in 1.6.0_02
Using JRE version 1.6.0_02 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Mike
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to
----------------------------------------------------
java.lang.NullPointerException
at sun.plugin.viewer.context.DefaultPluginAppletContext.getImage(Unknown Source)
at java.applet.Applet.getImage(Unknown Source)
at unlimited.ftp.b.for(Unknown Source)
at unlimited.ftp.UUploadCart.jbInit(Unknown Source)
at unlimited.ftp.UUploadCart.init(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
can't find image from URL: http://www.flattyretourists.co.uk/uploadcart//images/filefolder.gif
java.lang.NullPointerException
at sun.plugin.viewer.context.DefaultPluginAppletContext.getImage(Unknown Source)
at java.applet.Applet.getImage(Unknown Source)
at unlimited.ftp.b.for(Unknown Source)
at unlimited.ftp.UUploadCart.jbInit(Unknown Source)
at unlimited.ftp.UUploadCart.init(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
can't find image from URL: http://www.flattyretourists.co.uk/uploadcart//images/fileprev.gif
java.lang.NullPointerException
at sun.plugin.viewer.context.DefaultPluginAppletContext.getImage(Unknown Source)
at java.applet.Applet.getImage(Unknown Source)
at unlimited.ftp.b.for(Unknown Source)
at unlimited.ftp.UUploadCart.jbInit(Unknown Source)
at unlimited.ftp.UUploadCart.init(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
can't find image from URL: http://www.flattyretourists.co.uk/uploadcart//images/file.gif
java.lang.NullPointerException
at sun.plugin.viewer.context.DefaultPluginAppletContext.getImage(Unknown Source)
at java.applet.Applet.getImage(Unknown Source)
at unlimited.ftp.b.for(Unknown Source)
at unlimited.ftp.UUploadCart.jbInit(Unknown Source)
at unlimited.ftp.UUploadCart.init(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
can't find image from URL: http://www.flattyretourists.co.uk/uploadcart//images/folder.gif
java.lang.NullPointerException
at sun.plugin.viewer.context.DefaultPluginAppletContext.getImage(Unknown Source)
at java.applet.Applet.getImage(Unknown Source)
at unlimited.ftp.b.for(Unknown Source)
at unlimited.ftp.UUploadCart.jbInit(Unknown Source)
at unlimited.ftp.UUploadCart.init(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
can't find image from URL: http://www.flattyretourists.co.uk/uploadcart//images/navigate_right.gif
java.lang.NullPointerException
at unlimited.d.a.(Unknown Source)
at unlimited.ftp.UUploadCart.jbInit(Unknown Source)
at unlimited.ftp.UUploadCart.init(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

If I reinstall java it will again load on the first occasion but same problem as soon as I navigate away from the page. I would like to try and get this applet working as it is free and really useful but I have a limited knowledge and understanding of java.

If I am on the right lines, the error message seems to indicate that the right files cannot be found when it attempts to load the applet on further occasions but I can't understand why it works OK in the first instance?

Any help/advice is greatly appreciated.

Thanks

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
zeeshanjeelani
Offline
Joined: 2007-11-30

hi micky

Check out the objects declared in your code.

Null pointer exception means you r declaring something trying to use it without intializing.