JDK-4122792 : Applet stops repainting using swing components
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.1.2
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.6
  • CPU: sparc
  • Submitted: 1998-03-25
  • Updated: 1998-06-16
  • Resolved: 1998-06-16
Related Reports
Duplicate :  
Description

Name: sg39081			Date: 03/25/98


Steps to reproduce the problem:
  Create an applet (mix of AWT and Swing 1.0.1)
  and expand/collapse tree nodes, select table
  rows, select items from menu, click on buttons.
  After a varying amount of time, the applet stops
  repainting. The only way to repaint is to min/max
  the frame (the applet has dialogs & frames) or to
  move another window on top of the frame.

[Starting HotJava]
[Initializing globals]
[Creating frame]
[Loaded DTD html32 in 162ms]
[Loading: /home/sat/.hotjava/urlpool]
com.sun.java.swing.plaf.motif.MotifLookAndFeel/icons/File.gif not found.
com.sun.java.swing.plaf.motif.MotifLookAndFeel/icons/HomeFolder.gif not found.
com.sun.java.swing.plaf.motif.MotifLookAndFeel/icons/FloppyDrive.gif not found.
com.sun.java.swing.plaf.motif.MotifLookAndFeel/icons/ListView.gif not found.
com.sun.java.swing.plaf.motif.MotifLookAndFeel/icons/Directory.gif not found.
com.sun.java.swing.plaf.motif.MotifLookAndFeel/icons/NewFolder.gif not found.
com.sun.java.swing.plaf.motif.MotifLookAndFeel/icons/DetailsView.gif not found.
com.sun.java.swing.plaf.motif.MotifLookAndFeel/icons/Computer.gif not found.
com.sun.java.swing.plaf.motif.MotifLookAndFeel/icons/UpFolder.gif not found.
com.sun.java.swing.plaf.motif.MotifLookAndFeel/icons/HardDrive.gif not found.
com.sun.java.swing.plaf.motif.MotifLookAndFeel/icons/JavaCup.gif not found.

Exception occurred during event dispatching:
java.lang.NullPointerException
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:1544)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:1448)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:1383)
	at java.awt.Container.dispatchEventImpl(Container.java:922)
	at java.awt.Component.dispatchEvent(Component.java:1704)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:63)

[Saving: /home/sat/.hotjava/urlpool]
[Saving cookies]

Exception occurred during event dispatching:
java.lang.NullPointerException
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:1544)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:1455)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:1383)
	at java.awt.Container.dispatchEventImpl(Container.java:922)
	at java.awt.Window.dispatchEventImpl(Window.java:443)
	at java.awt.Component.dispatchEvent(Component.java:1704)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:63)

Exception occurred during event dispatching:
java.lang.NullPointerException
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:1544)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:1455)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:1383)
	at java.awt.Container.dispatchEventImpl(Container.java:922)
	at java.awt.Window.dispatchEventImpl(Window.java:443)
	at java.awt.Component.dispatchEvent(Component.java:1704)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:63)


SIGQUIT   3*   quit

Full thread dump:
    "Thread-9" (TID:0xed9cd5e8, sys_thread_t:0xecc01de0, state:CW) prio=5
	vrts.common.server.ServerInterface.run(ServerInterface.java:1244)
    "Thread-8" (TID:0xed9de430, sys_thread_t:0xecbd1de0, state:CW) prio=5
	vrts.common.server.ServerInterface.run(ServerInterface.java:1244)
    "Thread-7" (TID:0xed9e7f10, sys_thread_t:0xecd31de0, state:CW) prio=5
	vrts.common.server.ServerInterface.run(ServerInterface.java:1244)
    "thread applet-vrts.nbu.admin.Launch.class" (TID:0xed9dcfd8, sys_thread_t:0xeccd1de0, state:CW) prio=3
	sun.misc.Queue.dequeue(Queue.java:90)
	sun.misc.Queue.dequeue(Queue.java:74)
	sunw.hotjava.applet.AppletPanel.getNextEvent(AppletPanel.java:244)
	sunw.hotjava.applet.AppletPanel.run(AppletPanel.java:285)
	java.lang.Thread.run(Thread.java)
    "Thread-6" (TID:0xed9f2198, sys_thread_t:0xecd61de0, state:CW) prio=5
	vrts.common.server.ServerInterface.run(ServerInterface.java:1244)
    "Thread-5" (TID:0xed9c7b20, sys_thread_t:0xecee1de0, state:CW) prio=5
	vrts.common.server.ServerInterface.run(ServerInterface.java:1244)
    "Thread-4" (TID:0xed9ea4d8, sys_thread_t:0xecd91de0, state:CW) prio=5
	vrts.common.server.ServerInterface.run(ServerInterface.java:1244)
    "HotJava Applets" (TID:0xed9f1ca0, sys_thread_t:0xecca1de0, state:CW) prio=4
	sun.misc.Queue.dequeue(Queue.java:90)
	sun.misc.Queue.dequeue(Queue.java:74)
	sunw.hotjava.applet.AppletPanel$DocProtocolAppletThread.run(AppletPanel.java:937)
    "AWT-Finalizer" (TID:0xed9e7b08, sys_thread_t:0xecd01de0, state:CW) prio=9
	java.lang.Object.wait(Object.java)
	sun.awt.AWTFinalizer.run(AWTFinalizer.java:48)
    "Screen Updater" (TID:0xed9e76c0, sys_thread_t:0xecdc1de0, state:CW) prio=4
	java.lang.Object.wait(Object.java)
	sun.awt.ScreenUpdater.nextEntry(ScreenUpdater.java:78)
	sun.awt.ScreenUpdater.run(ScreenUpdater.java:98)
    "Alloc State Notifier" (TID:0xed9bc900, sys_thread_t:0xece51de0, state:CW) prio=9
	sun.misc.VMNotifierThread.run(VM.java)
    "Red Alloc State Notifier" (TID:0xed9bc8e0, sys_thread_t:0xece81de0, state:CW) prio=10
	sun.misc.VMNotifierThread.run(VM.java)
    "Request Processor" (TID:0xed9b8a00, sys_thread_t:0xeceb1de0, state:CW) prio=7
	java.lang.Object.wait(Object.java)
	sunw.hotjava.misc.RequestProcessor.run(RequestProcessor.java:120)
	java.lang.Thread.run(Thread.java)
    "AWT-Motif" (TID:0xed9b4368, sys_thread_t:0xecf11de0, state:CW) prio=5
	java.lang.Thread.run(Thread.java)
    "AWT-Input" (TID:0xed9b4348, sys_thread_t:0xecf41de0, state:CW) prio=5
    "AWT-EventQueue-0" (TID:0xed9b4330, sys_thread_t:0xecf71de0, state:CW) prio=5
	java.lang.Object.wait(Object.java)
	java.awt.EventQueue.getNextEvent(EventQueue.java:119)
	java.awt.EventDispatchThread.run(EventDispatchThread.java:55)
    "Finalizer thread" (TID:0xed998220, sys_thread_t:0xed211de0, state:CW) prio=1
    "Async Garbage Collector" (TID:0xed9981d8, sys_thread_t:0xed241de0, state:CW) prio=1
    "Idle thread" (TID:0xed998190, sys_thread_t:0xed271de0, state:R) prio=0 *current thread*
    "Clock" (TID:0xed9980d0, sys_thread_t:0xed3c1de0, state:CW) prio=12
    "main" (TID:0xed9980a8, sys_thread_t:0xa9070, state:CW) prio=5
