AdoptOpenJDK / AdoptOpenJDK/IcedTea-Web

Fatal: Read Error: Could not read or parse the JNLP file.

Đang mở
#768 5 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
268
Fork
96
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Hi,

A French public structure provides a portal for submitting responses to calls for tenders from municipalities.

They provide a test page:
https://marches.megalis.bretagne.bzh/index.php?page=entreprise.DiagnosticPoste&callFrom=entreprise

The portal uses a jnlp script.

To use this portal, I have a virtual machine with an old Windows XP, an old firefox and the java plugin, because Java no longer works with Windows 10 and recent firefox.

On my Linux workstation, when I test this script, icedtea starts well but produces an error. I don't know if this is possible, but I would rather access this portal from my Linux workstation and IcedTea-Web than from a Windows XP virtual machine.

Regards.

The error messages are:
```
net.sourceforge.jnlp.LaunchException: Fatal: Read Error: Could not read or parse the JNLP file. You can try to download this file manually and send it as bug report to IcedTea-Web team.
at java.desktop/net.sourceforge.jnlp.Launcher.fromUrl(Launcher.java:489)
at java.desktop/net.sourceforge.jnlp.Launcher.launch(Launcher.java:289)
at java.desktop/net.sourceforge.jnlp.runtime.JnlpBoot.run(JnlpBoot.java:67)
at java.desktop/net.sourceforge.jnlp.runtime.Boot.run(Boot.java:270)
at java.desktop/net.sourceforge.jnlp.runtime.Boot.run(Boot.java:63)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.desktop/net.sourceforge.jnlp.runtime.Boot.main(Boot.java:210)
Caused by: java.io.IOException: java.lang.NullPointerException: name can't be null
at java.desktop/net.sourceforge.jnlp.JNLPFile.openURL(JNLPFile.java:319)
at java.desktop/net.sourceforge.jnlp.JNLPFile.(JNLPFile.java:241)
at java.desktop/net.sourceforge.jnlp.JNLPFile.(JNLPFile.java:215)
at java.desktop/net.sourceforge.jnlp.JNLPFile.(JNLPFile.java:200)
at java.desktop/net.sourceforge.jnlp.JNLPFile.(JNLPFile.java:186)
at java.desktop/net.sourceforge.jnlp.Launcher.fromUrl(Launcher.java:453)
... 6 more
Caused by: java.lang.NullPointerException: name can't be null
at java.base/java.io.FilePermission.init(FilePermission.java:321)
at java.base/java.io.FilePermission.(FilePermission.java:488)
at java.base/java.lang.SecurityManager.checkRead(SecurityManager.java:661)
at java.base/java.io.FileInputStream.(FileInputStream.java:146)
at java.desktop/net.sourceforge.jnlp.JNLPFile.openURL(JNLPFile.java:317)
... 11 more
```

The output of the java console:

