Seite 1 von 1

Trouble running the JNLP file on Fedora Linux

Verfasst: Fr Jul 30, 2021 5:35 pm
von kris545545
Hello

I am having trouble running the JNLP file on Fedora Linux. Icedtea-web says the JNLP file is not correct XML.

Icedtea-web GUI error:

Code: Alles auswählen

net.sourceforge.jnlp.LaunchException: Fatal: Read Error: Could not read or parse the JNLP file at 'file:/mnt/data3/Desktop/sts-kris5(1).jnlp'. You can try to download this file manually and send it as bug report to IcedTea-Web team.
	at net.sourceforge.jnlp.Launcher.fromUrl(Launcher.java:331)
	at net.sourceforge.jnlp.Launcher.launch(Launcher.java:191)
	at net.sourceforge.jnlp.runtime.Boot.launch(Boot.java:355)
	at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:335)
	at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:73)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at net.sourceforge.jnlp.runtime.Boot.runMain(Boot.java:279)
	at net.sourceforge.jnlp.runtime.Boot.mainWithReturnCode(Boot.java:132)
	at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:114)
Caused by: net.adoptopenjdk.icedteaweb.xmlparser.ParseException: Root element is not a jnlp element.
	at net.sourceforge.jnlp.Parser.<init>(Parser.java:246)
	at net.sourceforge.jnlp.JNLPFile.parse(JNLPFile.java:729)
	at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:252)
	at net.sourceforge.jnlp.JNLPFileFactory.create(JNLPFileFactory.java:80)
	at net.sourceforge.jnlp.JNLPFileFactory.create(JNLPFileFactory.java:63)
	at net.sourceforge.jnlp.Launcher.fromUrl(Launcher.java:322)
	... 8 more
Terminal output:

Code: Alles auswählen

[kris@DESKTOP ~]$ javaws Downloads/sts-kris5.jnlp 
selected jre: /usr/lib/jvm/jre-11-openjdk
WARNING: package javax.jnlp not in java.desktop
[ITW-CORE][2021-07-30 17:25:24.432 CEST][INFO ][net.sourceforge.jnlp.runtime.EnvironmentPrinter] OpenWebStartLauncher called with args: [Downloads/sts-kris5.jnlp].
[ITW-CORE][2021-07-30 17:25:24.432 CEST][INFO ][net.sourceforge.jnlp.runtime.EnvironmentPrinter] OS: Linux
[ITW-CORE][2021-07-30 17:25:24.432 CEST][INFO ][net.sourceforge.jnlp.runtime.EnvironmentPrinter] Java Runtime Red Hat, Inc.-11.0.11
[ITW-CORE][2021-07-30 17:25:24.697 CEST][INFO ][net.sourceforge.jnlp.config.DeploymentConfiguration] Ico provider registered correctly.
[ITW-CORE][2021-07-30 17:25:24.715 CEST][ERROR][net.sourceforge.jnlp.config.DeploymentConfiguration]
Failed to parse property file /home/kris/.config/icedtea-web/deployment.properties
java.io.FileNotFoundException: /home/kris/.config/icedtea-web/deployment.properties (No such file or directory)
	at java.base/java.io.FileInputStream.open0(Native Method)
	at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
	at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
	at java.base/java.io.FileInputStream.<init>(FileInputStream.java:112)
	at java.base/sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:86)
	at java.base/sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:184)
	at net.adoptopenjdk.icedteaweb.http.CloseableConnection.getInputStream(CloseableConnection.java:58)
	at net.sourceforge.jnlp.config.DeploymentConfiguration.parsePropertiesFile(DeploymentConfiguration.java:579)
	at net.sourceforge.jnlp.config.DeploymentConfiguration.findSystemConfigFile(DeploymentConfiguration.java:393)
	at net.sourceforge.jnlp.config.DeploymentConfiguration.loadSystemProperties(DeploymentConfiguration.java:232)
	at net.sourceforge.jnlp.config.DeploymentConfiguration.load(DeploymentConfiguration.java:190)
	at net.sourceforge.jnlp.config.DeploymentConfiguration.load(DeploymentConfiguration.java:169)
	at net.sourceforge.jnlp.runtime.JNLPRuntime$DeploymentConfigurationHolder.<clinit>(JNLPRuntime.java:453)
	at net.sourceforge.jnlp.runtime.JNLPRuntime.getConfiguration(JNLPRuntime.java:481)
	at net.adoptopenjdk.icedteaweb.client.console.JavaConsole.canShowOnStartup(JavaConsole.java:205)
	at net.sourceforge.jnlp.runtime.JNLPRuntime.initialize(JNLPRuntime.java:230)
	at net.sourceforge.jnlp.runtime.Boot.runMain(Boot.java:258)
	at net.sourceforge.jnlp.runtime.Boot.mainWithReturnCode(Boot.java:132)
	at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:114)

[ITW-CORE][2021-07-30 17:25:24.715 CEST][INFO ][net.sourceforge.jnlp.config.DeploymentConfiguration] checkUrl failed for file:/home/kris/.config/icedtea-web/deployment.properties reason: /home/kris/.config/icedtea-web/deployment.properties (No such file or directory)
[ITW-CORE][2021-07-30 17:25:24.717 CEST][WARN ][net.sourceforge.jnlp.config.DeploymentConfiguration] No USER level deployment.properties found at file:/home/kris/.config/icedtea-web/deployment.properties.
[ITW-CORE][2021-07-30 17:25:24.717 CEST][WARN ][net.sourceforge.jnlp.config.DeploymentConfiguration] No USER level deployment.properties found at file:/home/kris/.config/icedtea-web/deployment.properties.
[ITW-CORE][2021-07-30 17:25:24.717 CEST][WARN ][net.sourceforge.jnlp.config.DeploymentConfiguration] Exception while loading comment form config file: /home/kris/.config/icedtea-web/deployment.properties (No such file or directory)
[ITW-CORE][2021-07-30 17:25:24.717 CEST][WARN ][net.sourceforge.jnlp.config.DeploymentConfiguration] Exception while loading comment form config file: /home/kris/.config/icedtea-web/deployment.properties (No such file or directory)
[ITW-CORE][2021-07-30 17:25:24.896 CEST][INFO ][net.sourceforge.jnlp.proxy.browser.FirefoxPreferencesFinder] Using firefox's profiles file: /home/kris/.mozilla/firefox/profiles.ini
[ITW-CORE][2021-07-30 17:25:24.896 CEST][INFO ][net.sourceforge.jnlp.proxy.browser.FirefoxPreferencesFinder] Found preferences file: 
[ITW-CORE][2021-07-30 17:25:24.896 CEST][ERROR][net.sourceforge.jnlp.proxy.browser.FirefoxProxySelector]
Unable to use Firefox''s proxy settings. Using "DIRECT" as proxy type.
java.io.FileNotFoundException: /home/kris/.mozilla/firefox/itueemps.default/prefs.js (No such file or directory)
	at java.base/java.io.FileInputStream.open0(Native Method)
	at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
	at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
	at java.base/java.io.FileReader.<init>(FileReader.java:75)
	at net.sourceforge.jnlp.proxy.browser.FirefoxPreferencesParser.parse(FirefoxPreferencesParser.java:81)
	at net.sourceforge.jnlp.proxy.browser.FirefoxProxySelector.initFromBrowserConfig(FirefoxProxySelector.java:123)
	at net.sourceforge.jnlp.proxy.browser.FirefoxProxySelector.<init>(FirefoxProxySelector.java:111)
	at net.sourceforge.jnlp.proxy.browser.FirefoxProxySelector.<init>(FirefoxProxySelector.java:101)
	at net.adoptopenjdk.icedteaweb.extensionpoint.ExtensionPoint.createProxySelector(ExtensionPoint.java:44)
	at net.sourceforge.jnlp.runtime.JNLPRuntime.initialize(JNLPRuntime.java:288)
	at net.sourceforge.jnlp.runtime.Boot.runMain(Boot.java:258)
	at net.sourceforge.jnlp.runtime.Boot.mainWithReturnCode(Boot.java:132)
	at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:114)

[ITW-CORE][2021-07-30 17:25:24.897 CEST][INFO ][net.sourceforge.jnlp.runtime.Boot] Proceeding with jnlp
[ITW-CORE][2021-07-30 17:25:24.898 CEST][INFO ][net.sourceforge.jnlp.runtime.Boot] JNLP file location: Downloads/sts-kris5.jnlp
[ITW-CORE][2021-07-30 17:25:24.906 CEST][INFO ][net.adoptopenjdk.icedteaweb.xmlparser.MalformedXMLParser] Using MalformedXMLParser
[ITW-CORE][2021-07-30 17:25:25.010 CEST][INFO ][net.sourceforge.jnlp.Parser] Homepage: http://www.js-home.org/
[ITW-CORE][2021-07-30 17:25:25.010 CEST][INFO ][net.sourceforge.jnlp.Parser] Description: Stellwerk Simulation
[ITW-CORE][2021-07-30 17:25:25.011 CEST][INFO ][net.sourceforge.jnlp.JNLPFile] Acceptable vendor tag found, contains: JS
[ITW-CORE][2021-07-30 17:25:25.013 CEST][WARN ][net.sourceforge.jnlp.Parser] Warning - your JRE - 11.0.11 - does not match requested JRE - 1.8.0*
[ITW-CORE][2021-07-30 17:25:25.013 CEST][WARN ][net.sourceforge.jnlp.Parser] Warning - your JRE - 11.0.11 - does not match requested JRE - 1.8.0*
[ITW-CORE][2021-07-30 17:25:25.014 CEST][WARN ][net.sourceforge.jnlp.Parser] Ignoring java-vm-args due to illegal Property -Dcom.sun.management.jmxremote
[ITW-CORE][2021-07-30 17:25:25.014 CEST][WARN ][net.sourceforge.jnlp.Parser] Ignoring java-vm-args due to illegal Property -Dcom.sun.management.jmxremote
[ITW-CORE][2021-07-30 17:25:25.015 CEST][INFO ][net.sourceforge.jnlp.Parser] good - your JRE - 11.0.11 - match requested JRE - 9+
[ITW-CORE][2021-07-30 17:25:25.029 CEST][INFO ][net.adoptopenjdk.icedteaweb.resources.cache.LeastRecentlyUsedCache] isCached: https://www.stellwerksim.de/download-jnlp.php?token=006104191ea2e5 - (v: null) = true
[ITW-CORE][2021-07-30 17:25:25.323 CEST][INFO ][net.adoptopenjdk.icedteaweb.resources.cache.LeastRecentlyUsedCache] isUpToDate: https://www.stellwerksim.de/download-jnlp.php?token=006104191ea2e5 - (v: null) = false
[ITW-CORE][2021-07-30 17:25:25.501 CEST][INFO ][net.adoptopenjdk.icedteaweb.resources.cache.LeastRecentlyUsedCache] isUpToDate: https://www.stellwerksim.de/download-jnlp.php?token=006104191ea2e5 - (v: null) = false
[ITW-CORE][2021-07-30 17:25:25.509 CEST][INFO ][net.adoptopenjdk.icedteaweb.xmlparser.MalformedXMLParser] Using MalformedXMLParser
[ITW-CORE][2021-07-30 17:25:25.516 CEST][INFO ][net.sourceforge.jnlp.Parser] Homepage: http://www.js-home.org/
[ITW-CORE][2021-07-30 17:25:25.517 CEST][INFO ][net.sourceforge.jnlp.Parser] Description: Stellwerk Simulation
[ITW-CORE][2021-07-30 17:25:25.517 CEST][INFO ][net.sourceforge.jnlp.JNLPFile] Acceptable vendor tag found, contains: JS
[ITW-CORE][2021-07-30 17:25:25.518 CEST][WARN ][net.sourceforge.jnlp.Parser] Warning - your JRE - 11.0.11 - does not match requested JRE - 1.8.0*
[ITW-CORE][2021-07-30 17:25:25.518 CEST][WARN ][net.sourceforge.jnlp.Parser] Warning - your JRE - 11.0.11 - does not match requested JRE - 1.8.0*
[ITW-CORE][2021-07-30 17:25:25.518 CEST][WARN ][net.sourceforge.jnlp.Parser] Ignoring java-vm-args due to illegal Property -Dcom.sun.management.jmxremote
[ITW-CORE][2021-07-30 17:25:25.518 CEST][WARN ][net.sourceforge.jnlp.Parser] Ignoring java-vm-args due to illegal Property -Dcom.sun.management.jmxremote
[ITW-CORE][2021-07-30 17:25:25.519 CEST][INFO ][net.sourceforge.jnlp.Parser] good - your JRE - 11.0.11 - match requested JRE - 9+
[ITW-CORE][2021-07-30 17:25:25.527 CEST][INFO ][net.sourceforge.jnlp.ItwJvmLauncher] About to launch external with commands: '[/usr/libexec/icedtea-web/javaws, -J-Xms500M, -J-Xms500M, -J--add-modules=java.xml.ws, -Xnofork, Downloads/sts-kris5.jnlp]'
selected jre: /usr/lib/jvm/jre-11-openjdk
Error occurred during initialization of boot layer
java.lang.module.FindException: Module java.xml.ws not found
[ITW-CORE][2021-07-30 17:25:26.638 CEST][INFO ][net.adoptopenjdk.icedteaweb.resources.cache.LeastRecentlyUsedCache] No other instances of javaws are running
[kris@DESKTOP ~]$ 

Re: Trouble running the JNLP file on Fedora Linux

Verfasst: Fr Jul 30, 2021 6:18 pm
von DevonFrosch
Hi,

There are 2 things I suspect wrong here:
  • Stellwerksim most probably won't run on Java 11 - you'll have to run it with Java 8. Normally there should be a package by OpenJDK for that. If not, https://www.java.com has some Linux builds as well, but they are a bit more complicated to install and keep up to date.
  • the first error message sounds like the JNLP file is not correct. This most times happens if you don't accept cookies when downloading the file, so the file only contains the error message that you're not logged in (you can open the JNLP file with a text viewer). Make sure you are logged in, then download the file again.
Greetings,
DevonFrosch