Monitor Cache Dump:
    <unknown key> (0xed241de0): <unowned>
	Waiting to be notified:
	    "Async Garbage Collector"
    vrts.common.server.ServerInterface@ED9EA4D8/EDC69290: <unowned>
	Waiting to be notified:
	    "Thread-4"
    sun.awt.AWTFinalizer@ED9E7B08/EDB75038: <unowned>
	Waiting to be notified:
	    "AWT-Finalizer"
    sun.awt.motif.MToolkit@ED9B42B0/EDAD7670: <unowned>
	Waiting to be notified:
	    "AWT-Motif"
    vrts.common.server.ServerInterface@ED9E7F10/EDC03FD8: <unowned>
	Waiting to be notified:
	    "Thread-7"
    sun.misc.Queue@ED9DCE90/EDC2B718: <unowned>
	Waiting to be notified:
	    "thread applet-vrts.nbu.admin.Launch.class"
    vrts.common.server.ServerInterface@ED9C7B20/EDD22410: <unowned>
	Waiting to be notified:
	    "Thread-5"
    vrts.common.server.ServerInterface@ED9DE430/EDC89D38: <unowned>
	Waiting to be notified:
	    "Thread-8"
    sun.misc.VMNotifierThread@ED9BC900/EDB06200: <unowned>
	Waiting to be notified:
	    "Alloc State Notifier"
    vrts.common.server.ServerInterface@ED9CD5E8/EDCA24F8: <unowned>
	Waiting to be notified:
	    "Thread-9"
    vrts.common.server.ServerInterface@ED9F2198/EDB47878: <unowned>
	Waiting to be notified:
	    "Thread-6"
    sun.awt.ScreenUpdater@ED9E76C0/EDB745A8: <unowned>
	Waiting to be notified:
	    "Screen Updater"
    sun.misc.VMNotifierThread@ED9BC8E0/EDB06000: <unowned>
	Waiting to be notified:
	    "Red Alloc State Notifier"
    java.awt.EventQueue@ED9B42E0/EDAD7760: <unowned>
	Waiting to be notified:
	    "AWT-EventQueue-0"
    sun.misc.Queue@ED9F2938/EDC9AEC0: <unowned>
	Waiting to be notified:
	    "HotJava Applets"
    java.lang.Object@ED9B8A08/EDAC9930: <unowned>
	Waiting to be notified:
	    "Request Processor"
Registered Monitor Dump:
    Thread queue lock: <unowned>
	Waiting to be notified:
	    "main"
    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>
	Waiting to be notified:
	    "Finalizer thread"
    Monitor IO lock: <unowned>
    Child death monitor: <unowned>
    Event monitor: <unowned>
    I/O monitor: <unowned>
	Waiting to be notified:
	    "AWT-Input"
    Alarm monitor: <unowned>
	Waiting to be notified:
	    "Clock"
    Sbrk lock: <unowned>
    Monitor cache expansion lock: <unowned>
    Monitor registry: owner "Idle thread" (0xed271de0, 1 entry)
Thread Alarm Q:
    sys_thread_t 0xecf41de0   [Timeout in 7 ms]
    sys_thread_t 0xecbd1de0   [Timeout in 538 ms]
    sys_thread_t 0xecd61de0   [Timeout in 538 ms]
    sys_thread_t 0xecd91de0   [Timeout in 538 ms]
    sys_thread_t 0xecee1de0   [Timeout in 539 ms]
    sys_thread_t 0xecd31de0   [Timeout in 539 ms]
    sys_thread_t 0xed241de0   [Timeout in 743 ms]
    sys_thread_t 0xecc01de0   [Timeout in 929 ms]
(Review ID: 26019)
======================================================================

Comments
WORK AROUND Name: sg39081 Date: 03/25/98 None known ======================================================================
11-06-2004