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

interrupting a JSObject.call() in a waiting state leads to JVM shutdown

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_xp

      Backports

        Description

        Some JSObject.call() sometimes never return from the browser side making the Applet stuck in a waiting state preventing further processing.

        To prevent the observed behavior, customer has implemented a workaround consisting of interrupting the thread that is performing this JSObject.call() after 10s if no answer.
        The side effect of this workaround is that it sometimes makes the JVMInstance to shutdown instead of continuing processing.

        Full Java console and jpi log are attached. Here are the relevant extracts :

        java Console :

        netscape.javascript.JSException
        at sun.plugin2.main.client.MessagePassingJSObject.newJSException(Unknown Source)
        at sun.plugin2.main.client.MessagePassingJSObject.waitForReply(Unknown Source)
        at sun.plugin2.main.client.MessagePassingJSObject.call(Unknown Source)
        at com.xxx.tct.data.common.BaseApplet$CallingJS.run(BaseApplet.java:232)
        Caused by: java.lang.InterruptedException
        at java.lang.Object.wait(Native Method)
        at sun.plugin2.message.Queue.waitForMessage(Unknown Source)
        at sun.plugin2.message.Pipe.receive(Unknown Source)
        ... 3 more
        netscape.javascript.JSException
        at sun.plugin2.main.client.MessagePassingJSObject.newJSException(Unknown Source)
        at sun.plugin2.main.client.MessagePassingJSObject.waitForReply(Unknown Source)
        at sun.plugin2.main.client.MessagePassingJSObject.call(Unknown Source)
        at com.reuters.tct.data.common.BaseApplet$CallingJS.run(BaseApplet.java:232)
        Caused by: java.lang.InterruptedException
        at java.lang.Object.wait(Native Method)
        at sun.plugin2.message.Queue.waitForMessage(Unknown Source)
        at sun.plugin2.message.Pipe.receive(Unknown Source)
        ... 3 more


        jpi.log :

        java.lang.InterruptedException
        Terminating Java Plug-In Pipe Worker Thread (Server-Side) due to exception:
        at java.lang.Object.wait(Native Method)

                at sun.plugin2.message.Queue.waitForMessage(Unknown Source)JVM instance
        for 1.6.0.17 exited

                at sun.plugin2.message.Pipe.receive(Unknown Source)
                at sun.plugin2.main.server.JVMInstance$WorkerThread.run(Unknown Source)
        JVMInstance.unregisterApplet for applet ID 1java.io.IOException: Error 0 reading
         from named pipe, numRead 0, ReadFile ts: 2604717670958, now ts: 2604756574718,
        dT 38903760

          LiveConnectSupport.shutdown(1)
                at sun.plugin2.ipc.windows.WindowsNamedPipe.read(Unknown Source)
          LiveConnectSupport: released [BrowserSideObject 0x267542c] for applet 1
        at sun.plugin2.message.transport.NamedPipeTransport$SerializerImpl.read(Unknown
        Source)

        JVMInstance.unregisterApplet for applet ID 2 at sun.plugin2.message.transport
        .NamedPipeTransport$SerializerImpl.readByte(Unknown Source)

          LiveConnectSupport.shutdown(2) at sun.plugin2.message.AbstractSerialize
        r.readInt(Unknown Source)

          LiveConnectSupport: released [BrowserSideObject 0x29b2860] for applet 2
        at sun.plugin2.message.transport.SerializingTransport.read(Unknown Source)

          LiveConnectSupport: released [BrowserSideObject 0x267542c] for applet 2
                at sun.plugin2.message.Pipe$WorkerThread.run(Unknown Source)JVMInstance.
        unregisterApplet for applet ID 3

          LiveConnectSupport.shutdown(3)
          LiveConnectSupport: released [BrowserSideObject 0x267542c] for applet 3
        JVMInstance.unregisterApplet for applet ID 17
          LiveConnectSupport.shutdown(17)
          LiveConnectSupport: released [BrowserSideObject 0x26753c4] for applet 17

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  skoppar Sunita Koppar (Inactive)
                  Reporter:
                  apoddany Arnaud Poddany (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: