Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Target applet or JVM process exited abruptly

Tags:

java

jvm

applet

I'm getting message Target applet or JVM process exited abruptly sometimes and its not coming continuously so I can't trace the log before Java Console closes. I tried to increase heap size using

<PARAM name="java_arguments" value="-Xmx128m"> ,

<PARAM name="java_arguments" value="-Xmx300m"> ,

<PARAM name="java_arguments" value="-Xmx512m">

but its not working. Same question already asked. I also tried to load Applet in separate JVM using

<PARAM name="separate_jvm" value="true">

http://www.techques.com/question/1-11284843/uncaught-exception:-Target-applet-or-JVM-process-exited-abruptly---from-a-firefox-extension

uncaught exception: Target applet or JVM process exited abruptly - from a firefox extension

https://stackoverflow.com/questions/17676722/target-jvm-seems-to-have-already-exited

like image 770
Vicky Thakor Avatar asked Sep 13 '13 14:09

Vicky Thakor


1 Answers

If you can get your client to run the applet as fully trusted, there's several things you can do:

  1. Install a default exception handler, and have it send the exception information to you.
  2. Call System.setOut() and System.setErr() and send the results to you.
  3. Install shutdown hooks and a security manager to get told when the JVM is shutting down

Otherwise you might try:

  1. Creating a non-daemon thread and have it sleep forever, to try to prevent the applet from closing by having at least one thread active. (Having hardly any experience with applets, I'm not sure if this would work).
  2. Use the Java logging system and have the information be sent to you, in the hopes that the problem that causes the crash logs something right before the crash.
like image 139
Matthew Cline Avatar answered Oct 21 '22 03:10

Matthew Cline