Project

General

Profile

Bug #825

Non integer Proxy Port leads to error and proxy is not working

Added by Tobias Wich 11 months ago. Updated 11 months ago.

Status:
Solved
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
11/12/2020
Due date:
% Done:

0%

Estimated time:
Reviewer:
Build Version:

Description

The following error has been observed.

Exception in thread "Update-Task" java.lang.ExceptionInInitializerError
at org.openecard.richclient@1.4.5/org.openecard.richclient.updater.VersionUpdateLoader.loadVersionUpdateList(VersionUpdateLoader.java:81)
at org.openecard.richclient@1.4.5/org.openecard.richclient.updater.VersionUpdateChecker.loadCurrentVersionList(VersionUpdateChecker.java:66)
at org.openecard.richclient@1.4.5/org.openecard.richclient.RichClient$UpdateTask.run(RichClient.java:357)
at java.base/java.util.TimerThread.mainLoop(Timer.java:556)
at java.base/java.util.TimerThread.run(Timer.java:506)
Caused by: java.lang.NumberFormatException: For input string: "" 
at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:68)
at java.base/java.lang.Integer.parseInt(Integer.java:662)
at java.base/java.lang.Integer.parseInt(Integer.java:770)
at org.openecard.richclient@1.4.5/org.openecard.crypto.tls.proxy.ProxySettingsLoader.load(ProxySettingsLoader.java:101)
at org.openecard.richclient@1.4.5/org.openecard.crypto.tls.proxy.ProxySettings.<clinit>(ProxySettings.java:60)
... 5 more

The port has a non integer value, so the parsing fails and the proxy initialisation is aborted with the observed error.
The proxy implementation should print a warning in this case and fall back to using no proxy.

History

#1

Updated by Tobias Wich 11 months ago

  • Status changed from New to Solved

Fixed in 76505b78

Also available in: Atom PDF