File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes Stop applet from running Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Stop applet from running" Watch "Stop applet from running" New topic

Stop applet from running

Jay Rammonds

Joined: Mar 03, 2013
Posts: 1

I have created an web application (jsp-servlet) that trigers some .jar applets.
I print the jars with the HTML tags through a servlet in the jsp.

Imagine two situations. A anb B.
Starting with A the jar runs.
I go to B, the 2nd jar replaces the first.
When I return back to A, the 2nd jar is removed but the first jar fails to start with a Adding same VBO twice + null pointer exception.

So I believe I have to stop it after leaving situation A.
Is there a way to stop the .jar from running from inside the servlet?

Added stacktrace:

Adding same VBO twice. Exception in thread "Animation Thread" P3D: Already called beginDraw(). java.lang.NullPointerException at jogamp.opengl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.jav‌​a:98) at jogamp.opengl.ThreadingImpl.invokeOnOpenGLThread( at at‌​1)
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
more info/replies here
Tony Docherty

Joined: Aug 07, 2007
Posts: 2839
Welcome to the Ranch.

Please BeForthrightWhenCrossPostingToOtherSites (← click)
I agree. Here's the link:
subject: Stop applet from running
It's not a secret anymore!