Detect why an applet fials to load

S

SPG

Hi,

We have an applet which is not loading on some systems.
We suspect it is a security issue, but cannot be sure as of yet.

Is there any way of programatically trapping the failure so we can log it
somewhere?

Cheers,

Steve
 
M

Martin Honnen

SPG said:
We have an applet which is not loading on some systems.
We suspect it is a security issue, but cannot be sure as of yet.

Is there any way of programatically trapping the failure so we can log it
somewhere?

the Java console should show why the applet fails to load, try a Java
group for details
 
S

SPG

Hi,

Actually, I need to detect it on the page at runtime..

I need to be able to determine at runtime that a user has rejected a
certificate on our applet.
In th econsole window it reports the following:

Skipping CAB: Test.cab
due to: java.lang.Error: User rejected the CAB.
java.lang.ClassNotFoundException: TestApplet
at com/ms/vm/loader/URLClassLoader.loadClass (URLClassLoader.java)
at com/ms/vm/loader/URLClassLoader.loadClass (URLClassLoader.java)
at com/ms/applet/AppletPanel.securedClassLoad (AppletPanel.java)
at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.run (AppletPanel.java)
at java/lang/Thread.run (Thread.java)


But, I am not sure as to where I can catch this error..
Would it be possible in either the applet or perhaps in javascript?

Thanks in advance,

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top