Re: deadlocks

John White <JohnWhite-1VmriVQ4F2F8UrSeD/[email protected]>
Newsgroups gmane.comp.java.beanshell.devel
Message-ID <1083366064.19121.12713.camel@rei>
hi mark-

i'm not able to line up your stack trace line numbers with mine,
probably because i'm using a different JConsole, so i can't tell
exactly what's going on. but, i did some work on threading issues
with JConsole in the past. they haven't been merged into CVS yet,
so i attached my version of JConsole (zipped to get in under
sourceforge size limit). i'm not sure if i addressed the issue you're
having, but it might be worth a try. my version of JConsole has been
used by a large number of people for several months on several
different platforms without issue; although i know there is *always*
one more bug :)

john
 

On Fri, 2004-04-30 at 05:51, Mark Swanson wrote:

> 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)
> 
> 
> 
> 
> 
> 
>
JConsole.java.gz (application/x-gzip, 6.5 KB) - not displayed
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.