AnsweredAssumed Answered

UI Thread blocked

Question asked by vincent on Mar 10, 2011
Latest reply on Mar 10, 2011 by vincent

I am adding video chat panel which embed a flash in a web browser to the chat room.And I use red5 for flash video/audio server.

It done well except the ui thread blocked sometimes.

Use the jstack to check the EventQueue.May be these are the problem:

"AWT-EventQueue-1" prio=6 tid=0x04471c00 nid=0x13d0 in Object.wait() [0x05b6f000]

   java.lang.Thread.State: WAITING (on object monitor)

          at java.lang.Object.wait(Native Method)

          at java.lang.Object.wait(Object.java:485)

          at org.jdesktop.jdic.browser.WebBrowser.waitForResult(Unknown Source)

          - locked <0x28c71c30> (a org.jdesktop.jdic.browser.WebBrowser)

          at org.jdesktop.jdic.browser.WebBrowser.getURL(Unknown Source)

          at org.jivesoftware.spark.component.browser.NativeBrowserViewer.downloadCompleted( NativeBrowserViewer.java:80)

          at org.jdesktop.jdic.browser.WebBrowser.dispatchWebBrowserEvent(Unknown Source)

          at org.jdesktop.jdic.browser.internal.NativeEventThread$3.run(Unknown Source)

          at java.awt.event.InvocationEvent.dispatch(Unknown Source)

          at java.awt.EventQueue.dispatchEvent(Unknown Source)

          at org.jivesoftware.sparkimpl.plugin.idle.UserIdlePlugin$2.dispatchEvent(UserIdleP lugin.java:161)

          at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

          at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

          at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

          at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

          at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

          at java.awt.EventDispatchThread.run(Unknown Source)

 

But I amnot sure about this.Could anybody explain this for me.And help me to resolve this problem?

 

Thanks in advanced.

Outcomes