• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Applet Help

 
Basker Ganesan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have an applet running on WebSphere 5 It's giving an error
(Java Console error)

java.lang.NullPointerException
at DrawImg.init(DrawImg.java:97)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
(On Browser)
Also on the browsers status bar -
Start: Applet not initialized
 
Tim Holloway
Bartender
Posts: 18469
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WebSphere doesn't run applets - they run on the client's computer.
Take a look at line 97 of DrawImg.java. You're attempting to do something with an object that hasn't been initialized yet.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!