This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes A bug of JMF(when JMF is playing video, InterruptedException occurs ...) ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "A bug of JMF(when JMF is playing video, InterruptedException occurs ...) ?" Watch "A bug of JMF(when JMF is playing video, InterruptedException occurs ...) ?" New topic
Author

A bug of JMF(when JMF is playing video, InterruptedException occurs ...) ?

Tom Wang
Greenhorn

Joined: Apr 01, 2006
Posts: 9
A bug of JMF(when JMF is playing video, InterruptedException occurs after the "refresh" button of IE is clicked)?

problem description:
1. I modified the MediaPlayerSample.java of JMF_samples, to see how does it work. However, when JMF is playing video, InterruptedException occurs after the

"refresh" button of IE is clicked:
MediaNode event thread java.lang.InterruptedException
Timer: timeLoop() wait interrupted java.lang.InterruptedException
Timer: timeLoop() wait interrupted java.lang.InterruptedException
Timer: timeLoop() wait interrupted java.lang.InterruptedException
Timer: timeLoop() wait interrupted java.lang.InterruptedException
MediaNode event thread java.lang.InterruptedException
java.lang.ThreadDeath
at java.lang.Thread.stop(Unknown Source)
at java.lang.ThreadGroup.stopOrSuspend(Unknown Source)
at java.lang.ThreadGroup.stop(Unknown Source)
at sun.awt.AppContext.dispose(Unknown Source)
at sun.applet.AppletClassLoader.release(Unknown Source)
at sun.plugin.security.PluginClassLoader.release(Unknown Source)
at sun.applet.AppletPanel.release(Unknown Source)
at sun.applet.AppletPanel.sendEvent(Unknown Source)
at sun.plugin.AppletViewer.onPrivateClose(Unknown Source)
at sun.plugin.AppletViewer$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
2. I tried Firefox but this exception didn't appear.
I searched in google but found nothing about this problem.

My questions are:
1. Is it a bug of JMF or IE?
2. If it is a bug of JMF, how to correct it?

Thanks in advance!

The URL is http://www.cs.ualberta.ca/~taowang/test_jmf/MediaPlayerSample.html
The Java code is available at http://www.cs.ualberta.ca/~taowang/test_jmf/MediaPlayerSample.java
The AVI file is at http://www.cs.ualberta.ca/~taowang/test_jmf/1.avi
Tom Wang
Greenhorn

Joined: Apr 01, 2006
Posts: 9
To correct this problem, I changed the deallocate() to close() in method destroy()
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: A bug of JMF(when JMF is playing video, InterruptedException occurs ...) ?
 
Similar Threads
one problem with SimplePlayerApplet.java (JMF sample code)
Control Digital Camera
Quest : Interrupt, isInterrupted, interrupted
The control panel strip of MediaPlayer is blank when content is playing
CiscoWorks and java applets