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

Java Web Start Main Thread got struck before calling application main method

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_2008

      Description

      ADDITIONAL SYSTEM INFORMATION :
      JAVA 1.8.0_191-b12


      A DESCRIPTION OF THE PROBLEM :
      We tried to open our application using webstart, observed it got struck at below lines and proces PID is still active on the OS.

      2019-02-01 17:33:52
      Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.191-b12 mixed mode):

      "Thread-1" #15 daemon prio=6 os_prio=0 tid=0x0000000032f7d800 nid=0x1d0 runnable [0x0000000037e1f000]
         java.lang.Thread.State: RUNNABLE
      at sun.awt.windows.WToolkit.shutdown(Native Method)
      at sun.awt.windows.WToolkit$$Lambda$6/2006416528.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

         Locked ownable synchronizers:
      - None

      "AWT-EventQueue-2" #41 prio=6 os_prio=0 tid=0x0000000032da6800 nid=0x184 waiting on condition [0x000000003694e000]
         java.lang.Thread.State: WAITING (parking)
      at sun.misc.Unsafe.park(Native Method)
      - parking to wait for <0x00000004a0022238> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
      at java.util.concurrent.locks.LockSupport.park(Unknown Source)
      at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)
      at java.awt.EventQueue.getNextEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)

         Locked ownable synchronizers:
      - None

      "AWT-EventQueue-1" #39 prio=6 os_prio=0 tid=0x0000000032da0800 nid=0x1618 runnable [0x00000000347ec000]
         java.lang.Thread.State: RUNNABLE
      at sun.awt.windows.WFontPeer.initIDs(Native Method)
      at sun.awt.windows.WFontPeer.<clinit>(Unknown Source)
      at sun.awt.windows.WToolkit.getFontPeer(Unknown Source)
      at java.awt.Font.getPeer_NoClientCode(Unknown Source)
      at java.awt.Font.getPeer(Unknown Source)
      at sun.awt.windows.WComponentPeer._setFont(Native Method)
      - locked <0x00000004a0032dc0> (a sun.awt.windows.WFramePeer)
      at sun.awt.windows.WComponentPeer.setFont(Unknown Source)
      - locked <0x00000004a0032dc0> (a sun.awt.windows.WFramePeer)
      at sun.awt.windows.WWindowPeer.initialize(Unknown Source)
      at sun.awt.windows.WFramePeer.initialize(Unknown Source)
      at sun.awt.windows.WComponentPeer.<init>(Unknown Source)
      at sun.awt.windows.WCanvasPeer.<init>(Unknown Source)
      at sun.awt.windows.WPanelPeer.<init>(Unknown Source)
      at sun.awt.windows.WWindowPeer.<init>(Unknown Source)
      at sun.awt.windows.WFramePeer.<init>(Unknown Source)
      at sun.awt.windows.WToolkit.createFrame(Unknown Source)
      at java.awt.Frame.addNotify(Unknown Source)
      - locked <0x00000004a006cbf0> (a java.awt.Component$AWTTreeLock)
      at javax.swing.SwingUtilities$SharedOwnerFrame.addNotify(Unknown Source)
      at java.awt.Window.pack(Unknown Source)
      at com.sun.deploy.ui.DialogHelper.setVisible(Unknown Source)
      at com.sun.deploy.ui.DialogTemplate$32.run(Unknown Source)
      at com.sun.deploy.ui.DialogTemplate.setVisible(Unknown Source)
      at com.sun.deploy.ui.UIFactory$15.execute(Unknown Source)
      at com.sun.javaws.ui.JavawsSysRun.delegate(Unknown Source)
      at com.sun.deploy.util.DeploySysRun.execute(Unknown Source)
      at com.sun.deploy.util.DeploySysRun$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.deploy.util.DeploySysRun.executePrivileged(Unknown Source)
      at com.sun.deploy.ui.UIFactory.showProgressDialog(Unknown Source)
      at com.sun.deploy.uitoolkit.impl.awt.ui.DownloadWindow$12.run(Unknown Source)
      at java.awt.event.InvocationEvent.dispatch(Unknown Source)
      at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
      at java.awt.EventQueue.access$500(Unknown Source)
      at java.awt.EventQueue$3.run(Unknown Source)
      at java.awt.EventQueue$3.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)

         Locked ownable synchronizers:
      - None

      "CacheCleanUpThread" #23 daemon prio=5 os_prio=0 tid=0x0000000032ad2000 nid=0x20c in Object.wait() [0x0000000033aef000]
         java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(Native Method)
      at java.lang.Object.wait(Unknown Source)
      at com.sun.deploy.cache.CleanupThread.run(Unknown Source)
      - locked <0x00000004a0022880> (a com.sun.deploy.cache.CleanupThread)

         Locked ownable synchronizers:
      - None

      "CacheMemoryCleanUpThread" #20 daemon prio=5 os_prio=0 tid=0x0000000032ac7000 nid=0x2a0 in Object.wait() [0x00000000339ee000]
         java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(Native Method)
      - waiting on <0x00000004a011ebf8> (a java.lang.ref.ReferenceQueue$Lock)
      at java.lang.ref.ReferenceQueue.remove(Unknown Source)
      - locked <0x00000004a011ebf8> (a java.lang.ref.ReferenceQueue$Lock)
      at java.lang.ref.ReferenceQueue.remove(Unknown Source)
      at com.sun.deploy.cache.MemoryCache$LoadedResourceCleanupThread.run(Unknown Source)

         Locked ownable synchronizers:
      - None

      "MemoryCache-DelayedCleanup" #21 daemon prio=5 os_prio=0 tid=0x000000003224e000 nid=0x17a4 in Object.wait() [0x00000000337ee000]
         java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(Native Method)
      - waiting on <0x00000004a011ecd0> (a java.util.TaskQueue)
      at java.lang.Object.wait(Unknown Source)
      at java.util.TimerThread.mainLoop(Unknown Source)
      - locked <0x00000004a011ecd0> (a java.util.TaskQueue)
      at java.util.TimerThread.run(Unknown Source)

         Locked ownable synchronizers:
      - None

      "DestroyJavaVM" #19 prio=5 os_prio=0 tid=0x0000000002836800 nid=0x1298 waiting on condition [0x0000000000000000]
         java.lang.Thread.State: RUNNABLE

         Locked ownable synchronizers:
      - None

      "Java Web Start Main Thread" #18 prio=5 os_prio=0 tid=0x0000000032ac4800 nid=0x104c in Object.wait() [0x00000000336ee000]
         java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(Native Method)
      at java.lang.Thread.join(Unknown Source)
      - locked <0x00000004a0021ed8> (a java.lang.Thread)
      at java.lang.Thread.join(Unknown Source)
      at java.lang.ApplicationShutdownHooks.runHooks(Unknown Source)
      at java.lang.ApplicationShutdownHooks$1.run(Unknown Source)
      at java.lang.Shutdown.runHooks(Unknown Source)
      at java.lang.Shutdown.sequence(Unknown Source)
      at java.lang.Shutdown.exit(Unknown Source)
      - locked <0x00000004a011f4e8> (a java.lang.Class for java.lang.Shutdown)
      at java.lang.Runtime.exit(Unknown Source)
      at java.lang.System.exit(Unknown Source)
      at com.sun.javaws.Main.systemExit(Unknown Source)
      at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
      at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
      at com.sun.javaws.Launcher.launch(Unknown Source)
      at com.sun.javaws.Main.launchApp(Unknown Source)
      at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
      at com.sun.javaws.Main.access$000(Unknown Source)
      at com.sun.javaws.Main$1.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

         Locked ownable synchronizers:
      - None

      "Javaws Secure Thread" #17 daemon prio=5 os_prio=0 tid=0x0000000032abe800 nid=0x344 in Object.wait() [0x00000000335ee000]
         java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(Native Method)
      at java.lang.Object.wait(Unknown Source)
      at com.sun.javaws.ui.JavawsSysRun$SecureThread.run(Unknown Source)
      - locked <0x00000004a006fec0> (a java.lang.Object)

         Locked ownable synchronizers:
      - None

      "AWT-EventQueue-0" #16 prio=6 os_prio=0 tid=0x0000000032a78800 nid=0x2e8 waiting on condition [0x00000000334ee000]
         java.lang.Thread.State: WAITING (parking)
      at sun.misc.Unsafe.park(Native Method)
      - parking to wait for <0x00000004a005eeb0> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
      at java.util.concurrent.locks.LockSupport.park(Unknown Source)
      at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)
      at java.awt.EventQueue.getNextEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)

         Locked ownable synchronizers:
      - None

      "AWT-Windows" #14 daemon prio=6 os_prio=0 tid=0x0000000032a75000 nid=0x19f0 runnable [0x00000000024bf000]
         java.lang.Thread.State: RUNNABLE
      at sun.awt.windows.WToolkit.eventLoop(Native Method)
      at sun.awt.windows.WToolkit.run(Unknown Source)

         Locked ownable synchronizers:
      - None

      "AWT-Shutdown" #13 prio=5 os_prio=0 tid=0x0000000032a6c000 nid=0x1b28 in Object.wait() [0x00000000333ef000]
         java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(Native Method)
      - waiting on <0x00000004a0022520> (a java.lang.Object)
      at java.lang.Object.wait(Unknown Source)
      at sun.awt.AWTAutoShutdown.run(Unknown Source)
      - locked <0x00000004a0022520> (a java.lang.Object)
      at java.lang.Thread.run(Unknown Source)

         Locked ownable synchronizers:
      - None

      "Java2D Disposer" #12 daemon prio=10 os_prio=2 tid=0x0000000032a6b000 nid=0x198c in Object.wait() [0x00000000332ef000]
         java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(Native Method)
      at java.lang.ref.ReferenceQueue.remove(Unknown Source)
      - locked <0x00000004a00a3690> (a java.lang.ref.ReferenceQueue$Lock)
      at java.lang.ref.ReferenceQueue.remove(Unknown Source)
      at sun.java2d.Disposer.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

         Locked ownable synchronizers:
      - None

      "traceMsgQueueThread" #10 daemon prio=5 os_prio=0 tid=0x0000000031fe1000 nid=0x1864 in Object.wait() [0x00000000325fe000]
         java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(Native Method)
      at java.lang.Object.wait(Unknown Source)
      at com.sun.deploy.trace.Trace$TraceMsgQueueChecker.run(Unknown Source)
      - locked <0x00000004a0152fe8> (a java.util.ArrayList)
      at java.lang.Thread.run(Unknown Source)

         Locked ownable synchronizers:
      - None

      "Service Thread" #9 daemon prio=9 os_prio=0 tid=0x0000000031f95800 nid=0x7e0 runnable [0x0000000000000000]
         java.lang.Thread.State: RUNNABLE

         Locked ownable synchronizers:
      - None

      "C1 CompilerThread2" #8 daemon prio=9 os_prio=2 tid=0x00000000300a0800 nid=0x1bac waiting on condition [0x0000000000000000]
         java.lang.Thread.State: RUNNABLE

         Locked ownable synchronizers:
      - None

      "C2 CompilerThread1" #7 daemon prio=9 os_prio=2 tid=0x000000003009e800 nid=0x3c4 waiting on condition [0x0000000000000000]
         java.lang.Thread.State: RUNNABLE

         Locked ownable synchronizers:
      - None

      "C2 CompilerThread0" #6 daemon prio=9 os_prio=2 tid=0x0000000030099000 nid=0x1bd8 waiting on condition [0x0000000000000000]
         java.lang.Thread.State: RUNNABLE

         Locked ownable synchronizers:
      - None

      "Attach Listener" #5 daemon prio=5 os_prio=2 tid=0x0000000030094000 nid=0x424 waiting on condition [0x0000000000000000]
         java.lang.Thread.State: RUNNABLE

         Locked ownable synchronizers:
      - None

      "Signal Dispatcher" #4 daemon prio=9 os_prio=2 tid=0x0000000030091800 nid=0x884 runnable [0x0000000000000000]
         java.lang.Thread.State: RUNNABLE

         Locked ownable synchronizers:
      - None

      "Finalizer" #3 daemon prio=8 os_prio=1 tid=0x0000000002929800 nid=0xe80 in Object.wait() [0x00000000319ff000]
         java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(Native Method)
      at java.lang.ref.ReferenceQueue.remove(Unknown Source)
      - locked <0x00000004a0153fc8> (a java.lang.ref.ReferenceQueue$Lock)
      at java.lang.ref.ReferenceQueue.remove(Unknown Source)
      at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)

         Locked ownable synchronizers:
      - None

      "Reference Handler" #2 daemon prio=10 os_prio=2 tid=0x0000000002928800 nid=0xa88 in Object.wait() [0x00000000318ff000]
         java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(Native Method)
      at java.lang.Object.wait(Unknown Source)
      at java.lang.ref.Reference.tryHandlePending(Unknown Source)
      - locked <0x00000004a01623e0> (a java.lang.ref.Reference$Lock)
      at java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)

         Locked ownable synchronizers:
      - None

      "VM Thread" os_prio=2 tid=0x0000000030059000 nid=0x16a4 runnable

      "GC task thread#0 (ParallelGC)" os_prio=0 tid=0x000000000284c000 nid=0xf24 runnable

      "GC task thread#1 (ParallelGC)" os_prio=0 tid=0x000000000284d800 nid=0x184c runnable

      "GC task thread#2 (ParallelGC)" os_prio=0 tid=0x000000000284f000 nid=0x18a4 runnable

      "GC task thread#3 (ParallelGC)" os_prio=0 tid=0x0000000002852800 nid=0x1554 runnable

      "GC task thread#4 (ParallelGC)" os_prio=0 tid=0x0000000002854000 nid=0x153c runnable

      "GC task thread#5 (ParallelGC)" os_prio=0 tid=0x0000000002855000 nid=0x4a4 runnable

      "VM Periodic Task Thread" os_prio=2 tid=0x0000000031fdc000 nid=0x1010 waiting on condition

      JNI global references: 315


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      It is not reproducible on demand, but just running javaws application is causing the issue

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      On exception also process should get killed.
      ACTUAL -
      Process PID is still running on os

      CUSTOMER SUBMITTED WORKAROUND :
      kill process manually

      FREQUENCY : occasionally

        Attachments

          Activity

            People

            • Assignee:
              pardesha Pardeep Sharma
              Reporter:
              pardesha Pardeep Sharma
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: