How to stop a jar file from running from a jsp

巧了我就是萌 提交于 2019-12-12 03:40:28

问题


I have created an web application that trigers some .jar applets.
I print the jars with the HTML tags through a servlet in a 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 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?

Thanks in advance.

Added stacktrace:

Adding same VBO twice. Exception in thread "Animation Thread" P3D: Already called beginDraw(). javax.media.opengl.GLException: java.lang.NullPointerException at jogamp.opengl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.jav‌​a:98) at jogamp.opengl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:196) at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:164) at javax.media.opengl.awt.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:83‌​1)

来源:https://stackoverflow.com/questions/15173904/how-to-stop-a-jar-file-from-running-from-a-jsp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!