karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: Problem connecting to Karaf/ServiceMix after upgrade from 2.3.x to 2.4.x
Date Wed, 06 Jan 2016 09:19:31 GMT
Hi Michael,

Does it happen only with 3.0.5 or also with 4.0.3 ?

I don't think we have a Jira about that: can you create one please ?

Thanks,
Regards
JB

On 01/06/2016 10:16 AM, Michael Täschner wrote:
> Hi,
>
>
> https://issues.apache.org/jira/browse/KARAF-3494 and
> https://issues.apache.org/jira/browse/KARAF-3962 have fixed the issue of
> no property replacement for the "client" command but I still have the
> same issue ("For input string: """) using the "instances" command when
> substituting sshPort in etc/org.apache.karaf.shell.cfg. Does this need
> the same fix ? (tested with Karaf 3.0.5)
>
> Thanks and Best Regards,
> Michael
>
> 2015-02-02 18:47 GMT+01:00 Jean-Baptiste Onofré <jb@nanthrax.net
> <mailto:jb@nanthrax.net>>:
>
>     I created the Jira:
>
>     https://issues.apache.org/jira/browse/KARAF-3494
>
>     I'm working on it.
>
>     Regards
>     JB
>
>
>     On 01/29/2015 11:43 AM, Michael Täschner wrote:
>
>         Hi,
>
>         recently we upgraded ServiceMix from 5.1.3 to 5.3.0 based on
>         Karaf 2.3.x
>         and 2.4.x respectively. We manage our own customized container
>         where we
>         centralize configurations in a custom.properties via property
>         replacements.
>
>         Example: etc/org.apache.karaf.shell.cfg
>         sshPort = ${isb.sshPort}
>
>         with etc/custom.properties
>         isb.sshPort=8101
>
>         This worked correctly in karaf 2.3.x (ServiceMix 5.1.x).
>         Unfortunately
>         after upgrading to karaf 2.4.x (ServiceMix 5.3.0/1) we get following
>         error on commandline when trying to connect to karaf shell:
>
>         D:\work\servicemix\isb-smx-5.3.0\bin>client.bat -a 8101 -u smx
>         -p smx
>         Exception in thread "main" java.lang.NumberFormatException: For
>         input
>         string: "${isb.sshPort}"
>                   at
>         java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
>                   at java.lang.Integer.parseInt(Integer.java:481)
>                   at java.lang.Integer.parseInt(Integer.java:527)
>                   at org.apache.karaf.client.Main.main(Main.java:58)
>
>         The port is bound by the process (checked via netstat) but the
>         "client"
>         does not seem to be able to resolve the property replacement.
>         This has
>         been tested with both ServiceMix 5.3.0 /5.3.1 and the underlying
>         karaf
>         2.4.0 /2.4.1
>
>         My question is now: Is this regression in release upgrade Karaf
>         2.3.x to
>         2.4.x or a result of the security mechanisms introduced with
>         2.4.0? If
>         the latter, can I work around this?
>
>         Thanks and Best Regards,
>         Michael
>
>
>     --
>     Jean-Baptiste Onofré
>     jbonofre@apache.org <mailto:jbonofre@apache.org>
>     http://blog.nanthrax.net
>     Talend - http://www.talend.com
>
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Mime
View raw message