Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JRE 1.4.2 strange problem

843798Feb 2 2004 — edited Mar 16 2004
Hi All -

I have a rather puzzling problem with an applet I have running from a JAR. On Windows 2000, when I have JRE 1.4.1_XX installed, the applet loads and runs without any problem. Then I install JRE 1.4.2_XX, so that now I have both. I have problems whenever 1.4.2 is installed, regardless of which runtime I choose from the control panel, although the exception is different. Also, JRE 1.4.2 alone also does not work. The last weird thing is that everything works FINE on Windows XP regardless of which JREs are installed! Details are below, and any help is very much appreciated!!!

Thanks,
Ed

The exceptions below were generated when 1.4.2 and 1.4.1 were both installed. The exceptions that occur with using 1.4.2 as the runtime when 1.4.1 is also installed are the same as when 1.4.2 is installed alone.

When the 1.4.2_XX is used as the Runtime, I receive the exception:
---------------------------------------------------------------------------------------------------------
java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.apache.xalan.serialize.SerializerFactory.getSerializer(Unknown Source)
at org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(Unknown Source)
at org.apache.xalan.transformer.TransformerIdentityImpl.transform(Unknown Source)
at com.test.smart.TransApplet.getResults(MyApplet.java:41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
at sun.plugin.com.DispatchImpl$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
Caused by: java.lang.RuntimeException: The resource [ XMLEntities.res ] could not load: java.net.MalformedURLException: no protocol: XMLEntities.res
XMLEntities.res java.net.MalformedURLException: no protocol: XMLEntities.res
at org.apache.xalan.serialize.CharInfo.<init>(Unknown Source)
at org.apache.xalan.serialize.SerializerToXML.<clinit>(Unknown Source)
... 15 more
java.lang.Exception: java.lang.ExceptionInInitializerError
at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
at sun.plugin.com.DispatchImpl$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
---------------------------------------------------------------------------------------------------------

If I use 1.4.1_XX as the runtime, it STILL does not work (that's right, the mere presense of 1.4.2 somehow causes a problem.) but the exception is different. When the applet is loading, this exception appears:

---------------------------------------------------------------------------------------------------------java.lang.NoSuchMethodError: sun.applet.AppletPanel.changeFrameAppContext(Ljava/awt/Frame;Lsun/awt/AppContext;)V
at sun.plugin.viewer.IExplorerPluginObject.appletStateChanged(Unknown Source)
at sun.applet.AppletEventMulticaster.appletStateChanged(Unknown Source)
at sun.applet.AppletPanel.dispatchAppletEvent(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
---------------------------------------------------------------------------------------------------------


Then when I click the first action in the applet, instead of the ExceptionInInitializerError exception, I get:

---------------------------------------------------------------------------------------------------------
java.lang.NullPointerException
at java.applet.Applet.getAppletContext(Unknown Source)
at java.applet.Applet.showStatus(Unknown Source)
at com.test.smart.TransApplet.getResults(MyApplet.java:24)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
at sun.plugin.com.DispatchImpl$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.com.DispatchImpl.invoke(Unknown Source)

java.lang.Exception: java.lang.NullPointerException
at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
at sun.plugin.com.DispatchImpl$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
---------------------------------------------------------------------------------------------------------
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 13 2004
Added on Feb 2 2004
1 comment
151 views