-
Bug
-
Resolution: Fixed
-
P3
-
5.0u8, 6
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2142214 | Vaibhav Choudhary | P4 | Closed | Won't Fix |
This is instance of negative testing
Applet fails to load with following exception in case user specifies invalid value against "deployment.user.logdir" while JAWS application runs fine.
java.lang.NullPointerException
at com.sun.deploy.util.Trace.createTempFile(Unknown Source)
at sun.plugin.JavaRunTime.initTraceEnvironment(Unknown Source)
at sun.plugin.AppletViewer.initEnvironment(Unknown Source)
at sun.plugin.AppletViewer.initEnvironment(Unknown Source)
liveconnect: Invoking JS method: document
liveconnect: Invoking JS method: URL
basic: Referencing classloader: sun.plugin.ClassLoaderInfo@f3d6a5, refcount=1
liveconnect: Invoking JS method: document
liveconnect: Invoking JS method: URL
basic: Referencing classloader: sun.plugin.ClassLoaderInfo@f3d6a5, refcount=2
Exception in thread "Thread-4" java.lang.ClassCastException: sun.net.ProgressMonitor cannot be cast to sun.plugin.util.ProgressMonitor
at sun.plugin.util.GrayBoxPainter.beginPainting(Unknown Source)
at sun.plugin.AppletViewer.initApplet(Unknown Source)
at sun.plugin.AppletViewer.appletInit(Unknown Source)
at sun.plugin.viewer.LifeCycleManager.initAppletPanel(Unknown Source)
at sun.plugin.viewer.IExplorerPluginObject$Initer.run(Unknown Source)
Exception in thread "Thread-3" java.lang.ClassCastException: sun.net.ProgressMonitor cannot be cast to sun.plugin.util.ProgressMonitor
at sun.plugin.util.GrayBoxPainter.beginPainting(Unknown Source)
at sun.plugin.AppletViewer.initApplet(Unknown Source)
at sun.plugin.AppletViewer.appletInit(Unknown Source)
at sun.plugin.viewer.LifeCycleManager.initAppletPanel(Unknown Source)
at sun.plugin.viewer.IExplorerPluginObject$Initer.run(Unknown Source)
Step to reproduce:
------------------
1)Create deployment.properties file with following enteries:
deployment.trace=true
deployment.user.logdir=C\:\temp ("\" missing correct value is C\:\\temp)
deployment.log=true
2) Invoke the following applet/application
http://nicole1.sfbay.sun.com:8080/JavawsMustangIntegTest/hellojaws/BAT.jnlp
http://sqeweb.sfbay.sun.com/deployment2/jitu/plug-bug/applet_communication/static_var/tes
t1/applet_frame.html
You can notice that JAWS application will run fine while applet will fail to load with above mentioned exception
Applet fails to load with following exception in case user specifies invalid value against "deployment.user.logdir" while JAWS application runs fine.
java.lang.NullPointerException
at com.sun.deploy.util.Trace.createTempFile(Unknown Source)
at sun.plugin.JavaRunTime.initTraceEnvironment(Unknown Source)
at sun.plugin.AppletViewer.initEnvironment(Unknown Source)
at sun.plugin.AppletViewer.initEnvironment(Unknown Source)
liveconnect: Invoking JS method: document
liveconnect: Invoking JS method: URL
basic: Referencing classloader: sun.plugin.ClassLoaderInfo@f3d6a5, refcount=1
liveconnect: Invoking JS method: document
liveconnect: Invoking JS method: URL
basic: Referencing classloader: sun.plugin.ClassLoaderInfo@f3d6a5, refcount=2
Exception in thread "Thread-4" java.lang.ClassCastException: sun.net.ProgressMonitor cannot be cast to sun.plugin.util.ProgressMonitor
at sun.plugin.util.GrayBoxPainter.beginPainting(Unknown Source)
at sun.plugin.AppletViewer.initApplet(Unknown Source)
at sun.plugin.AppletViewer.appletInit(Unknown Source)
at sun.plugin.viewer.LifeCycleManager.initAppletPanel(Unknown Source)
at sun.plugin.viewer.IExplorerPluginObject$Initer.run(Unknown Source)
Exception in thread "Thread-3" java.lang.ClassCastException: sun.net.ProgressMonitor cannot be cast to sun.plugin.util.ProgressMonitor
at sun.plugin.util.GrayBoxPainter.beginPainting(Unknown Source)
at sun.plugin.AppletViewer.initApplet(Unknown Source)
at sun.plugin.AppletViewer.appletInit(Unknown Source)
at sun.plugin.viewer.LifeCycleManager.initAppletPanel(Unknown Source)
at sun.plugin.viewer.IExplorerPluginObject$Initer.run(Unknown Source)
Step to reproduce:
------------------
1)Create deployment.properties file with following enteries:
deployment.trace=true
deployment.user.logdir=C\:\temp ("\" missing correct value is C\:\\temp)
deployment.log=true
2) Invoke the following applet/application
http://nicole1.sfbay.sun.com:8080/JavawsMustangIntegTest/hellojaws/BAT.jnlp
http://sqeweb.sfbay.sun.com/deployment2/jitu/plug-bug/applet_communication/static_var/tes
t1/applet_frame.html
You can notice that JAWS application will run fine while applet will fail to load with above mentioned exception
- backported by
-
JDK-2142214 Applet fails to load in case user specifies invalid value in deployment.properties
- Closed
- duplicates
-
JDK-6457012 Tiger_UR: Applet fails to load for invalid values against properties traceFileName and logFileName
- Closed