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

ClassCastException in UIToolkitImpl.changeMode() when running JNLP applet-desc with javaws

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 7-client
    • Fix Version/s: 7u2
    • Component/s: deploy

      Backports

        Description

        Run
            javaws http://javaweb/~nn136682/JVMArgumentTest/system_property.jnlp

        Will sometime get this error in trace and applet does not show.

        ui: Attempt to switch toolkit mode after initialization to mode: 1
        java.lang.ClassCastException: com.sun.deploy.uitoolkit.impl.awt.AWTPluginUIToolkit cannot be cast to com.sun.deploy.uitoolkit.impl.awt.UIToolkitImpl
            at com.sun.deploy.uitoolkit.impl.awt.UIToolkitImpl.changeMode(UIToolkitImpl.java:152)
            at com.sun.deploy.uitoolkit.ToolkitStore.setMode(ToolkitStore.java:271)
            at sun.plugin2.applet.viewer.JNLP2Viewer.main(JNLP2Viewer.java:70)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:601)
            at com.sun.javaws.Launcher$2.run(Launcher.java:2117)
            at java.lang.Thread.run(Thread.java:722)

        This exception is catched and ignore, however the applet was not showing.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                nam Nam Nguyen (Inactive)
                Reporter:
                nam Nam Nguyen (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: