You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
i used webcam-capture jar in my applet code to capture photo. when i run my applet code on web at first time it works, if i click refresh the page will get refresh and again if i click capture photo it is not working. please help me regarding this. i'm waiting for u r replay.
the below are the list of webcam-capture jar i tried.
basic: Removed progress listener: sun.plugin.util.ProgressMonitorAdapter@c115
basic: PluginMain.unregisterApplet: 9 from mananger sun.plugin2.applet.Applet2Manager@1a11f21
Exception in thread atomic-processor-1
Exception in thread webcam-updater-thread-1
java.lang.IllegalMonitorStateException
at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(Unknown Source)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(Unknown Source)
at java.util.concurrent.locks.ReentrantLock.unlock(Unknown Source)
at java.util.concurrent.LinkedBlockingQueue.take(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.IllegalMonitorStateException
at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(Unknown Source)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(Unknown Source)
at java.util.concurrent.locks.ReentrantLock.unlock(Unknown Source)
at java.util.concurrent.LinkedBlockingQueue.take(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
The text was updated successfully, but these errors were encountered:
Handling webcam in applet is really tricky - I found that it behaves in a completely different way if you compare it with the classic or webstart app (different lifecycle vs dependency on natives and hardware, especially problematic on Windows).
The problem you are facing is caused by the fact that JVM is restarting the applet before the close operation is completed. I suppose that solution in your case is to add:
Hi
i used webcam-capture jar in my applet code to capture photo. when i run my applet code on web at first time it works, if i click refresh the page will get refresh and again if i click capture photo it is not working. please help me regarding this. i'm waiting for u r replay.
the below are the list of webcam-capture jar i tried.
webcam-capture-0.3.10-RC6-dist.jar
webcam-capture-0.3.10-20140310.191743-24.jar
webcam-capture-0.3.10-RC6.jar
when i click refresh it throws below error.
The text was updated successfully, but these errors were encountered: