• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Stop applet from running

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Greetings

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(). 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)
 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
more info/replies here

http://www.javaprogrammingforums.com/whats-wrong-my-code/24908-stop-applet-running.html
 
Bartender
Posts: 3323
86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch.

Please BeForthrightWhenCrossPostingToOtherSites (← click)
 
Have you no shame? Have you no decency? Have you no tiny ad?
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic