← Back to team overview

openjdk team mailing list archive

[Bug 199732] Re: applet fails to load with nullpointerexception

 

I've created a patch that fixes this issue. Tested against a site which
would previously fail due to no CODE attribute:

http://www.jeacle.ie/mortgage/ca/

GCJ PLUGIN: thread 0x6229b0: plugin_in_pipe_callback return
  PIPE: appletviewer wrote: status starting applet...
  PIPE: appletviewer read: instance-15261-5
  PIPE: appletviewer read: width 625
  PIPE: appletviewer read: instance-15261-5
  PIPE: appletviewer read: height 875
Jar string: mortgage-en.jar
jars length: 1
initializing JNLPRuntime...
  PIPE: appletviewer wrote: status Applet loaded.


Timothy's reported applets on jigzone,com still fail since they don't have a WIDTH or HEIGHT attribute specified.

GCJ PLUGIN: thread 0x6229b0: GCJ_SetWindow return
Warning: <embed> tag requires width attribute.


The Bus route planning applets reported by HappySpaceInvader still fail, but not because of the tag. They fail due to Javascript support exceptions:

** ACIS Live v2.1 - jBusMapEngine v4.3
**
** Author: Robert Tinsley
** Email:  rtinsley@xxxxxxxxxxx

  PIPE: appletviewer wrote: status error: java.lang.NoClassDefFoundError: netscape/javascript/JSObject.
java.lang.NoClassDefFoundError: netscape/javascript/JSObject
	at BusMap.init(BusMap.java:76)
	at sun.applet.AppletPanel.run(AppletPanel.java:436)
	at java.lang.Thread.run(Thread.java:636)
Caused by: java.lang.ClassNotFoundException: netscape.javascript.JSObject
	at net.sourceforge.jnlp.runtime.JNLPClassLoader.loadClassExt(JNLPClassLoader.java:700)
	at net.sourceforge.jnlp.runtime.JNLPClassLoader.loadClass(JNLPClassLoader.java:657)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
	... 3 more
  PIPE: appletviewer wrote: status Start: applet not initialized.

-- 
applet fails to load with nullpointerexception
https://bugs.launchpad.net/bugs/199732
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-6 in ubuntu.

Status in “icedtea-gcjwebplugin” source package in Ubuntu: Invalid
Status in “openjdk-6” source package in Ubuntu: Confirmed
Status in “openjdk-6” source package in Fedora: Confirmed

Bug description:
Binary package hint: icedtea-java7-plugin

I am trying to access an applet from http://www.jigzone.com. The applet fails to load with error:

Exception in thread "main" java.lang.NullPointerException
	at sun.applet.PluginMain.start(PluginMain.java:211)
	at sun.applet.PluginMain.main(PluginMain.java:73)


I am running Hardy Alpha 6 (firefox3, icedtea-java7). The applet works just fine on my Gutsy box (firefox2, sun6).

I have attached the complete console output

ProblemType: Bug
Architecture: i386
Date: Fri Mar  7 23:13:26 2008
DistroRelease: Ubuntu 8.04
Package: firefox 3.0~b3+nobinonly-0ubuntu4
PackageArchitecture: all
SourcePackage: firefox-3.0
Uname: Linux 2.6.24-11-generic i686