[Bug 2051] Connecting to a iTech KVM I received the following error.

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Tue Oct 28 18:43:42 UTC 2014


http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2051

--- Comment #1 from Jie Kang <jkang at redhat.com> ---
(In reply to Henry from comment #0)
> Connecting to a  iTech KVM I received the following error.
> 
> IcedTea-Web Plugin version: 1.4.2 (rhel-1.el7-x86_64)
> Mon Oct 27 10:31:07 EDT 2014
> net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not
> initialize applet. For more information click "more information button".
> 	at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:746)
> 	at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:673)
> 	at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:930)
> Caused by: net.sourceforge.jnlp.LaunchException: Fatal: Application Error:
> Unknown Main-Class. Could not determine the main class for this application.
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.
> initializeResources(JNLPClassLoader.java:725)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:268)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.createInstance(JNLPClassLoader.
> java:403)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.
> java:465)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.
> java:441)
> 	at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:711)
> 	... 2 more
> 
>  Chain: 
> 1) at Mon Oct 27 10:29:46 EDT 2014
> net.sourceforge.jnlp.LaunchException: Fatal: Application Error: Unknown
> Main-Class. Could not determine the main class for this application.
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.
> initializeResources(JNLPClassLoader.java:725)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:268)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.createInstance(JNLPClassLoader.
> java:403)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.
> java:465)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.
> java:441)
> 	at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:711)
> 	at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:673)
> 	at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:930)
> 2) at Mon Oct 27 10:29:46 EDT 2014
> net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not
> initialize applet. For more information click "more information button".
> 	at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:746)
> 	at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:673)
> 	at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:930)
> Caused by: net.sourceforge.jnlp.LaunchException: Fatal: Application Error:
> Unknown Main-Class. Could not determine the main class for this application.
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.
> initializeResources(JNLPClassLoader.java:725)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:268)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.createInstance(JNLPClassLoader.
> java:403)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.
> java:465)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.
> java:441)
> 	at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:711)
> 	... 2 more
> 3) at Mon Oct 27 10:29:46 EDT 2014
> net.sourceforge.jnlp.LaunchException: Fatal: Application Error: Unknown
> Main-Class. Could not determine the main class for this application.
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.
> initializeResources(JNLPClassLoader.java:725)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:268)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.createInstance(JNLPClassLoader.
> java:403)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.
> java:465)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.
> java:441)
> 	at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:711)
> 	at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:673)
> 	at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:930)
> 4) at Mon Oct 27 10:29:46 EDT 2014
> net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not
> initialize applet. For more information click "more information button".
> 	at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:746)
> 	at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:673)
> 	at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:930)
> Caused by: net.sourceforge.jnlp.LaunchException: Fatal: Application Error:
> Unknown Main-Class. Could not determine the main class for this application.
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.
> initializeResources(JNLPClassLoader.java:725)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:268)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.createInstance(JNLPClassLoader.
> java:403)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.
> java:465)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.
> java:441)
> 	at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:711)
> 	... 2 more
> 5) at Mon Oct 27 10:31:05 EDT 2014
> net.sourceforge.jnlp.LaunchException: Fatal: Application Error: Unknown
> Main-Class. Could not determine the main class for this application.
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.
> initializeResources(JNLPClassLoader.java:725)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:268)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.createInstance(JNLPClassLoader.
> java:403)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.
> java:465)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.
> java:441)
> 	at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:711)
> 	at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:673)
> 	at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:930)
> 6) at Mon Oct 27 10:31:05 EDT 2014
> net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not
> initialize applet. For more information click "more information button".
> 	at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:746)
> 	at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:673)
> 	at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:930)
> Caused by: net.sourceforge.jnlp.LaunchException: Fatal: Application Error:
> Unknown Main-Class. Could not determine the main class for this application.
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.
> initializeResources(JNLPClassLoader.java:725)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:268)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.createInstance(JNLPClassLoader.
> java:403)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.
> java:465)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.
> java:441)
> 	at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:711)
> 	... 2 more
> 7) at Mon Oct 27 10:31:29 EDT 2014
> net.sourceforge.jnlp.LaunchException: Fatal: Application Error: Unknown
> Main-Class. Could not determine the main class for this application.
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.
> initializeResources(JNLPClassLoader.java:725)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:268)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.createInstance(JNLPClassLoader.
> java:403)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.
> java:465)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.
> java:441)
> 	at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:711)
> 	at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:673)
> 	at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:930)
> 8) at Mon Oct 27 10:31:29 EDT 2014
> net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not
> initialize applet. For more information click "more information button".
> 	at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:746)
> 	at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:673)
> 	at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:930)
> Caused by: net.sourceforge.jnlp.LaunchException: Fatal: Application Error:
> Unknown Main-Class. Could not determine the main class for this application.
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.
> initializeResources(JNLPClassLoader.java:725)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.<init>(JNLPClassLoader.java:268)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.createInstance(JNLPClassLoader.
> java:403)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.
> java:465)
> 	at
> net.sourceforge.jnlp.runtime.JNLPClassLoader.getInstance(JNLPClassLoader.
> java:441)
> 	at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:711)
> 	... 2 more
> ---------------------------------------------------------------------------
> 
> [root at Extreme ~]# javaws -verbose [problem JNLP file] 2>&1 | tee javaws.log
> java.io.FileNotFoundException: /root/.icedtea/deployment.properties (No such
> file or directory)
> 	at java.io.FileInputStream.open(Native Method)
> 	at java.io.FileInputStream.<init>(FileInputStream.java:146)
> 	at java.io.FileReader.<init>(FileReader.java:72)
> 	at
> net.sourceforge.jnlp.config.DeploymentConfiguration.
> parsePropertiesFile(DeploymentConfiguration.java:619)
> 	at
> net.sourceforge.jnlp.config.DeploymentConfiguration.
> findSystemConfigFile(DeploymentConfiguration.java:434)
> 	at
> net.sourceforge.jnlp.config.DeploymentConfiguration.
> load(DeploymentConfiguration.java:246)
> 	at
> net.sourceforge.jnlp.config.DeploymentConfiguration.
> load(DeploymentConfiguration.java:215)
> 	at
> net.sourceforge.jnlp.runtime.JNLPRuntime$DeploymentConfigurationHolder.
> initConfiguration(JNLPRuntime.java:392)
> 	at
> net.sourceforge.jnlp.runtime.JNLPRuntime$DeploymentConfigurationHolder.
> <clinit>(JNLPRuntime.java:387)
> 	at
> net.sourceforge.jnlp.runtime.JNLPRuntime.getConfiguration(JNLPRuntime.java:
> 412)
> 	at net.sourceforge.jnlp.runtime.JNLPRuntime.initialize(JNLPRuntime.java:186)
> 	at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:186)
> 	at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:53)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:177)
> No User level deployment.properties found.
> Starting security dialog thread
> Using firefox's profiles file: /root/.mozilla/firefox/profiles.ini
> Found preferences file: /root/.mozilla/firefox/uibvm5in.default/prefs.js
> Read 62 entries from Firefox's preferences
> JNLP file location: file]
> call privileged method: getCodeBase
>         result: null
> netx: Invalid jnlp file file]

Hello,

Looking at the logs I see two things of note:

1: Invalid JNLP file

The JNLP file may be invalid or the parser is not parsing correctly.

Would it be possible for you to update to Icedtea-Web 1.5x (latest stable
release) and try again? There were a number of parser updates between 1.4x and
1.5x that may solve the issue.

If possible, looking at the jnlp file, or a reproducer with a similar setup to
the jnlp file in regards to how the main class is defined would make it much
easier to find the problem.


2: LauncherException (Unknown Main Class)

This can be caused by quite a number of issues.

Could you enable debugging and the java console, reattempt the connection, and
submit the logs? More information would make it much easier to pinpoint the
issue.

To enable debugging and the console, open 'itweb-settings' and enter the
'Debugging' tab. There should be a checkbox to enable debugging and a dropdown
menu to 'Show Console on Startup'.

After doing these things, reattempting the applet should cause a java console
to appear which will print more verbose logs. There should be an option there
to copy the logs to clipboard and then you can paste them here.


Regards,

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20141028/750b0dac/attachment-0001.html>


More information about the distro-pkg-dev mailing list