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

Dead lock after return from nested modal dialog

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1.5
    • client-libs



      Name: rk38400 Date: 04/10/98


      I opened two nested dialog boxes.
      When I close the second one, the system actually returns to the first,
      however then I get to to dead lock while repainting the JDialog. The
      thread stack is attached:

      Full thread dump:
          "AWT-Dispatch-Proxy" (TID:0xfa2b40, sys_thread_t:0x902560, Win32ID:0x107, state:CW) prio=5
              java.lang.Object.wait(Object.java:315)
              com.sun.java.swing.text.AbstractDocument.readLock(AbstractDocument.java:678)
              com.sun.java.swing.text.AbstractDocument.render(AbstractDocument.java:248)
              com.sun.java.swing.text.DefaultTextUI.paint(DefaultTextUI.java:442)
              com.sun.java.swing.plaf.ComponentUI.update(ComponentUI.java:47)
              com.sun.java.swing.JComponent.paintComponent(JComponent.java:374)
              com.sun.java.swing.JComponent.paint(JComponent.java:579)
              com.sun.java.swing.JComponent.paintChildren(JComponent.java:434)
              com.sun.java.swing.JComponent.paint(JComponent.java:582)
              com.sun.java.swing.JComponent.paintChildren(JComponent.java:434)
              com.sun.java.swing.JComponent.paint(JComponent.java:582)
              com.sun.java.swing.JComponent.paintChildren(JComponent.java:434)
              com.sun.java.swing.JComponent.paint(JComponent.java:582)
              com.sun.java.swing.JComponent.paintChildren(JComponent.java:434)
              com.sun.java.swing.JComponent.paint(JComponent.java:582)
              com.sun.java.swing.JComponent.paintChildren(JComponent.java:434)
              com.sun.java.swing.JComponent.paint(JComponent.java:582)
              com.sun.java.swing.JLayeredPane.paint(JLayeredPane.java:396)
              com.sun.java.swing.JComponent.paintChildren(JComponent.java:434)
              com.sun.java.swing.JComponent.paint(JComponent.java:567)
          "AWT-Dispatch-Proxy" (TID:0xf5b240, sys_thread_t:0x8fe1d0, Win32ID:0xcb, state:MW) prio=5
              java.awt.Component.invalidate(Component.java:1126)
              java.awt.Container.invalidate(Container.java:485)
              com.sun.java.swing.JComponent.revalidate(JComponent.java:2907)
              com.sun.java.swing.text.DefaultTextUI$RootView.preferenceChanged(DefaultTextUI.java:714)
              com.sun.java.swing.text.View.preferenceChanged(View.java:84)
              com.sun.java.swing.text.PlainView.preferenceChanged(PlainView.java:285)
              com.sun.java.swing.text.PlainView.updateDamage(PlainView.java:458)
              com.sun.java.swing.text.PlainView.removeUpdate(PlainView.java:404)
              com.sun.java.swing.text.FieldView.removeUpdate(FieldView.java:251)
              com.sun.java.swing.text.DefaultTextUI$RootView.removeUpdate(DefaultTextUI.java:848)
              com.sun.java.swing.text.DefaultTextUI$UpdateHandler.removeUpdate(DefaultTextUI.java:1065)
              com.sun.java.swing.text.AbstractDocument.fireRemoveUpdate(AbstractDocument.java:185)
              com.sun.java.swing.text.AbstractDocument.remove(AbstractDocument.java:371)
              com.sun.java.swing.text.JTextComponent.setText(JTextComponent.java:1088)
              com.intelliframe.components.SetFieldSearch.actionPerformed(SetFieldSearch.java:37)
              com.sun.java.swing.AbstractButton.fireActionPerformed(AbstractButton.java:860)
              com.sun.java.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:89
      5)
              com.sun.java.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:338)
              com.sun.java.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:230)
              com.sun.java.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:156
      )
          "AWT-Finalizer" (TID:0xf95438, sys_thread_t:0x8ee300, Win32ID:0xc7, state:CW) prio=8
              java.lang.Object.wait(Object.java:315)
              sun.awt.AWTFinalizer.run(AWTFinalizer.java:48)
          "Screen Updater" (TID:0xf7f5b0, sys_thread_t:0x8ea630, Win32ID:0xbb, state:CW) prio=4
              java.lang.Object.wait(Object.java:315)
              sun.awt.ScreenUpdater.nextEntry(ScreenUpdater.java:78)
              sun.awt.ScreenUpdater.run(ScreenUpdater.java:98)
          "Pinger" (TID:0xf80698, sys_thread_t:0x8c6200, Win32ID:0x85, state:CW) prio=5
              sun.rmi.transport.tcp.Pinger.run(TCPEndpoint.java:325)
              java.lang.Thread.run(Thread.java:474)
          "TCP Accept-1" (TID:0xf806c8, sys_thread_t:0x8c5b30, Win32ID:0xfc, state:R) prio=5
              java.net.PlainSocketImpl.accept(PlainSocketImpl.java:387)
              java.net.ServerSocket.implAccept(ServerSocket.java:206)
              java.net.ServerSocket.accept(ServerSocket.java:189)
              sun.rmi.transport.proxy.HttpAwareServerSocket.accept(HttpAwareServerSocket.java:77)
              sun.rmi.transport.tcp.TCPTransport.run(TCPTransport.java:351)
              java.lang.Thread.run(Thread.java:474)
          "KeepAlive" (TID:0xf803b8, sys_thread_t:0x8bf100, Win32ID:0xe7, state:CW) prio=5
              sun.rmi.transport.KeepAlive.run(ObjectTable.java:180)
              java.lang.Thread.run(Thread.java:474)
          "Reaper" (TID:0xf80418, sys_thread_t:0x8bf4c0, Win32ID:0x102, state:CW) prio=5
              sun.rmi.transport.Reaper.run(ObjectTable.java:197)
              java.lang.Thread.run(Thread.java:474)
          "TimerQueue" (TID:0xf7cfa0, sys_thread_t:0x8b0650, Win32ID:0xc0, state:CW) prio=4
              com.sun.java.swing.TimerQueue.run(TimerQueue.java:249)
              java.lang.Thread.run(Thread.java:474)
          "AWT-Windows" (TID:0xf76130, sys_thread_t:0x894980, Win32ID:0xf1, state:R) prio=5
              sun.awt.windows.WToolkit.run(WToolkit.java:106)
              java.lang.Thread.run(Thread.java:474)
          "AWT-EventQueue-0" (TID:0xf75f60, sys_thread_t:0x8935c0, Win32ID:0x10d, state:CW) prio=5
              sun.awt.windows.WDialogPeer.show(WDialogPeer.java:55)
              java.awt.Dialog.show(Dialog.java:220)
              com.intelliframe.cms.bo.CMSContractInfo$showProperty.actionPerformed(CMSContractInfo.java:65
      )
              com.sun.java.swing.AbstractButton.fireActionPerformed(AbstractButton.java:860)
              com.sun.java.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:89
      5)
              com.sun.java.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:338)
              com.sun.java.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:230)
              com.sun.java.swing.AbstractButton.doClick(AbstractButton.java:169)
              com.sun.java.swing.plaf.basic.BasicMenuItemUI.processMouseEvent(BasicMenuItemUI.java:186)
              com.sun.java.swing.JMenuItem.processMouseEvent(JMenuItem.java:296)
              com.sun.java.swing.MenuSelectionManager.processMouseEvent(MenuSelectionManager.java:169)
              com.sun.java.swing.plaf.basic.BasicMenuMouseListener.mouseReleased(BasicMenuMouseListener.ja
      va:37)
              java.awt.Component.processMouseEvent(Component.java:2284)
              java.awt.Component.processEvent(Component.java:2129)
              java.awt.Container.processEvent(Container.java:894)
              java.awt.Component.dispatchEventImpl(Component.java:1764)
              java.awt.Container.dispatchEventImpl(Container.java:939)
              java.awt.Component.dispatchEvent(Component.java:1704)
              java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:1548)
              java.awt.LightweightDispatcher.processMouseEvent(Container.java:1457)
          "Finalizer thread" (TID:0xf70088, sys_thread_t:0x88e180, Win32ID:0xfe, state:CW) prio=2
          "main" (TID:0xf700b0, sys_thread_t:0x88da00, Win32ID:0xeb, state:CW) prio=5
      Monitor Cache Dump:
          sun.awt.AWTFinalizer@F95438/1014688: <unowned>
              Waiters: 1
          <unknown key> (0x8bf4c0): <unowned>
              Waiters: 1
          java.net.PlainSocketImpl@F80328/FF8A38: owner "TCP Accept-1" (0x8c5b30, 1 entry)
          <unknown key> (0x8bf100): <unowned>
              Waiters: 1
          java.lang.Object@F7B120/FCE990: owner "AWT-Dispatch-Proxy" (0x902560, 6 entries)
          com.sun.java.swing.TimerQueue@F7CFA8/FD6C90: <unowned>
              Waiters: 1
          <unknown key> (0x8c6200): <unowned>
              Waiters: 1
          sun.awt.ScreenUpdater@F7F5B0/103A7F0: <unowned>
              Waiters: 1
          sun.awt.windows.WDialogPeer@F5D390/10E0658: <unowned>
              Waiters: 1
          com.sun.java.swing.text.PlainDocument@F74F50/10A1B88: <unowned>
              Waiters: 1
      Registered Monitor Dump:
          Thread queue lock: <unowned>
              Waiters: 1
          Name and type hash table lock: <unowned>
          String intern lock: <unowned>
          JNI pinning lock: <unowned>
          JNI global reference lock: <unowned>
          BinClass lock: <unowned>
          Class loading lock: <unowned>
          Java stack lock: <unowned>
          Code rewrite lock: <unowned>
          Heap lock: <unowned>
          Has finalization queue lock: <unowned>
          Finalize me queue lock: <unowned>
              Waiters: 1
          Monitor registry: <unowned>
      (Review ID: 26209)
      ======================================================================

            amfowler Anne Fowler (Inactive)
            rkarsunw Ralph Kar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: