Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Stop applet from running

  1. #1
    Junior Member
    Join Date
    Mar 2013
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Stop applet from running

    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?

    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.invokeOnOpenG LThread(AWTThreadingPlugin.jav*​a:98) at jogamp.opengl.ThreadingImpl.invokeOnOpenGLThread(T hreadingImpl.java:196) at javax.media.opengl.Threading.invokeOnOpenGLThread( Threading.java:164) at javax.media.opengl.awt.GLCanvas.maybeDoSingleThrea dedWorkaround(GLCanvas.java:83*​1)


  2. #2
    Super Moderator curmudgeon's Avatar
    Join Date
    Aug 2012
    Posts
    1,130
    My Mood
    Cynical
    Thanks
    64
    Thanked 140 Times in 135 Posts

    Default Re: Stop applet from running

    This is a duplicate of another question on this site and thus has been closed. Poster -- please only post your question once on this site, and please notify us of any cross-posts on other sites as well for good forum etiquette.

Similar Threads

  1. Stop applet from running
    By lemanou in forum What's Wrong With My Code?
    Replies: 7
    Last Post: March 3rd, 2013, 01:45 PM
  2. [SOLVED] Java Applet not running
    By jdcb92 in forum Java Applets
    Replies: 9
    Last Post: May 16th, 2012, 07:48 PM
  3. Error while running Applet
    By rameshiit19 in forum What's Wrong With My Code?
    Replies: 8
    Last Post: August 1st, 2011, 04:02 AM
  4. I cannot get this loop to stop running. What am I doing wrong??
    By Nismoz3255 in forum Loops & Control Statements
    Replies: 2
    Last Post: May 1st, 2011, 10:28 PM
  5. Replies: 4
    Last Post: April 27th, 2010, 01:18 AM

Tags for this Thread