```
net.sourceforge.jnlp.LaunchException: Fatal: Read Error: Could not read or parse the JNLP file. You can try to download this file manually and send it as bug report to IcedTea-Web team.
    at java.desktop/net.sourceforge.jnlp.Launcher.fromUrl(Launcher.java:489)
    at java.desktop/net.sourceforge.jnlp.Launcher.launch(Launcher.java:289)
    at java.desktop/net.sourceforge.jnlp.runtime.JnlpBoot.run(JnlpBoot.java:67)
    at java.desktop/net.sourceforge.jnlp.runtime.Boot.run(Boot.java:270)
    at java.desktop/net.sourceforge.jnlp.runtime.Boot.run(Boot.java:63)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.desktop/net.sourceforge.jnlp.runtime.Boot.main(Boot.java:210)
Caused by: java.io.IOException: java.lang.NullPointerException: name can't be null
    at java.desktop/net.sourceforge.jnlp.JNLPFile.openURL(JNLPFile.java:319)
    at java.desktop/net.sourceforge.jnlp.JNLPFile.(JNLPFile.java:241)
    at java.desktop/net.sourceforge.jnlp.JNLPFile.(JNLPFile.java:215)
    at java.desktop/net.sourceforge.jnlp.JNLPFile.(JNLPFile.java:200)
    at java.desktop/net.sourceforge.jnlp.JNLPFile.(JNLPFile.java:186)
    at java.desktop/net.sourceforge.jnlp.Launcher.fromUrl(Launcher.java:453)
    ... 6 more
Caused by: java.lang.NullPointerException: name can't be null
    at java.base/java.io.FilePermission.init(FilePermission.java:321)
    at java.base/java.io.FilePermission.(FilePermission.java:488)
    at java.base/java.lang.SecurityManager.checkRead(SecurityManager.java:661)
    at java.base/java.io.FileInputStream.(FileInputStream.java:146)
    at java.desktop/net.sourceforge.jnlp.JNLPFile.openURL(JNLPFile.java:317)
    ... 11 more
netx: Read Error: Could not read or parse the JNLP file. (java.lang.NullPointerException: name can't be null (name can't be null))
Removed sun.net.www.protocol.https.DelegateHttpsURLConnection:https://marches.megalis.bretagne.bzh/crypto/signature/outilTest?serveurCryptoURLPublique=https://marches.megalis.bretagne.bzh/crypto/signature
Disconnecting sun.net.www.protocol.https.DelegateHttpsURLConnection:https://marches.megalis.bretagne.bzh/crypto/signature/outilTest?serveurCryptoURLPublique=https://marches.megalis.bretagne.bzh/crypto/signature
java.io.EOFException: Unexpected end of ZLIB input stream
    at java.base/java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:245)
    at java.base/java.util.zip.InflaterInputStream.read(InflaterInputStream.java:159)
    at java.base/java.util.zip.GZIPInputStream.read(GZIPInputStream.java:118)
    at java.base/java.io.BufferedInputStream.fill(BufferedInputStream.java:252)
    at java.base/java.io.BufferedInputStream.read1(BufferedInputStream.java:292)
    at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:351)
    at java.base/java.io.FilterInputStream.read(FilterInputStream.java:107)
    at java.desktop/net.sourceforge.jnlp.cache.ResourceDownloader.uncompressGzip(ResourceDownloader.java:488)
    at java.desktop/net.sourceforge.jnlp.cache.ResourceDownloader.downloadGZipFile(ResourceDownloader.java:405)
    at java.desktop/net.sourceforge.jnlp.cache.ResourceDownloader.downloadResource(ResourceDownloader.java:362)
    at java.desktop/net.sourceforge.jnlp.cache.ResourceDownloader.run(ResourceDownloader.java:118)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:834)
Extracting gzip: https://marches.megalis.bretagne.bzh/crypto/signature/outilTest?serveurCryptoURLPublique=https://marches.megalis.bretagne.bzh/crypto/signature to https://marches.megalis.bretagne.bzh/crypto/signature/outilTest?serveurCryptoURLPublique=https://marches.megalis.bretagne.bzh/crypto/signature
isCurrent:isCached false
Downloading file: https://marches.megalis.bretagne.bzh/crypto/signature/outilTest?serveurCryptoURLPublique=https://marches.megalis.bretagne.bzh/crypto/signature into: /home/XXXX/.cache/icedtea-web/cache/0/https/marches.megalis.bretagne.bzh/crypto/signature/outilTest.serveurCryptoURLPublique_https_/marches.megalis.bretagne.bzh/crypto/signature
Downloading https://marches.megalis.bretagne.bzh/crypto/signature/outilTest?serveurCryptoURLPublique=https://marches.megalis.bretagne.bzh/crypto/signature using https://marches.megalis.bretagne.bzh/crypto/signature/outilTest?serveurCryptoURLPublique=https://marches.megalis.bretagne.bzh/crypto/signature (encoding : gzip)
Selected proxies: [DIRECT]
Browser selected proxies: [DIRECT]
Browser proxy option "4" (Automatic) not supported yet.
Selecting proxy for: https://marches.megalis.bretagne.bzh/crypto/signature/outilTest?serveurCryptoURLPublique=https://marches.megalis.bretagne.bzh/crypto/signature
done https://marches.megalis.bretagne.bzh/crypto/signature/outilTest?serveurCryptoURLPublique=https://marches.megalis.bretagne.bzh/crypto/signature
Adding sun.net.www.protocol.https.DelegateHttpsURLConnection:https://marches.megalis.bretagne.bzh/crypto/signature/outilTest?serveurCryptoURLPublique=https://marches.megalis.bretagne.bzh/crypto/signature
Connecting https://marches.megalis.bretagne.bzh/crypto/signature/outilTest?serveurCryptoURLPublique=https://marches.megalis.bretagne.bzh/crypto/signature
Removed sun.net.www.protocol.https.DelegateHttpsURLConnection:https://marches.megalis.bretagne.bzh/crypto/signature/outilTest?serveurCryptoURLPublique=https://marches.megalis.bretagne.bzh/crypto/signature
Disconnecting sun.net.www.protocol.https.DelegateHttpsURLConnection:https://marches.megalis.bretagne.bzh/crypto/signature/outilTest?serveurCryptoURLPublique=https://marches.megalis.bretagne.bzh/crypto/signature
isCurrent: https://marches.megalis.bretagne.bzh/crypto/signature/outilTest?serveurCryptoURLPublique=https://marches.megalis.bretagne.bzh/crypto/signature = false
isCurrent:isCached false
done https://marches.megalis.bretagne.bzh/crypto/signature/outilTest?serveurCryptoURLPublique=https://marches.megalis.bretagne.bzh/crypto/signature
Adding sun.net.www.protocol.https.DelegateHttpsURLConnection:https://marches.megalis.bretagne.bzh/crypto/signature/outilTest?serveurCryptoURLPublique=https://marches.megalis.bretagne.bzh/crypto/signature
Connecting https://marches.megalis.bretagne.bzh/crypto/signature/outilTest?serveurCryptoURLPublique=https://marches.megalis.bretagne.bzh/crypto/signature
best url for location=https://marches.megalis.bretagne.bzh/crypto/signature/outilTest?serveurCryptoURLPublique=https://marches.megalis.bretagne.bzh/crypto/signature state=PRECONNECT CONNECTING PREDOWNLOAD PROCESSING is https://marches.megalis.bretagne.bzh/crypto/signature/outilTest?serveurCryptoURLPublique=https://marches.megalis.bretagne.bzh/crypto/signature by HEAD
Removed sun.net.www.protocol.https.DelegateHttpsURLConnection:https://marches.megalis.bretagne.bzh/crypto/signature/outilTest?serveurCryptoURLPublique=https://marches.megalis.bretagne.bzh/crypto/signature
Disconnecting sun.net.www.protocol.https.DelegateHttpsURLConnection:https://marches.megalis.bretagne.bzh/crypto/signature/outilTest?serveurCryptoURLPublique=https://marches.megalis.bretagne.bzh/crypto/signature
Key : Content-Type ,Value : [application/x-java-jnlp-file;charset=ISO-8859-1]
Key : Content-Language ,Value : [fr-FR]
Key : Content-Length ,Value : [2091]
Key : Set-Cookie ,Value : [ROUTEPATH=.node3; path=/, JSESSIONID=66221D04122B1C53308F502211FBB82A;path=/signature/;HttpOnly]
Key : Content-Disposition ,Value : [attachment; filename="Outil de test de configuration.jnlp"]
Key : Access-Control-Allow-Credentials ,Value : [true]
Key : Strict-Transport-Security ,Value : [max-age=31536000; includeSubDomains]
Key : Date ,Value : [Fri, 19 Feb 2021 16:20:42 GMT]
Key : Connection ,Value : [Keep-Alive]
Key : Access-Control-Allow-Origin ,Value : [https://socle.megalis.bretagne.bzh]
Key : Server ,Value : [Apache TomEE]
Key : null ,Value : [HTTP/1.1 200]
Key : Keep-Alive ,Value : [timeout=5, max=1000]
Selected proxies: [DIRECT]
Browser selected proxies: [DIRECT]
Browser proxy option "4" (Automatic) not supported yet.
Selecting proxy for: socket://marches.megalis.bretagne.bzh:443
Selected proxies: [DIRECT]
Browser selected proxies: [DIRECT]
Browser proxy option "4" (Automatic) not supported yet.
Selecting proxy for: https://marches.megalis.bretagne.bzh/crypto/signature/outilTest?serveurCryptoURLPublique=https://marches.megalis.bretagne.bzh/crypto/signature
done https://marches.megalis.bretagne.bzh/crypto/signature/outilTest?serveurCryptoURLPublique=https://marches.megalis.bretagne.bzh/crypto/signature
Adding sun.net.www.protocol.https.DelegateHttpsURLConnection:https://marches.megalis.bretagne.bzh/crypto/signature/outilTest?serveurCryptoURLPublique=https://marches.megalis.bretagne.bzh/crypto/signature
Connecting https://marches.megalis.bretagne.bzh/crypto/signature/outilTest?serveurCryptoURLPublique=https://marches.megalis.bretagne.bzh/crypto/signature
All possible urls for location=https://marches.megalis.bretagne.bzh/crypto/signature/outilTest?serveurCryptoURLPublique=https://marches.megalis.bretagne.bzh/crypto/signature state=PRECONNECT CONNECTING PREDOWNLOAD PROCESSING : [https://marches.megalis.bretagne.bzh/crypto/signature/outilTest?serveurCryptoURLPublique=https://marches.megalis.bretagne.bzh/crypto/signature, https://marches.megalis.bretagne.bzh/crypto/signature/outilTest?serveurCryptoURLPublique=https://marches.megalis.bretagne.bzh/crypto/signature]
Finding best URL for: https://marches.megalis.bretagne.bzh/crypto/signature/outilTest?serveurCryptoURLPublique=https://marches.megalis.bretagne.bzh/crypto/signature : DownloadOptions[use pack: false; use version: false]
good - your JRE - 11.0.10 - match requested JRE - 1.8+
Acceptable vendor tag found, contains: Atexo
Acceptable title tag found, contains: Signature Electronique
Jars not ready to provide attribute Application-Name
Description: null
Homepage: null
line: 36

line: 35
line: 34
line: 33   
line: 32   
line: 31        https://marches.megalis.bretagne.bzh/crypto/signature/signatureXades
line: 30   
line: 29
line: 28   
line: 27       
line: 26   
line: 25
line: 24   
line: 23                
line: 22         
line: 21       
line: 20       
line: 19       
line: 18       
line: 17       
line: 16       
line: 15       
line: 14       
line: 13       
line: 12       
line: 11   
line: 10   
line: 9
line: 8       
line: 7        Atexo
line: 6        Signature Electronique
line: 5   
line: 4
line: 3
line: 2

Using MalformedXMLParser
JNLP file location: /tmp/mozilla_XXXX0/Outil de test de configuration-2.jnlp
Proceeding with jnlp
Read 2786 entries from Firefox's preferences
Found preferences file: /home/XXXX/.mozilla/firefox/XXXX.default/prefs.js
Using firefox's profiles file: /home/XXXX/.mozilla/firefox/profiles.ini
Starting security dialog thread
Forcing of offline set to: false
OK: Directory /home/XXXX/.cache/icedtea-web/tmp did not exist but has been created
OK: Directory /home/XXXX/.cache/icedtea-web/pcache did not exist but has been created
OK: Directory /home/XXXX/.cache/icedtea-web/cache did not exist but has been created
WARNING: key deployment.system.cachedir has no value, setting to default value
java.io.FileNotFoundException: /home/XXXX/.config/icedtea-web/deployment.properties (Aucun fichier ou dossier de ce type)
    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.(FileInputStream.java:157)
    at java.base/java.io.FileInputStream.(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 java.base/java.net.URL.openStream(URL.java:1140)
    at java.desktop/net.sourceforge.jnlp.config.DeploymentConfiguration.loadComments(DeploymentConfiguration.java:928)
    at java.desktop/net.sourceforge.jnlp.config.DeploymentConfiguration.load(DeploymentConfiguration.java:385)
    at java.desktop/net.sourceforge.jnlp.config.DeploymentConfiguration.load(DeploymentConfiguration.java:347)
    at java.desktop/net.sourceforge.jnlp.config.DeploymentConfiguration.load(DeploymentConfiguration.java:325)
    at java.desktop/net.sourceforge.jnlp.runtime.JNLPRuntime$DeploymentConfigurationHolder.initConfiguration(JNLPRuntime.java:457)
    at java.desktop/net.sourceforge.jnlp.runtime.JNLPRuntime$DeploymentConfigurationHolder.(JNLPRuntime.java:452)
    at java.desktop/net.sourceforge.jnlp.runtime.JNLPRuntime.getConfiguration(JNLPRuntime.java:487)
    at java.desktop/net.sourceforge.jnlp.config.DirectoryValidator.(DirectoryValidator.java:226)
    at java.desktop/net.sourceforge.jnlp.config.DeploymentConfiguration.move14AndOlderFilesTo15Structure(DeploymentConfiguration.java:886)
    at java.desktop/net.sourceforge.jnlp.config.DeploymentConfiguration.move14AndOlderFilesTo15StructureCatched(DeploymentConfiguration.java:786)
    at java.desktop/net.sourceforge.jnlp.runtime.Boot.main(Boot.java:121)
No User level deployment.properties found.
java.io.FileNotFoundException: /home/XXXX/.config/icedtea-web/deployment.properties (Aucun fichier ou dossier de ce type)     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.(FileInputStream.java:157)
    at java.base/java.io.FileInputStream.(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 java.base/java.net.URL.openStream(URL.java:1140)
    at java.desktop/net.sourceforge.jnlp.config.DeploymentConfiguration.parsePropertiesFile(DeploymentConfiguration.java:711)
    at java.desktop/net.sourceforge.jnlp.config.DeploymentConfiguration.findSystemConfigFile(DeploymentConfiguration.java:533)
    at java.desktop/net.sourceforge.jnlp.config.DeploymentConfiguration.load(DeploymentConfiguration.java:345)
    at java.desktop/net.sourceforge.jnlp.config.DeploymentConfiguration.load(DeploymentConfiguration.java:325)
    at java.desktop/net.sourceforge.jnlp.runtime.JNLPRuntime$DeploymentConfigurationHolder.initConfiguration(JNLPRuntime.java:457)
    at java.desktop/net.sourceforge.jnlp.runtime.JNLPRuntime$DeploymentConfigurationHolder.(JNLPRuntime.java:452)
    at java.desktop/net.sourceforge.jnlp.runtime.JNLPRuntime.getConfiguration(JNLPRuntime.java:487)
    at java.desktop/net.sourceforge.jnlp.config.DirectoryValidator.(DirectoryValidator.java:226)
    at java.desktop/net.sourceforge.jnlp.config.DeploymentConfiguration.move14AndOlderFilesTo15Structure(DeploymentConfiguration.java:886)
    at java.desktop/net.sourceforge.jnlp.config.DeploymentConfiguration.move14AndOlderFilesTo15StructureCatched(DeploymentConfiguration.java:786)
    at java.desktop/net.sourceforge.jnlp.runtime.Boot.main(Boot.java:121)
Ico provider registered correctly.
cache: /home/XXXX/.cache/icedtea-web file exists:false
config: /home/XXXX/.config/icedtea-web file exists: true
System is already following XDG .cache and .config specifications
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.