thread hangs in windows XP with JRE 1.5
843805Aug 18 2006 — edited Aug 18 2006My java application hangs in a windows xp machine with jre 1.5. But it works fine in windows 2000 and in some other windows xp machine.
I am doing UI updates(like custom listmodels) inside the user spawn thread. I read from forums that we need to use SwingUtilities.invokeLater() in such cases. But how it then works in some windows xp machines and windows 2000 ? Am I missing anything.
Here is the thread dump :
Full thread dump Java HotSpot(TM) Client VM (1.5.0-b64 mixed mode, sharing):
"Image Animator 3" daemon prio=4 tid=0x038bab90 nid=0x9cc waiting on condition [
0x0378f000..0x0378fbe8]
at java.lang.Thread.sleep(Native Method)
at sun.awt.image.GifFrame.dispose(Unknown Source)
at sun.awt.image.GifImageDecoder.readImage(Unknown Source)
at sun.awt.image.GifImageDecoder.produceImage(Unknown Source)
at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source)
at sun.awt.image.ImageFetcher.fetchloop(Unknown Source)
at sun.awt.image.ImageFetcher.run(Unknown Source)
"Thread-17" prio=7 tid=0x038baa10 nid=0x9a4 waiting for monitor entry [0x0311f00
0..0x0311fc68]
at java.awt.Component.setFont(Unknown Source)
- waiting to lock <0x17e98810> (a java.awt.Component$AWTTreeLock)
at java.awt.Container.setFont(Unknown Source)
at javax.swing.JComponent.setFont(Unknown Source)
at javax.swing.plaf.basic.BasicComboBoxRenderer.getListCellRendererCompo
nent(Unknown Source)
at javax.swing.plaf.basic.BasicListUI.updateLayoutState(Unknown Source)
at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(Unknown Sou
rce)