Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6455152

Applet fails to load in case user specifies invalid value in deployment.properties

XMLWordPrintable

    • b39
    • 6
    • b96
    • generic
    • generic

        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

              ngthomas Thomas Ng (Inactive)
              jijising Jitender Singh (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: