File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes Applets not loading after updating to Java 1.5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Applets not loading after updating to Java 1.5" Watch "Applets not loading after updating to Java 1.5" New topic
Author

Applets not loading after updating to Java 1.5

Tom Katz
Ranch Hand

Joined: Aug 19, 2002
Posts: 169
I work on a webapp that consists of a frameset that loads two separate applets. The latest JDK support was 142.08. I"m updating the code to Java 5.

I built with JDK 1.5.0.09 and am running the server with a compatible JRE. Also, my client machine is running an updated JRE (same version).

But my applets aren't loading correctly, w/o any errors to point me in the right direction. One of them shows the Java 'loading' animation, and it doesn't go away.

I changed the EMBED tags of the applets to reflect the new JRE level.

Any hints/ideas/suggestions for me to try?

thanks,
Tom
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41634
    
  55
You said there were no error messssage, but just to clarify: no messages either in the browser status bar nor in teh Java Console? Can you see in your web server access logs whether all applet-related files are actually accessed successfully?

By the way, the server JVM version has no bearing on applet execution on the client.


Ping & DNS - my free Android networking tools app
Tom Katz
Ranch Hand

Joined: Aug 19, 2002
Posts: 169
The IE progress bar says the applet's started. I set some trace variables for the console output, but no errors, as far as I can tell (see below). The server logs just show that a client session has started.

Also, these applets are signed, if I hadn't mentioned that.


>>>>>>>>>>>>>>>>>>>>>>>>>>>


basic: Registered modality listener
liveconnect: Invoking JS method: document
basic: Registered modality listener
liveconnect: Invoking JS method: URL
basic: Referencing classloader: sun.plugin.ClassLoaderInfo@1ded0fd, refcount=1
liveconnect: Invoking JS method: document
liveconnect: Invoking JS method: URL
basic: Referencing classloader: sun.plugin.ClassLoaderInfo@1ded0fd, refcount=2
basic: Added progress listener: sun.plugin.util.GrayBoxPainter@578ceb
basic: Loading applet ...
basic: Initializing applet ...
basic: Starting applet ...
basic: Added progress listener: sun.plugin.util.GrayBoxPainter@1e0bc08
basic: Loading applet ...
basic: Initializing applet ...
basic: Starting applet ...
network: Connecting http://localhost:15007/cm/StatusApplet.jar with proxy=DIRECT
network: Connecting http://localhost:15007/cm/StatusApplet.jar with cookie "JSESSIONID=3ivfv0s6r2mto"
network: Connecting http://localhost:15007/cm/CmApplet.jar with proxy=DIRECT
network: Connecting http://localhost:15007/cm/CmApplet.jar with cookie "JSESSIONID=3ivfv0s6r2mto"
security: Loading Root CA certificates from C:\PROGRA~1\Java\JRE15~1.0_0\lib\security\cacerts
security: Loaded Root CA certificates from C:\PROGRA~1\Java\JRE15~1.0_0\lib\security\cacerts
security: Loading Deployment certificates from C:\Documents and Settings\tcates.TCT23W2K\Application Data\Sun\Java\Deployment\security\trusted.certs
security: Loaded Deployment certificates from C:\Documents and Settings\tcates.TCT23W2K\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: Loading certificates from Internet Explorer ROOT certificate store
security: Loaded certificates from Internet Explorer ROOT certificate store
security: Loading certificates from Internet Explorer TrustedPublisher certificate store
security: Loaded certificates from Internet Explorer TrustedPublisher certificate store
security: Checking if certificate is in Deployment permanent certificate store
basic: Modality pushed
basic: Modality pushed
basic: Modality popped
basic: Modality popped
network: Connecting http://localhost:15007/cm/search.png with proxy=DIRECT
network: Connecting http://localhost:15007/cm/search.png with cookie "JSESSIONID=3ivfv0s6r2mto"
network: Connecting http://localhost:15007/cm/search.png with proxy=DIRECT
network: Connecting http://localhost:15007/cm/search.png with cookie "JSESSIONID=3ivfv0s6r2mto"
network: Connecting socket://localhost:15006 with proxy=DIRECT
network: Connecting socket://localhost:15006 with proxy=DIRECT
Tom Katz
Ranch Hand

Joined: Aug 19, 2002
Posts: 169
I've got print statements in the init methods of my main app and it seems to stop at the constructor for a subclass of JTree. All the constructor does is call super(model). model is implementing TreeModel.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applets not loading after updating to Java 1.5