IcedTea-Web
IcedTea-Web copied to clipboard
Caused by: java.net.ConnectException: Connection refused: connect
Hello. We use IcedTea 1.8 to run a company tool. Recently a couple of co-workers reported a startup failure and the stack trace is the following
net.sourceforge.jnlp.LaunchException: Fatal: Launch Error: Could not launch JNLP file. The application has not been initialized, for more information execute javaws/browser from the command line and send a bug report. at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:582) at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:945) Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection refused: connect at net.sourceforge.jnlp.services.XSingleInstanceService.checkSingleInstanceRunning(XSingleInstanceService.java:163) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.sourceforge.jnlp.services.ServiceUtil$PrivilegedHandler$1.run(ServiceUtil.java:198) at java.security.AccessController.doPrivileged(Native Method) at net.sourceforge.jnlp.services.ServiceUtil$PrivilegedHandler.invoke(ServiceUtil.java:203) at net.sourceforge.jnlp.services.$Proxy10.checkSingleInstanceRunning(Unknown Source) at net.sourceforge.jnlp.services.ServiceUtil.checkExistingSingleInstance(ServiceUtil.java:147) at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:509) ... 1 more Caused by: java.net.ConnectException: Connection refused: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at java.net.Socket.connect(Socket.java:538) at java.net.Socket.<init>(Socket.java:434) at java.net.Socket.<init>(Socket.java:211) at net.sourceforge.jnlp.services.XSingleInstanceService.sendProgramArgumentsToExistingApplication(XSingleInstanceService.java:196) at net.sourceforge.jnlp.services.XSingleInstanceService.checkSingleInstanceRunning(XSingleInstanceService.java:160) ... 11 more
The host system is Windows 10 or 11, and the Java in use is
openjdk version "1.8.0_212-3-redhat" OpenJDK Runtime Environment (build 1.8.0_212-3-redhat-b04) OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
This is a full log provided by an user. His username and the server providing the application have been obfuscated.
net.sourceforge.jnlp.LaunchException: Fatal: Launch Error: Could not launch JNLP file. The application has not been initialized, for more information execute javaws/browser from the command line and send a bug report.
at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:582)
at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:945)
Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection refused: connect
at net.sourceforge.jnlp.services.XSingleInstanceService.checkSingleInstanceRunning(XSingleInstanceService.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at net.sourceforge.jnlp.services.ServiceUtil$PrivilegedHandler$1.run(ServiceUtil.java:198)
at java.security.AccessController.doPrivileged(Native Method)
at net.sourceforge.jnlp.services.ServiceUtil$PrivilegedHandler.invoke(ServiceUtil.java:203)
at net.sourceforge.jnlp.services.$Proxy10.checkSingleInstanceRunning(Unknown Source)
at net.sourceforge.jnlp.services.ServiceUtil.checkExistingSingleInstance(ServiceUtil.java:147)
at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:509)
... 1 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at java.net.Socket.connect(Socket.java:538)
at java.net.Socket.
line: 60
line: 59
line: 58
line: 57
line: 10
Using MalformedXMLParser Removed sun.net.www.protocol.https.DelegateHttpsURLConnection:https://obfusc.ate.d!/rasria/ria/rasria.jnlp Disconnecting sun.net.www.protocol.https.DelegateHttpsURLConnection:https://obfusc.ate.d!/rasria/ria/rasria.jnlp isCurrent:isCached false Downloading file: http://obfusc.ate.d!/rasria/ria/rasria.jnlp into: C:\SIALRIARES.cache\icedtea-web\cache\324\http\obfusc.ate.d!\rasria\ria\rasria.jnlp Downloading http://obfusc.ate.d!/rasria/ria/rasria.jnlp using https://obfusc.ate.d!/rasria/ria/rasria.jnlp (encoding : null) Selected proxies: [DIRECT] Selecting proxy for: https://obfusc.ate.d!/rasria/ria/rasria.jnlp done https://obfusc.ate.d!/rasria/ria/rasria.jnlp Adding sun.net.www.protocol.https.DelegateHttpsURLConnection:https://obfusc.ate.d!/rasria/ria/rasria.jnlp Connecting https://obfusc.ate.d!/rasria/ria/rasria.jnlp Removed sun.net.www.protocol.https.DelegateHttpsURLConnection:https://obfusc.ate.d!/rasria/ria/rasria.jnlp Disconnecting sun.net.www.protocol.https.DelegateHttpsURLConnection:https://obfusc.ate.d!/rasria/ria/rasria.jnlp isCached: remote:-1 cached:3172 isCurrent: http://obfusc.ate.d!/rasria/ria/rasria.jnlp = false isCurrent:lastModified cache:1646760451000 actual:1646816867000 isCurrent:isCached true isCached: remote:-1 cached:3172 done https://obfusc.ate.d!/rasria/ria/rasria.jnlp Adding sun.net.www.protocol.https.DelegateHttpsURLConnection:https://obfusc.ate.d!/rasria/ria/rasria.jnlp Connecting https://obfusc.ate.d!/rasria/ria/rasria.jnlp best url for location=http://obfusc.ate.d!/rasria/ria/rasria.jnlp state=PRECONNECT CONNECTING PREDOWNLOAD PROCESSING is https://obfusc.ate.d!/rasria/ria/rasria.jnlp by HEAD Removed sun.net.www.protocol.https.DelegateHttpsURLConnection:https://obfusc.ate.d!/rasria/ria/rasria.jnlp Disconnecting sun.net.www.protocol.https.DelegateHttpsURLConnection:https://obfusc.ate.d!/rasria/ria/rasria.jnlp Key : Content-Type ,Value : [application/x-java-jnlp-file] Key : Content-Length ,Value : [3172] Key : Expires ,Value : [Thu, 01 Jan 1970 00:00:00 GMT] Key : Set-Cookie ,Value : [JSESSIONID=AD7427B34881EA23B263BF4E818790B0.wrksiiweblite01; Path=/; Secure] Key : Content-Security-Policy ,Value : [frame-ancestors 'self' https://*.eng.it https://intranet.engineering;] Key : Content-Disposition ,Value : [attachment] Key : Cache-Control ,Value : [private, must-revalidate] Key : Strict-Transport-Security ,Value : [max-age=31536000; includeSubdomains; preload] Key : Date ,Value : [Wed, 09 Mar 2022 09:07:47 GMT] Key : Last-Modified ,Value : [Wed, 09 Mar 2022 09:07:47 GMT] Key : Pragma ,Value : [Private] Key : Connection ,Value : [Keep-Alive] Key : Server ,Value : [Apache] Key : null ,Value : [HTTP/1.1 200 OK] Key : Keep-Alive ,Value : [timeout=5, max=999] Selected proxies: [DIRECT] Selecting proxy for: https://obfusc.ate.d!/rasria/ria/rasria.jnlp done https://obfusc.ate.d!/rasria/ria/rasria.jnlp Adding sun.net.www.protocol.https.DelegateHttpsURLConnection:https://obfusc.ate.d!/rasria/ria/rasria.jnlp Connecting https://obfusc.ate.d!/rasria/ria/rasria.jnlp All possible urls for location=http://obfusc.ate.d!/rasria/ria/rasria.jnlp state=PRECONNECT CONNECTING PREDOWNLOAD PROCESSING : [https://obfusc.ate.d!/rasria/ria/rasria.jnlp, https://obfusc.ate.d!/rasria/ria/rasria.jnlp, http://obfusc.ate.d!/rasria/ria/rasria.jnlp, http://obfusc.ate.d!/rasria/ria/rasria.jnlp] Finding best URL for: http://obfusc.ate.d!/rasria/ria/rasria.jnlp : DownloadOptions[use pack: false; use version: false] UNIQUEKEY=1646816862569-1701300628-https://obfusc.ate.d!/rasria/ria/ras.jnlp Warning - your JRE - 1.8.0_212-3-redhat - does not match requested JRE - 1.9+ Warning - your JRE - 1.8.0_212-3-redhat - does not match requested JRE - 1.8 Warning - your JRE - 1.8.0_212-3-redhat - does not match requested JRE - 1.7 Warning - your JRE - 1.8.0_212-3-redhat - does not match requested JRE - 1.6 good - your JRE - 1.8.0_212-3-redhat - match requested JRE - 1.6.0_20+ Acceptable vendor tag found, contains: Engineering Ingegneria Informatica Acceptable title tag found, contains: RAS RIA Application (obfusc.ate.d!) Jars not ready to provide attribute Application-Name Description: RAS RIA - Rapporto Attivita e Spese Homepage: http://obfusc.ate.d!/ line: 61
line: 60
line: 59
line: 58
line: 57
line: 10
Using MalformedXMLParser Removed sun.net.www.protocol.https.DelegateHttpsURLConnection:https://obfusc.ate.d!/rasria/ria/rasria.jnlp Disconnecting sun.net.www.protocol.https.DelegateHttpsURLConnection:https://obfusc.ate.d!/rasria/ria/rasria.jnlp isCurrent:isCached false Downloading file: https://obfusc.ate.d!/rasria/ria/ras.jnlp into: C:\SIALRIARES.cache\icedtea-web\cache\323\https\obfusc.ate.d!\rasria\ria\ras.jnlp Downloading https://obfusc.ate.d!/rasria/ria/ras.jnlp using https://obfusc.ate.d!/rasria/ria/ras.jnlp (encoding : null) Selected proxies: [DIRECT] Selecting proxy for: socket://obfusc.ate.d!:443 Selected proxies: [DIRECT] Selecting proxy for: https://obfusc.ate.d!/rasria/ria/rasria.jnlp Selected proxies: [DIRECT] Selecting proxy for: https://obfusc.ate.d!/rasria/ria/ras.jnlp done https://obfusc.ate.d!/rasria/ria/ras.jnlp Adding sun.net.www.protocol.https.DelegateHttpsURLConnection:https://obfusc.ate.d!/rasria/ria/ras.jnlp Connecting https://obfusc.ate.d!/rasria/ria/ras.jnlp Removed sun.net.www.protocol.https.DelegateHttpsURLConnection:https://obfusc.ate.d!/rasria/ria/ras.jnlp Disconnecting sun.net.www.protocol.https.DelegateHttpsURLConnection:https://obfusc.ate.d!/rasria/ria/ras.jnlp isCached: remote:-1 cached:3172 isCurrent: https://obfusc.ate.d!/rasria/ria/ras.jnlp = false isCurrent:lastModified cache:1646760451000 actual:1646816866000 isCurrent:isCached true isCached: remote:-1 cached:3172 done https://obfusc.ate.d!/rasria/ria/ras.jnlp Adding sun.net.www.protocol.https.DelegateHttpsURLConnection:https://obfusc.ate.d!/rasria/ria/ras.jnlp Connecting https://obfusc.ate.d!/rasria/ria/ras.jnlp best url for location=https://obfusc.ate.d!/rasria/ria/ras.jnlp state=PRECONNECT CONNECTING PREDOWNLOAD PROCESSING is https://obfusc.ate.d!/rasria/ria/ras.jnlp by HEAD Removed sun.net.www.protocol.https.DelegateHttpsURLConnection:https://obfusc.ate.d!/rasria/ria/rasria.jnlp Disconnecting sun.net.www.protocol.https.DelegateHttpsURLConnection:https://obfusc.ate.d!/rasria/ria/rasria.jnlp Key : Content-Type ,Value : [application/x-java-jnlp-file] Key : Content-Length ,Value : [3172] Key : Expires ,Value : [Thu, 01 Jan 1970 00:00:00 GMT] Key : Set-Cookie ,Value : [JSESSIONID=E4719459DEA45592958CA344E489F5EA.wrksiiweblite01; Path=/; Secure] Key : Content-Security-Policy ,Value : [frame-ancestors 'self' https://*.eng.it https://intranet.engineering;] Key : Content-Disposition ,Value : [attachment] Key : Cache-Control ,Value : [private, must-revalidate] Key : Strict-Transport-Security ,Value : [max-age=31536000; includeSubdomains; preload] Key : Date ,Value : [Wed, 09 Mar 2022 09:07:46 GMT] Key : Last-Modified ,Value : [Wed, 09 Mar 2022 09:07:46 GMT] Key : Pragma ,Value : [Private] Key : Connection ,Value : [Keep-Alive] Key : Server ,Value : [Apache] Key : null ,Value : [HTTP/1.1 200 OK] Key : Keep-Alive ,Value : [timeout=5, max=1000] Selected proxies: [DIRECT] Selecting proxy for: socket://obfusc.ate.d!:443 Selected proxies: [DIRECT] Selecting proxy for: https://obfusc.ate.d!/rasria/ria/rasria.jnlp Selected proxies: [DIRECT] Selecting proxy for: socket://obfusc.ate.d!:443 Selected proxies: [DIRECT] Selecting proxy for: https://obfusc.ate.d!/rasria/ria/ras.jnlp done https://obfusc.ate.d!/rasria/ria/ras.jnlp Adding sun.net.www.protocol.https.DelegateHttpsURLConnection:https://obfusc.ate.d!/rasria/ria/ras.jnlp Connecting https://obfusc.ate.d!/rasria/ria/ras.jnlp All possible urls for location=https://obfusc.ate.d!/rasria/ria/ras.jnlp state=PRECONNECT CONNECTING PREDOWNLOAD PROCESSING : [https://obfusc.ate.d!/rasria/ria/ras.jnlp, https://obfusc.ate.d!/rasria/ria/ras.jnlp] Finding best URL for: https://obfusc.ate.d!/rasria/ria/ras.jnlp : DownloadOptions[use pack: false; use version: false] result: null Warning, null basicService JNLP file location: https://obfusc.ate.d!/rasria/ria/ras.jnlp Proceeding with jnlp Read 450 entries from Firefox's preferences Found preferences file: C:\Users\A_USER\AppData\Roaming\Mozilla\Firefox\Profiles/hg5x93c9.default\prefs.js Using firefox's profiles file: C:\Users\A_USER\AppData\Roaming\Mozilla\Firefox\profiles.ini Starting security dialog thread Forcing of offline set to: false WARNING: key deployment.system.cachedir has no value, setting to default value Loading User level properties from: file:/C:/SIALRIARES/.config/icedtea-web/deployment.properties Ico provider registered correctly. cache: C:\SIALRIARES.cache\icedtea-web file exists:true config: C:\SIALRIARES.config\icedtea-web file exists: true System is already following XDG .cache and .config specifications
Are you able to open the url of the Jnlp file in a browser?
Yes, it seems that the single instance service fails to connect with a socket that seems to be built with null address, if I understood the code.
Any news?
While we were able to cope with several other problems, including Windows preventing the jar cache update, today I got this log from a co-worker that gets "connection refused" where i noticed this:
net.sourceforge.jnlp.LaunchException: Fatal: Launch Error: Could not launch JNLP file. The application has not been initialized, for more information execute javaws/browser from the command line and send a bug report. at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:582) at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:945) Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection refused: connect at net.sourceforge.jnlp.services.XSingleInstanceService.checkSingleInstanceRunning(XSingleInstanceService.java:163)
It seems that it gets this connection refused while it checks to contact the machine javaws is running on itself.
I am having the same problem with Ubuntu 20.04. It used to work in my Ubuntu 16.04