deadlocks

Mark Swanson <mark-e2GstmqqWGa5mcYau+xr2AC/[email protected]>
Newsgroups gmane.comp.java.beanshell.devel
Organization Web Service Solutions, Inc.
Message-ID <[email protected]>
I'm seeing deadlocks when I start bsh sometimes. The deadlocks are occuring 
here (and below). The bug is that you are not using the SwingWorker to ensure 
your Swing changes are happening only in the Swing thread. If no one patches 
this today I'll fix it tonight.
Cheers.

"AWT-EventQueue-0" prio=1 tid=0x08065988 nid=0x1b4b waiting for monitor entry 
[4daa5000..4daa6854]
        at java.awt.Component.invalidate(Component.java:2117)
        - waiting to lock <0x44c5db90> (a java.awt.Component$AWTTreeLock)
        at java.awt.Container.invalidate(Container.java:1038)
        at javax.swing.JComponent.revalidate(JComponent.java:4389)
        at 
javax.swing.plaf.basic.BasicTextUI$RootView.preferenceChanged(BasicTextUI.java:1291)
        at javax.swing.text.View.preferenceChanged(View.java:302)
        at javax.swing.text.BoxView.preferenceChanged(BoxView.java:268)
        at javax.swing.text.View.preferenceChanged(View.java:302)
        at javax.swing.text.BoxView.preferenceChanged(BoxView.java:268)
        at javax.swing.text.View.preferenceChanged(View.java:302)
        at javax.swing.text.View.preferenceChanged(View.java:302)
        at javax.swing.text.GlyphView.insertUpdate(GlyphView.java:854)
        at javax.swing.text.View.forwardUpdateToView(View.java:1217)
        at 
javax.swing.text.FlowView$LogicalView.forwardUpdateToView(FlowView.java:738)
        at javax.swing.text.View.forwardUpdate(View.java:1192)
        at javax.swing.text.View.insertUpdate(View.java:716)
        at javax.swing.text.FlowView.insertUpdate(FlowView.java:236)
        at javax.swing.text.View.forwardUpdateToView(View.java:1217)
        at javax.swing.text.View.forwardUpdate(View.java:1192)
        at javax.swing.text.BoxView.forwardUpdate(BoxView.java:222)
        at javax.swing.text.View.insertUpdate(View.java:716)
        at 
javax.swing.plaf.basic.BasicTextUI$RootView.insertUpdate(BasicTextUI.java:1487)
        at 
javax.swing.plaf.basic.BasicTextUI$UpdateHandler.insertUpdate(BasicTextUI.java:1726)
        at 
javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:184)
        at 
javax.swing.text.AbstractDocument.handleInsertString(AbstractDocument.java:749)
        at 
javax.swing.text.AbstractDocument.insertString(AbstractDocument.java:706)
        at 
javax.swing.text.AbstractDocument.replace(AbstractDocument.java:668)
        at javax.swing.JTextPane.replaceSelection(JTextPane.java:186)
        at javax.swing.JTextPane.replaceSelection(JTextPane.java:153)
        at bsh.util.JConsole.append(JConsole.java:373)
        at bsh.util.JConsole.access$300(JConsole.java:63)

SECOND SPOT:
        at java.awt.Container.validateTree(Container.java:1099)
        at java.awt.Container.validate(Container.java:1067)
        - locked <0x44c5db90> (a java.awt.Component$AWTTreeLock)
        at java.awt.Window.show(Window.java:461)
        at java.awt.Component.show(Component.java:1133)
        at java.awt.Component.setVisible(Component.java:1088)
        at JWSTest.test(JWSTest.java:34)
        at JWSTest.main(JWSTest.java:15)








-- 
VoIP SIP:[email protected]
Free calendar client and server - works with Exchange/Outlook/Yahoo!
TV-Listing and Weather Schedules
http://www.ScheduleWorld.com/
http://www.ScheduleWorld.com/sw/ScheduleWorld.jnlp (JWS)


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.