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

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

    Details

    • Subcomponent:
    • Introduced In Build:
      b39
    • Introduced In Version:
      6
    • Resolved In Build:
      b96
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        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

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: