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

with jdk1.6.0, javaws failed to start java application on snv b55 on some machines

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • 6u3
    • sdx_1.0, 6
    • deploy
    • None

      With jdk1.6.0, javaws failed to start java application on snv b55 on some machines.

      I use javaws to start a jar file, it should start java application with GUI.

      OS: snv build 55,
      Server: Dell Poweredge 850

      1. with jdk 1.5.0_10.
      2. with jdk 1.6.0, on CDE platform.
      3. with jdk 1.6.0, on JDS platform under non-root user.

      On above situations, the java application can be started without problem.


      4. with jdk 1.6.0, JDS platform, under root user.

      It always has problem, the java process seems hang there, and the GUI
      will not displayed. The following is the truss info for that process:

      ********************************************

      [root@enemies]# javaws sddt_test.jnlp

      [root@enemies]#ps -ef | grep java

      root 2087 1 50 16:47:53 pts/4 44:07 /usr/jdk/instances/jdk1.6.0/jre/bin/java -Xbootclasspath/a:/usr/jdk/instances/j

      [root@enemies]#truss -p 2087
      /27: Incurred fault #6, FLTBOUNDS %pc = 0xFC410E3D
      /27: siginfo: SIGSEGV SEGV_ACCERR addr=0x00000000
      /27: Received signal #11, SIGSEGV [caught]
      /27: siginfo: SIGSEGV SEGV_ACCERR addr=0x00000000
      /27: lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFF7) = 0xFFBFFEFF [0x0000FFFF]
      /27: setcontext(0xF82B4480)
      /27: Incurred fault #6, FLTBOUNDS %pc = 0xFC410E3D
      /27: siginfo: SIGSEGV SEGV_ACCERR addr=0x00000000
      /27: Received signal #11, SIGSEGV [caught]
      /27: siginfo: SIGSEGV SEGV_ACCERR addr=0x00000000
      /27: lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFF7) = 0xFFBFFEFF [0x0000FFFF]
      /27: setcontext(0xF82B4480)
      /27: Incurred fault #6, FLTBOUNDS %pc = 0xFC410E3D
      /27: siginfo: SIGSEGV SEGV_ACCERR addr=0x00000000
      /27: Received signal #11, SIGSEGV [caught]
      /27: siginfo: SIGSEGV SEGV_ACCERR addr=0x00000000

      ******************************************************



      The following is the thread stack dump when the process was in a dead loop:

      Java Web Start 1.6.0
      Using JRE version 1.6.0 Java HotSpot(TM) Client VM
      User home directory = /root
      ----------------------------------------------------
      c: clear console window
      f: finalize objects on finalization queue
      g: garbage collect
      h: display this help message
      m: print memory usage
      o: trigger logging
      p: reload proxy configuration
      q: hide console
      r: reload policy configuration
      s: dump system and deployment properties
      t: dump thread list
      v: dump thread stack
      0-5: set trace level to <n>
      ----------------------------------------------------
      Dump thread stack ...
      ----------------------------------------------------
      2007-01-12 10:21:33
      Full thread dump Java HotSpot(TM) Client VM (1.6.0-b105 mixed mode, sharing):

      "javawsApplicationMain" prio=10 tid=0x084b7c00 nid=0x1b runnable [0xf81dc000..0xf81ddae0]
         java.lang.Thread.State: RUNNABLE
      at java.io.RandomAccessFile.getChannel(RandomAccessFile.java:251)
      at sun.font.TrueTypeFont.open(TrueTypeFont.java:260)
      - locked <0xa428f9f8> (a sun.font.TrueTypeFont)
      at sun.font.TrueTypeFont.verify(TrueTypeFont.java:382)
      at sun.font.TrueTypeFont.<init>(TrueTypeFont.java:159)
      at sun.font.FontManager.registerFontFile(FontManager.java:986)
      at sun.font.FontManager.initialiseDeferredFont(FontManager.java:932)
      - locked <0xac8ae838> (a java.lang.Class for sun.font.FontManager)
      at sun.font.CompositeFont.doDeferredInitialisation(CompositeFont.java:236)
      - locked <0xac8ae838> (a java.lang.Class for sun.font.FontManager)
      at sun.font.CompositeFont.getSlotFont(CompositeFont.java:316)
      at sun.font.CompositeStrike.getStrikeForSlot(CompositeStrike.java:59)
      at sun.font.CompositeStrike.getFontMetrics(CompositeStrike.java:75)
      at sun.font.FontDesignMetrics.initMatrixAndMetrics(FontDesignMetrics.java:345)
      at sun.font.FontDesignMetrics.<init>(FontDesignMetrics.java:336)
      at sun.font.FontDesignMetrics.getMetrics(FontDesignMetrics.java:284)
      at sun.swing.SwingUtilities2.getFontMetrics(SwingUtilities2.java:910)
      at javax.swing.JComponent.getFontMetrics(JComponent.java:1592)
      at javax.swing.text.PlainView.calculateLongestLine(PlainView.java:613)
      at javax.swing.text.PlainView.updateMetrics(PlainView.java:192)
      at javax.swing.text.PlainView.updateDamage(PlainView.java:501)
      at javax.swing.text.PlainView.insertUpdate(PlainView.java:425)
      at javax.swing.plaf.basic.BasicTextUI$RootView.insertUpdate(BasicTextUI.java:1589)
      at javax.swing.plaf.basic.BasicTextUI$UpdateHandler.insertUpdate(BasicTextUI.java:1848)
      at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:185)
      at javax.swing.text.AbstractDocument.handleInsertString(AbstractDocument.java:734)
      at javax.swing.text.AbstractDocument.insertString(AbstractDocument.java:693)
      at javax.swing.text.PlainDocument.insertString(PlainDocument.java:114)
      at javax.swing.text.AbstractDocument.replace(AbstractDocument.java:655)
      at javax.swing.text.JTextComponent.setText(JTextComponent.java:1693)
      at javax.swing.JTextArea.<init>(JTextArea.java:195)
      at javax.swing.JTextArea.<init>(JTextArea.java:133)
      at com.sun.vvv2.gui.VVV2Frame.createPrestartPanel(VVV2Frame.java:470)
      at com.sun.vvv2.gui.VVV2Frame.createStartPanel(VVV2Frame.java:502)
      at com.sun.vvv2.gui.VVV2Frame.createMainPanel(VVV2Frame.java:825)
      at com.sun.vvv2.gui.VVV2Frame.createFrame(VVV2Frame.java:864)
      at com.sun.vvv2.gui.VVV2Frame.<init>(VVV2Frame.java:137)
      at com.sun.vvv2.func.VVV2.main(VVV2.java:80)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.sun.javaws.Launcher.executeApplication(Launcher.java:1205)
      at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1151)
      at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:998)
      at com.sun.javaws.Launcher.run(Launcher.java:105)
      at java.lang.Thread.run(Thread.java:619)

      "AWT-EventQueue-0" prio=10 tid=0x083db800 nid=0x1a in Object.wait() [0xf8789000..0xf8789a60]
         java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(Native Method)
      - waiting on <0xa3f1d748> (a java.awt.EventQueue)
      at java.lang.Object.wait(Object.java:485)
      at java.awt.EventQueue.getNextEvent(EventQueue.java:479)
      - locked <0xa3f1d748> (a java.awt.EventQueue)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:245)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

      "TimerQueue" daemon prio=10 tid=0x08668c00 nid=0x14 in Object.wait() [0xf882d000..0xf882db60]
         java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(Native Method)
      - waiting on <0xa4023e00> (a javax.swing.TimerQueue)
      at javax.swing.TimerQueue.run(TimerQueue.java:236)
      - locked <0xa4023e00> (a javax.swing.TimerQueue)
      at java.lang.Thread.run(Thread.java:619)

      "CacheCleanUpThread" daemon prio=10 tid=0x0849cc00 nid=0x12 in Object.wait() [0xf8b67000..0xf8b67a60]
         java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(Native Method)
      - waiting on <0xa3fcd750> (a com.sun.deploy.cache.CleanupThread)
      at java.lang.Object.wait(Object.java:485)
      at com.sun.deploy.cache.CleanupThread.run(CleanupThread.java:219)
      - locked <0xa3fcd750> (a com.sun.deploy.cache.CleanupThread)

      "ConsoleWriterThread" daemon prio=10 tid=0x0849ac00 nid=0x11 in Object.wait() [0xf8bb9000..0xf8bb99e0]
         java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(Native Method)
      - waiting on <0xa3f887a0> (a java.lang.Object)
      at java.lang.Object.wait(Object.java:485)
      at com.sun.deploy.util.ConsoleTraceListener$ConsoleWriterThread.run(ConsoleTraceListener.java:72)
      - locked <0xa3f887a0> (a java.lang.Object)

      "AWT-EventQueue-1" prio=10 tid=0x08493800 nid=0x10 waiting on condition [0xf8c0b000..0xf8c0b960]
         java.lang.Thread.State: RUNNABLE
      at com.sun.deploy.util.ConsoleHelper.dumpAllStacksImpl(Native Method)
      at com.sun.deploy.util.ConsoleHelper.dumpAllStacks(ConsoleHelper.java:66)
      at com.sun.javaws.util.JavawsConsoleController14.dumpAllStacks(JavawsConsoleController14.java:96)
      at com.sun.deploy.util.ConsoleWindow$2.actionPerformed(ConsoleWindow.java:121)
      at javax.swing.JComponent$ActionStandin.actionPerformed(JComponent.java:3361)
      at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1636)
      at javax.swing.JComponent.processKeyBinding(JComponent.java:2844)
      at javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:267)
      at javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:216)
      at javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2921)
      at javax.swing.JComponent.processKeyBindings(JComponent.java:2913)
      at javax.swing.JComponent.processKeyEvent(JComponent.java:2807)
      at java.awt.Component.processEvent(Component.java:5815)
      at java.awt.Container.processEvent(Container.java:2058)
      at java.awt.Component.dispatchEventImpl(Component.java:4410)
      at java.awt.Container.dispatchEventImpl(Container.java:2116)
      at java.awt.Component.dispatchEvent(Component.java:4240)
      at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1848)
      at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:693)
      at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:958)
      at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:830)
      at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:657)
      at java.awt.Component.dispatchEventImpl(Component.java:4282)
      at java.awt.Container.dispatchEventImpl(Container.java:2116)
      at java.awt.Window.dispatchEventImpl(Window.java:2429)
      at java.awt.Component.dispatchEvent(Component.java:4240)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

      "AWT-Shutdown" prio=10 tid=0x08492c00 nid=0xf in Object.wait() [0xf8c5d000..0xf8c5d8e0]
         java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(Native Method)
      - waiting on <0xa3ef19d0> (a java.lang.Object)
      at java.lang.Object.wait(Object.java:485)
      at sun.awt.AWTAutoShutdown.run(AWTAutoShutdown.java:259)
      - locked <0xa3ef19d0> (a java.lang.Object)
      at java.lang.Thread.run(Thread.java:619)

      "traceMsgQueueThread" daemon prio=10 tid=0x08483c00 nid=0xe in Object.wait() [0xfb901000..0xfb901c60]
         java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(Native Method)
      - waiting on <0xa3f89038> (a java.util.ArrayList)
      at java.lang.Object.wait(Object.java:485)
      at com.sun.deploy.util.Trace$TraceMsgQueueChecker.run(Trace.java:79)
      - locked <0xa3f89038> (a java.util.ArrayList)
      at java.lang.Thread.run(Thread.java:619)

      "DestroyJavaVM" prio=10 tid=0x08070400 nid=0x2 waiting on condition [0x00000000..0xfe72dba0]
         java.lang.Thread.State: RUNNABLE

      "AWT-XAWT" daemon prio=10 tid=0x082bbc00 nid=0xb runnable [0xfbaed000..0xfbaedae0]
         java.lang.Thread.State: RUNNABLE
      at sun.awt.X11.XToolkit.waitForEvents(Native Method)
      at sun.awt.X11.XToolkit.run(XToolkit.java:585)
      at sun.awt.X11.XToolkit.run(XToolkit.java:560)
      at java.lang.Thread.run(Thread.java:619)

      "Java2D Disposer" daemon prio=10 tid=0x0829f000 nid=0xa in Object.wait() [0xfbb6d000..0xfbb6da60]
         java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(Native Method)
      - waiting on <0xa3f30bf0> (a java.lang.ref.ReferenceQueue$Lock)
      at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
      - locked <0xa3f30bf0> (a java.lang.ref.ReferenceQueue$Lock)
      at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
      at sun.java2d.Disposer.run(Disposer.java:125)
      at java.lang.Thread.run(Thread.java:619)

      "Low Memory Detector" daemon prio=10 tid=0x080a6800 nid=0x8 runnable [0x00000000..0x00000000]
         java.lang.Thread.State: RUNNABLE

      "CompilerThread0" daemon prio=10 tid=0x080a5400 nid=0x7 waiting on condition [0x00000000..0xfc2db348]
         java.lang.Thread.State: RUNNABLE

      "Signal Dispatcher" daemon prio=10 tid=0x080a4000 nid=0x6 runnable [0x00000000..0x00000000]
         java.lang.Thread.State: RUNNABLE

      "Finalizer" daemon prio=10 tid=0x08099800 nid=0x5 in Object.wait() [0xfc3b0000..0xfc3b0be0]
         java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(Native Method)
      - waiting on <0xa3f30dd8> (a java.lang.ref.ReferenceQueue$Lock)
      at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
      - locked <0xa3f30dd8> (a java.lang.ref.ReferenceQueue$Lock)
      at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
      at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

      "Reference Handler" daemon prio=10 tid=0x08098800 nid=0x4 in Object.wait() [0xfe46d000..0xfe46db60]
         java.lang.Thread.State: WAITING (on object monitor)
      at java.lang.Object.wait(Native Method)
      - waiting on <0xa3f30a90> (a java.lang.ref.Reference$Lock)
      at java.lang.Object.wait(Object.java:485)
      at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
      - locked <0xa3f30a90> (a java.lang.ref.Reference$Lock)

      "VM Thread" prio=10 tid=0x0808f000 nid=0x3 runnable

      "VM Periodic Task Thread" prio=10 tid=0x080a8000 nid=0x9 waiting on condition

      ----------------------------------------------------
      Done.

            ngthomas Thomas Ng (Inactive)
            xueyyan Xue-Yang Yan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: