Claus Ibsen created KARAF-3378:
----------------------------------
Summary: bin\client.bat on Windows fails to read SSH_PORT from env
causing a NumberFormatException
Key: KARAF-3378
URL: https://issues.apache.org/jira/browse/KARAF-3378
Project: Karaf
Issue Type: Bug
Affects Versions: 3.0.2, 2.4.0
Environment: Windows
Reporter: Claus Ibsen
Priority: Minor
If you run Karaf on windows and define the SSH_PORT as a env variable, then if
you want to use bin/client.bat to have a shell for the running karaf, then it
fails with a
{code}
C:\mykaraf>bin\client.bat
Exception in thread "main" java.lang.NumberFormatException: For input string:
"${ssh.port}"
at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:569)
at java.lang.Integer.parseInt(Integer.java:615)
at org.apache.karaf.client.Main.main(Main.java:58)
{code}
The ENV variable has been set with
{code}
SSH_PORT=50123
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)