Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Applet using JNLP: messages in Java console

I am displaying applet using JNLP. I have written all the necessary files. The jars are signed. Even applet is loading fine. I am getting lots of messages in Java console which are contributing to delay in applet loading.

basic: JNLP2ClassLoader.findClass: pack.XMLDropDown$1: try again ..
basic: JNLP2ClassLoader.findClass: pack.XMLDropDown$2: try again ..
basic: JNLP2ClassLoader.findClass: pack.XMLDropDown$3: try again ..
basic: JNLP2ClassLoader.findClass: pack.XMLDropDown$4: try again ..
basic: JNLP2ClassLoader.findClass: pack.XMLComboBoxModel: try again ..
basic: JNLP2ClassLoader.findClass: pack.XMLToolTipManager: try ..
...so on.

Lots of messages in Java console.

PS. Applet is working fine. Just wanted to know the cause for try again messages.

like image 861
Samra Avatar asked Feb 18 '11 10:02

Samra


2 Answers

It's worth noting that although initially confusing, this trace logging can be useful.

To interpret the output:

  • If you see a class mentioned once, that is expected, and the try again part didn't happen, because it was loaded on the first attempt
  • If a class is listed on two consecutive lines, that means it was unable to be loaded and the thread of execution has been killed (your class may stop executing half way through a method)

This output could be much clearer, but having recently hit this issue, I'm glad at least something was printed

like image 59
Stan Kurdziel Avatar answered Nov 12 '22 03:11

Stan Kurdziel


Try unchecking "Enable tracing" in your Java Preferences (Advanced -> Debugging -> Enable Tracing). That worked for me. On Mac, there's an app to set Java Preferences in your Utilities folder (Applications -> Utilities).

like image 2
dB' Avatar answered Nov 12 '22 03:11

dB'