Java applet problem
818249Nov 24 2010 — edited Nov 30 2010I have an applet which has three modes.It opens the wanted mode according to parameter given.The applet opens in a jquery popup on the web site.The problem is
when I opened browser and call the related mode from the menu, the applet opens well and after closing popup the applet is destroyed but when I call it again from the menu it freezes.The related logs on the java console are like below:
In the first call
Java Plug-in 1.6.0_22
Using JRE version 1.6.0_22-b04 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Administrator
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws
security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.deploy
security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.deploy
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.definition value null
security: property package.definition new value com.sun.javaws
security: property package.definition value com.sun.javaws
security: property package.definition new value com.sun.javaws,com.sun.deploy
security: property package.definition value com.sun.javaws,com.sun.deploy
security: property package.definition new value com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
security: property package.definition value com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.definition new value com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
basic: Added progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@1ca5df9
basic: Plugin2ClassLoader.addURL parent called for http://192.168.15.110/dev/plugins/create_message/ortana_applet.jar
network: Cache entry not found [url: http://192.168.15.110/dev/plugins/create_message/ortana_applet.jar, version: null]
network: Connecting http://192.168.15.110/dev/plugins/create_message/ortana_applet.jar with proxy=DIRECT
network: Connecting http://192.168.15.110:80/ with proxy=DIRECT
network: Connecting http://192.168.15.110/dev/plugins/create_message/ortana_applet.jar with cookie "PHPSESSID=sep5ppgqhgd96kuavq85upuph3"
network: Downloading resource: http://192.168.15.110/dev/plugins/create_message/ortana_applet.jar
Content-Length: 662.972
Content-Encoding: null
network: CleanupThread used 123316 us
network: Wrote URL http://192.168.15.110/dev/plugins/create_message/ortana_applet.jar to File C:\Documents and Settings\Administrator\Application Data\Sun\Java\Deployment\cache\6.0\23\2804c017-52c1a5a2-temp
security: Blacklist revocation check is enabled
security: Trusted libraries list check is enabled
network: CleanupThread used 5 us
security: Accessing keys and certificate in Mozilla user profile: null
security: Loading Root CA certificates from C:\Program Files\Java\jre6\lib\security\cacerts
security: Loaded Root CA certificates from C:\Program Files\Java\jre6\lib\security\cacerts
security: Loading Deployment certificates from C:\Documents and Settings\Administrator\Application Data\Sun\Java\Deployment\security\trusted.certs
security: Loaded Deployment certificates from C:\Documents and Settings\Administrator\Application Data\Sun\Java\Deployment\security\trusted.certs
security: Loading certificates from Deployment session certificate store
security: Loaded certificates from Deployment session certificate store
security: Validate the certificate chain using CertPath API
security: Obtain certificate collection in Root CA certificate store
security: Obtain certificate collection in Root CA certificate store
security: Start to check whether root CA is replaced
security: The root CA hasnt been replaced
security: No timestamping info available
security: Found jurisdiction list file
security: No need to checking trusted extension for this certificate
security: The CRL support is disabled
security: The OCSP support is disabled
security: This OCSP End Entity validation is disabled
security: Checking if certificate is in Deployment denied certificate store
security: Checking if certificate is in Deployment permanent certificate store
basic: updateValidationResultsForApplet update
cache: Mark prevalidated: http://192.168.15.110/dev/plugins/create_message/ortana_applet.jar true tm=1290597359281 cert=1295963101000
basic: Plugin2ClassLoader.getPermissions CeilingPolicy allPerms
basic: Applet loaded.
basic: Applet resized and added to parent container
basic: PERF: AppletExecutionRunnable - applet.init() BEGIN ; jvmLaunch dt 342550 us, pluginInit dt 3404349 us, TotalTime: 3746899 us
network: Connecting http://192.168.15.110/dev/plugins/create_message/load_message.php?q=getVmsInfo with proxy=DIRECT
network: Connecting http://192.168.15.110:80/ with proxy=DIRECT
network: Connecting http://192.168.15.110/dev/plugins/create_message/load_message.php?q=getVmsInfo with cookie "PHPSESSID=sep5ppgqhgd96kuavq85upuph3"
Applet initalized...
basic: Applet initialized
basic: Removed progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@1ca5df9
basic: Applet made visible
basic: Starting applet
basic: completed perf rollup
Applet starting...
basic: Applet started
basic: Told clients applet is started
After closing popup
Applet stoping...
Applet being destroyed...
basic: Finished applet teardown
but JVM process still work until browser closed.
After calling the applet again:
basic: Added progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@1939100
basic: Plugin2ClassLoader.addURL parent called for http://192.168.15.110/dev/plugins/create_message/ortana_applet.jar
basic: Applet loaded.
basic: Applet resized and added to parent container
basic: PERF: AppletExecutionRunnable - applet.init() BEGIN ; jvmLaunch dt 342550 us, pluginInit dt 89413963 us, TotalTime: 89756513 us
network: Connecting http://192.168.15.110/dev/plugins/create_message/ortana_applet.jar with proxy=DIRECT
network: Connecting http://192.168.15.110:80/ with proxy=DIRECT
network: Connecting http://192.168.15.110/dev/plugins/create_message/ortana_applet.jar with cookie "PHPSESSID=sep5ppgqhgd96kuavq85upuph3"
network: Connecting http://192.168.15.110/dev/plugins/create_message/ortana_applet.jar with proxy=DIRECT
network: Connecting http://192.168.15.110:80/ with proxy=DIRECT
network: Connecting http://192.168.15.110/dev/plugins/create_message/ortana_applet.jar with cookie "PHPSESSID=sep5ppgqhgd96kuavq85upuph3"
network: Connecting http://192.168.15.110/dev/plugins/create_message/ortana_applet.jar with proxy=DIRECT
network: Connecting http://192.168.15.110:80/ with proxy=DIRECT
network: Connecting http://192.168.15.110/dev/plugins/create_message/ortana_applet.jar with cookie "PHPSESSID=sep5ppgqhgd96kuavq85upuph3"
network: Connecting http://192.168.15.110/dev/plugins/create_message/ortana_applet.jar with proxy=DIRECT
network: Connecting http://192.168.15.110:80/ with proxy=DIRECT
network: Connecting http://192.168.15.110/dev/plugins/create_message/ortana_applet.jar with cookie "PHPSESSID=sep5ppgqhgd96kuavq85upuph3"
network: Connecting http://192.168.15.110/dev/plugins/create_message/ortana_applet.jar with proxy=DIRECT
network: Connecting http://192.168.15.110:80/ with proxy=DIRECT
network: Connecting http://192.168.15.110/dev/plugins/create_message/ortana_applet.jar with cookie "PHPSESSID=sep5ppgqhgd96kuavq85upuph3"
network: Connecting http://192.168.15.110/dev/plugins/create_message/ortana_applet.jar with proxy=DIRECT
network: Connecting http://192.168.15.110:80/ with proxy=DIRECT
network: Connecting http://192.168.15.110/dev/plugins/create_message/ortana_applet.jar with cookie "PHPSESSID=sep5ppgqhgd96kuavq85upuph3"
.
.
.
the applet freezes
The javascript code that I call applet is below:
$('#create_message_main').children().remove();
$('#create_message_main').append( '<applet name ="ortanaApplet" code="com.ortana.editor.Editor.class" width="512" height="400" archive="plugins/create_message/ortana_applet.jar">'+
'<PARAM NAME=par0 VALUE='+create_message_parameter+'>'+
'<PARAM NAME="cache_option" VALUE="Yes"> '+
'</applet>');
I remove the code in the create_message_main div when mode changes then add the applet code into div again with changed parameter.If the calling type is the reasen for problem how can update applet with changing parameters.Thanks for your replies.