Re: Weird Exception Karaf 4.1.3 on startup

2017-11-08 Thread Jean-Baptiste Onofré

Hi Scott,

Good catch. So, it only happens with when you start karaf with ./start only (not 
with ./karaf) ?

I could be related to the terminal settings. Let me try to reproduce.

Regards
JB

On 11/08/2017 06:31 AM, Kevin Carr wrote:

Anyone understand what this exception is for?

I get this as soon as I run ./karaf with or without debug.  If I run ./start, it 
runs, but as soon as I try to connect via ssh it stops.


Error executing command: For input string: "1502467344394"
Exception in thread "Karaf local console user karaf" 
java.lang.IndexOutOfBoundsException: fromIndex = -1981

at java.util.SubList.(AbstractList.java:620)
at java.util.AbstractList.subList(AbstractList.java:484)
at org.jline.reader.impl.history.DefaultHistory.save(DefaultHistory.java:123)
at 
org.apache.karaf.shell.impl.console.ConsoleSessionImpl.close(ConsoleSessionImpl.java:283)
at 
org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:380)

at java.lang.Thread.run(Thread.java:748)

Thanks

--
Scott Carr


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


Why is org.apache.aries.blueprint.core.compatibility installed for some some features

2017-11-08 Thread João Assunção
Hello all,

In Karaf 4.1.3 when I do a feature:install one of my features
the org.apache.aries.blueprint.core.compatibility bundle gets installed
causing a refresh of all bundles and a Karaf shutdown.

None of the bundles in the feature uses blueprint and the more exotic thing
is that one of the bundles uses a Contional-Package instruction.

What are possible reasons for this blueprint compatibility bundle to get
installed ?

Thanks.

João Assunção

Email: joao.assun...@exploitsys.com
Mobile: +351 916968984
Phone: +351 211933149
Web: www.exploitsys.com


Re: Weird Exception Karaf 4.1.3 on startup

2017-11-08 Thread Kevin Carr
It happens with both.  With .start it seems to start fine.  Then when I ssh
I get the issue.

With .karaf it is immediate due to the terminal opening with the command.

Seems to related to parse of history for the cli...


On Nov 8, 2017 2:14 AM, "Jean-Baptiste Onofré"  wrote:

Hi Scott,

Good catch. So, it only happens with when you start karaf with ./start only
(not with ./karaf) ?
I could be related to the terminal settings. Let me try to reproduce.

Regards
JB


On 11/08/2017 06:31 AM, Kevin Carr wrote:

> Anyone understand what this exception is for?
>
> I get this as soon as I run ./karaf with or without debug.  If I run
> ./start, it runs, but as soon as I try to connect via ssh it stops.
>
> Error executing command: For input string: "1502467344394"
> Exception in thread "Karaf local console user karaf"
> java.lang.IndexOutOfBoundsException: fromIndex = -1981
> at java.util.SubList.(AbstractList.java:620)
> at java.util.AbstractList.subList(AbstractList.java:484)
> at org.jline.reader.impl.history.DefaultHistory.save(DefaultHis
> tory.java:123)
> at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.close
> (ConsoleSessionImpl.java:283)
> at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(
> ConsoleSessionImpl.java:380)
> at java.lang.Thread.run(Thread.java:748)
>
> Thanks
>
> --
> Scott Carr
>

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


Re: Weird Exception Karaf 4.1.3 on startup

2017-11-08 Thread Kevin Carr
Oh, this is on Linux with openjdk 1.8.144.

On Nov 8, 2017 2:14 AM, "Jean-Baptiste Onofré"  wrote:

Hi Scott,

Good catch. So, it only happens with when you start karaf with ./start only
(not with ./karaf) ?
I could be related to the terminal settings. Let me try to reproduce.

Regards
JB


On 11/08/2017 06:31 AM, Kevin Carr wrote:

> Anyone understand what this exception is for?
>
> I get this as soon as I run ./karaf with or without debug.  If I run
> ./start, it runs, but as soon as I try to connect via ssh it stops.
>
> Error executing command: For input string: "1502467344394"
> Exception in thread "Karaf local console user karaf"
> java.lang.IndexOutOfBoundsException: fromIndex = -1981
> at java.util.SubList.(AbstractList.java:620)
> at java.util.AbstractList.subList(AbstractList.java:484)
> at org.jline.reader.impl.history.DefaultHistory.save(DefaultHis
> tory.java:123)
> at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.close
> (ConsoleSessionImpl.java:283)
> at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(
> ConsoleSessionImpl.java:380)
> at java.lang.Thread.run(Thread.java:748)
>
> Thanks
>
> --
> Scott Carr
>

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


Re: Weird Exception Karaf 4.1.3 on startup

2017-11-08 Thread Jean-Baptiste Onofré
Can you share your os and terminal settings ?

It works fine for me on Ubuntu.

Regards
JB

On Nov 8, 2017, 13:56, at 13:56, Kevin Carr  wrote:
>It happens with both.  With .start it seems to start fine.  Then when I
>ssh
>I get the issue.
>
>With .karaf it is immediate due to the terminal opening with the
>command.
>
>Seems to related to parse of history for the cli...
>
>
>On Nov 8, 2017 2:14 AM, "Jean-Baptiste Onofré"  wrote:
>
>Hi Scott,
>
>Good catch. So, it only happens with when you start karaf with ./start
>only
>(not with ./karaf) ?
>I could be related to the terminal settings. Let me try to reproduce.
>
>Regards
>JB
>
>
>On 11/08/2017 06:31 AM, Kevin Carr wrote:
>
>> Anyone understand what this exception is for?
>>
>> I get this as soon as I run ./karaf with or without debug.  If I run
>> ./start, it runs, but as soon as I try to connect via ssh it stops.
>>
>> Error executing command: For input string: "1502467344394"
>> Exception in thread "Karaf local console user karaf"
>> java.lang.IndexOutOfBoundsException: fromIndex = -1981
>> at java.util.SubList.(AbstractList.java:620)
>> at java.util.AbstractList.subList(AbstractList.java:484)
>> at org.jline.reader.impl.history.DefaultHistory.save(DefaultHis
>> tory.java:123)
>> at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.close
>> (ConsoleSessionImpl.java:283)
>> at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(
>> ConsoleSessionImpl.java:380)
>> at java.lang.Thread.run(Thread.java:748)
>>
>> Thanks
>>
>> --
>> Scott Carr
>>
>
>--
>Jean-Baptiste Onofré
>jbono...@apache.org
>http://blog.nanthrax.net
>Talend - http://www.talend.com


Re: Weird Exception Karaf 4.1.3 on startup

2017-11-08 Thread Jean-Baptiste Onofré
What about the terminal ?

Regards
JB

On Nov 8, 2017, 13:57, at 13:57, Kevin Carr  wrote:
>Oh, this is on Linux with openjdk 1.8.144.
>
>On Nov 8, 2017 2:14 AM, "Jean-Baptiste Onofré"  wrote:
>
>Hi Scott,
>
>Good catch. So, it only happens with when you start karaf with ./start
>only
>(not with ./karaf) ?
>I could be related to the terminal settings. Let me try to reproduce.
>
>Regards
>JB
>
>
>On 11/08/2017 06:31 AM, Kevin Carr wrote:
>
>> Anyone understand what this exception is for?
>>
>> I get this as soon as I run ./karaf with or without debug.  If I run
>> ./start, it runs, but as soon as I try to connect via ssh it stops.
>>
>> Error executing command: For input string: "1502467344394"
>> Exception in thread "Karaf local console user karaf"
>> java.lang.IndexOutOfBoundsException: fromIndex = -1981
>> at java.util.SubList.(AbstractList.java:620)
>> at java.util.AbstractList.subList(AbstractList.java:484)
>> at org.jline.reader.impl.history.DefaultHistory.save(DefaultHis
>> tory.java:123)
>> at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.close
>> (ConsoleSessionImpl.java:283)
>> at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(
>> ConsoleSessionImpl.java:380)
>> at java.lang.Thread.run(Thread.java:748)
>>
>> Thanks
>>
>> --
>> Scott Carr
>>
>
>--
>Jean-Baptiste Onofré
>jbono...@apache.org
>http://blog.nanthrax.net
>Talend - http://www.talend.com


Re: features being configured twice

2017-11-08 Thread Tim Moloney
Yes, the config blocks start like



No, I don't start with any custom service configuration files in etc.  Only
the ones that come with Karaf.  After running, however, configuration files
for each of the services are created in etc (see the last paragraph in my
original email).

I did notice that if I comment out the config blocks in the features
repository, a service will get configured only once if I
- start with a service's configuration file in etc before starting Karaf
- copy a service's configuration file to etc after starting Karaf

If I understand Karaf correctly, this means that the fileinstall capability
is working correctly and that its the feature capability that is sending
configurations to configadmin twice.

Thanks,
Tim

On Tue, Nov 7, 2017 at 11:57 PM, Jean-Baptiste Onofré 
wrote:

> Hi Tim,
>
> the  contains a config factory right ? Something like pid-foo ?
>
> Do you have the corresponding cfg file in the etc folder ?
>
> Regards
> JB
>
>
> On 11/08/2017 12:58 AM, Tim Moloney wrote:
>
>> I'm upgrading an application from Karaf 2.3.3 to 4.0.10 and have it so
>> that everything compiles and loads correctly.  Unfortunately, the services
>> are getting configured twice.
>>
>> The app configures its services using named  blocks in the
>> features repository.  With Karaf 4.0.10, the service factory's
>> update(servicePid, dictionary) method is getting called twice with the same
>> config block (dictionary) but with different servicePids.
>>
>> Any thoughts on how to get around this issue?
>>
>> On a related note, after the services are configured, a new file is
>> created in the etc directory named after the config block name.  This
>> didn't happen with Karaf 2.3.3.  Is there a configuration so these files
>> aren't written?
>>
>> Thanks,
>> Tim
>>
>>
> --
> Jean-Baptiste Onofré
> jbono...@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>


Re: Why is org.apache.aries.blueprint.core.compatibility installed for some some features

2017-11-08 Thread Guillaume Nodet
Can you use feature:install --verbose --all-wiring and send us the output ?

2017-11-08 11:03 GMT+01:00 João Assunção :

> Hello all,
>
> In Karaf 4.1.3 when I do a feature:install one of my features
> the org.apache.aries.blueprint.core.compatibility bundle gets installed
> causing a refresh of all bundles and a Karaf shutdown.
>
> None of the bundles in the feature uses blueprint and the more exotic
> thing is that one of the bundles uses a Contional-Package instruction.
>
> What are possible reasons for this blueprint compatibility bundle to get
> installed ?
>
> Thanks.
>
> João Assunção
>
> Email: joao.assun...@exploitsys.com
> Mobile: +351 916968984 <+351%20916%20968%20984>
> Phone: +351 211933149 <+351%2021%20193%203149>
> Web: www.exploitsys.com
>
>
>


-- 

Guillaume Nodet


Re: Why is org.apache.aries.blueprint.core.compatibility installed for some some features

2017-11-08 Thread João Assunção
Of course

The feature I'm trying to install:

karaf@root()> feature:info paybox-io-modbus
Feature paybox-io-modbus 0.1.0.SNAPSHOT
Description:
  Modbus I/O implementation
Feature has no configuration
Feature has no configuration files
Feature has no dependencies.
Feature contains followed bundles:
  mvn:pt.brisa.common/common-service-core/1.3.0
  mvn:pt.brisa.paybox/io-api/0.1.0-SNAPSHOT
  mvn:pt.brisa.paybox/io-modbus/0.1.0-SNAPSHOT
  mvn:pt.brisa.paybox/io-commands/0.1.0-SNAPSHOT
Feature has no conditionals.

In attachment the output of feature:install

Thank you.

João Assunção

Email: joao.assun...@exploitsys.com
Mobile: +351 916968984
Phone: +351 211933149
Web: www.exploitsys.com



On Wed, Nov 8, 2017 at 2:39 PM, Guillaume Nodet  wrote:

> Can you use feature:install --verbose --all-wiring and send us the output
> ?
>
> 2017-11-08 11:03 GMT+01:00 João Assunção :
>
>> Hello all,
>>
>> In Karaf 4.1.3 when I do a feature:install one of my features
>> the org.apache.aries.blueprint.core.compatibility bundle gets installed
>> causing a refresh of all bundles and a Karaf shutdown.
>>
>> None of the bundles in the feature uses blueprint and the more exotic
>> thing is that one of the bundles uses a Contional-Package instruction.
>>
>> What are possible reasons for this blueprint compatibility bundle to get
>> installed ?
>>
>> Thanks.
>>
>> João Assunção
>>
>> Email: joao.assun...@exploitsys.com
>> Mobile: +351 916968984 <+351%20916%20968%20984>
>> Phone: +351 211933149 <+351%2021%20193%203149>
>> Web: www.exploitsys.com
>>
>>
>>
>
>
> --
> 
> Guillaume Nodet
>
>
Adding features: paybox-io-modbus/[0.1.0.SNAPSHOT,0.1.0.SNAPSHOT]
Wiring:
root#cxf-bindings-soap-3.1.10 / 0.0.0
cxf-bindings-soap / 3.1.10
root#cxf-http-jetty_fix-3.1.10 / 0.0.0
cxf-http-jetty_fix / 3.1.10
root#paybox-io-modbus-0.1.0.SNAPSHOT / 0.0.0
paybox-io-modbus / 0.1.0.SNAPSHOT
root#http-4.1.3 / 0.0.0
http / 4.1.3
com.sun.jna / 4.4.0
root#621e1d5c-bb18-4d10-ac42-5dcad3b832eb-0.0.0 / 0.0.0
root#log-4.1.3 / 0.0.0
log / 4.1.3
root#pax-http-jetty-6.0.7 / 0.0.0
pax-http-jetty / 6.0.7
root#aries-rsa-discovery-zookeeper-server-1.10.0 / 0.0.0
aries-rsa-discovery-zookeeper-server / 1.10.0
root#hibernate-5.2.8.Final / 0.0.0
hibernate / 5.2.8.Final
root#ssh-4.1.3 / 0.0.0
ssh / 4.1.3
root#transaction-api-1.2.0 / 0.0.0
transaction-api / 1.2.0
org.eclipse.jdt.core.compiler.batch / 3.10.0.v20140604-1726
root / 0.0.0
root#pax-http-whiteboard-6.0.7 / 0.0.0
pax-http-whiteboard / 6.0.7
root#cxf-databinding-jaxb-3.1.10 / 0.0.0
cxf-databinding-jaxb / 3.1.10
javassist / 3.20.0.GA
root#hibernate-orm-5.2.8.Final / 0.0.0
org.fusesource.hawtbuf.hawtbuf / 1.11.0
root#aries-rsa-provider-fastbin-1.10.0 / 0.0.0
root#shell-4.1.3 / 0.0.0
shell / 4.1.3
root#transaction-manager-geronimo-1.3.3 / 0.0.0
transaction-manager-geronimo / 1.3.3
net.bytebuddy.byte-buddy / 1.6.6
root / 0.0.0
org.apache.felix.framework / 5.6.8
root#framework-4.1.3 / 0.0.0
org.apache.servicemix.bundles.javax-inject / 1.0.0.2
root / 0.0.0
root#aries-rsa-provider-fastbin-1.10.0 / 0.0.0
aries-rsa-provider-fastbin / 1.10.0
root#cxf-http-3.1.10 / 0.0.0
cxf-http / 3.1.10
root#pax-jdbc-1.1.0 / 0.0.0
pax-jdbc / 1.1.0
root#shell-compat-4.1.3 / 0.0.0
shell-compat / 4.1.3
root#jdbc-4.1.3 / 0.0.0
jdbc / 4.1.3
root#pax-http-6.0.7 / 0.0.0
pax-http / 6.0.7
javax.el-api / 3.0.0
root / 0.0.0
javax.servlet-api / 3.1.0
root / 0.0.0
org.jboss.jandex / 2.0.3.Final
root#hibernate-orm-5.2.8.Final / 0.0.0
root#cxf-jaxws-3.1.10 / 0.0.0
cxf-jaxws / 3.1.10
root#jaas-boot / 0.0.0
jaas-boot / 0.0.0
root#pax-jdbc-postgresql-1.1.0 / 0.0.0
pax-jdbc-postgresql / 1.1.0
root#aries-proxy-4.1.3 / 0.0.0
aries-proxy / 4.1.3
root#package-4.1.3 / 0.0.0
package / 4.1.3
jaas-boot / 0.0.0
root#jaas-boot / 0.0.0
root#framework-4.1.3 / 0.0.0
framework / 4.1.3
root#diagnostic-4.1.3 / 0.0.0
diagnostic / 4.1.3
root#pax-jdbc-config-1.1.0 / 0.0.0
pax-jdbc-config / 1.1.0
root#cxf-core-3.1.10 / 0.0.0
cxf-core / 3.1.10
org.ops4j.base.spi / 1.5.0
root / 0.0.0
root#aries-rsa-discovery-zookeeper-1.10.0 / 0.0.0
aries-rsa-discovery-zookeeper / 1.10.0
javax.interceptor-api / 1.2.0
root / 0.0.0
root#hibernate-orm-5.2.8.Final / 0.0.0
hibernate-orm / 5.2.8.Final
root#pax-jdbc-spec-1.1.0 / 0.0.0
pax-jdbc-spec / 1.1.0
root#service-4.1.3 / 0.0.0
service / 4.1.3
root#instance-4.1.3 / 0.0.0
instance / 4.1.3
root#621e1d5c-bb18-4d10-ac42-5dcad3b832eb-0.0.0 / 0.0.0
621e1d5c-bb18-4d10-

Re: Why is org.apache.aries.blueprint.core.compatibility installed for some some features

2017-11-08 Thread Guillaume Nodet
THis looks like a regression caused by KARAF-4932.
Could you please raise a JIRA for this issue ?

A workaround could be to modify the generation of you custom assembly so
that the blueprint compatibility bundle is installed by default.  At least,
it would avoid the unwanted refresh of all blueprint apps.

2017-11-08 17:16 GMT+01:00 João Assunção :

> Of course
>
> The feature I'm trying to install:
>
> karaf@root()> feature:info paybox-io-modbus
> Feature paybox-io-modbus 0.1.0.SNAPSHOT
> Description:
>   Modbus I/O implementation
> Feature has no configuration
> Feature has no configuration files
> Feature has no dependencies.
> Feature contains followed bundles:
>   mvn:pt.brisa.common/common-service-core/1.3.0
>   mvn:pt.brisa.paybox/io-api/0.1.0-SNAPSHOT
>   mvn:pt.brisa.paybox/io-modbus/0.1.0-SNAPSHOT
>   mvn:pt.brisa.paybox/io-commands/0.1.0-SNAPSHOT
> Feature has no conditionals.
>
> In attachment the output of feature:install
>
> Thank you.
>
> João Assunção
>
> Email: joao.assun...@exploitsys.com
> Mobile: +351 916968984 <+351%20916%20968%20984>
> Phone: +351 211933149 <+351%2021%20193%203149>
> Web: www.exploitsys.com
>
>
>
> On Wed, Nov 8, 2017 at 2:39 PM, Guillaume Nodet  wrote:
>
>> Can you use feature:install --verbose --all-wiring and send us the
>> output ?
>>
>> 2017-11-08 11:03 GMT+01:00 João Assunção :
>>
>>> Hello all,
>>>
>>> In Karaf 4.1.3 when I do a feature:install one of my features
>>> the org.apache.aries.blueprint.core.compatibility bundle gets installed
>>> causing a refresh of all bundles and a Karaf shutdown.
>>>
>>> None of the bundles in the feature uses blueprint and the more exotic
>>> thing is that one of the bundles uses a Contional-Package instruction.
>>>
>>> What are possible reasons for this blueprint compatibility bundle to get
>>> installed ?
>>>
>>> Thanks.
>>>
>>> João Assunção
>>>
>>> Email: joao.assun...@exploitsys.com
>>> Mobile: +351 916968984 <+351%20916%20968%20984>
>>> Phone: +351 211933149 <+351%2021%20193%203149>
>>> Web: www.exploitsys.com
>>>
>>>
>>>
>>
>>
>> --
>> 
>> Guillaume Nodet
>>
>>
>


-- 

Guillaume Nodet


Re: Why is org.apache.aries.blueprint.core.compatibility installed for some some features

2017-11-08 Thread João Assunção
I will open an issue.

I had already implemented the workaround sugested and is working great. My
question was more due to curiosity why a feature not using blueprint would
trigger the installation of that bundle.

Thank you.

João Assunção

Email: joao.assun...@exploitsys.com
Mobile: +351 916968984
Phone: +351 211933149
Web: www.exploitsys.com



On Wed, Nov 8, 2017 at 4:48 PM, Guillaume Nodet  wrote:

> THis looks like a regression caused by KARAF-4932.
> Could you please raise a JIRA for this issue ?
>
> A workaround could be to modify the generation of you custom assembly so
> that the blueprint compatibility bundle is installed by default.  At least,
> it would avoid the unwanted refresh of all blueprint apps.
>
> 2017-11-08 17:16 GMT+01:00 João Assunção :
>
>> Of course
>>
>> The feature I'm trying to install:
>>
>> karaf@root()> feature:info paybox-io-modbus
>> Feature paybox-io-modbus 0.1.0.SNAPSHOT
>> Description:
>>   Modbus I/O implementation
>> Feature has no configuration
>> Feature has no configuration files
>> Feature has no dependencies.
>> Feature contains followed bundles:
>>   mvn:pt.brisa.common/common-service-core/1.3.0
>>   mvn:pt.brisa.paybox/io-api/0.1.0-SNAPSHOT
>>   mvn:pt.brisa.paybox/io-modbus/0.1.0-SNAPSHOT
>>   mvn:pt.brisa.paybox/io-commands/0.1.0-SNAPSHOT
>> Feature has no conditionals.
>>
>> In attachment the output of feature:install
>>
>> Thank you.
>>
>> João Assunção
>>
>> Email: joao.assun...@exploitsys.com
>> Mobile: +351 916968984 <+351%20916%20968%20984>
>> Phone: +351 211933149 <+351%2021%20193%203149>
>> Web: www.exploitsys.com
>>
>>
>>
>> On Wed, Nov 8, 2017 at 2:39 PM, Guillaume Nodet 
>> wrote:
>>
>>> Can you use feature:install --verbose --all-wiring and send us the
>>> output ?
>>>
>>> 2017-11-08 11:03 GMT+01:00 João Assunção :
>>>
 Hello all,

 In Karaf 4.1.3 when I do a feature:install one of my features
 the org.apache.aries.blueprint.core.compatibility bundle gets
 installed causing a refresh of all bundles and a Karaf shutdown.

 None of the bundles in the feature uses blueprint and the more exotic
 thing is that one of the bundles uses a Contional-Package instruction.

 What are possible reasons for this blueprint compatibility bundle to
 get installed ?

 Thanks.

 João Assunção

 Email: joao.assun...@exploitsys.com
 Mobile: +351 916968984 <+351%20916%20968%20984>
 Phone: +351 211933149 <+351%2021%20193%203149>
 Web: www.exploitsys.com



>>>
>>>
>>> --
>>> 
>>> Guillaume Nodet
>>>
>>>
>>
>
>
> --
> 
> Guillaume Nodet
>
>


RE: Need help resolving karaf 3.x dependency errors again

2017-11-08 Thread KARR, DAVID
> -Original Message-
> From: Jean-Baptiste Onofré [mailto:j...@nanthrax.net]
> Sent: Tuesday, November 07, 2017 8:56 PM
> To: user@karaf.apache.org
> Subject: Re: Need help resolving karaf 3.x dependency errors again
> 
> Hi,
> 
> Can you try to install the spring-aop feature provided by Karaf ?

I guess I should have elaborated more on my goals for this.  Obviously, it's 
missing the spring-aop feature, so the fix is to install it.  The thing is, 
this code is already running in production.  My problem is not that the code is 
wrong, but that my development environment is misconfigured.

In retrospect, it's probably a dumb question, but I'm just looking for tools or 
techniques I can use to debug why things like this happen in a codebase.  I'm 
discovering that there are some undocumented dependencies between other 
applications that run in the same container, so I'm finding I have to figure 
out what other applications I have to checkout and build, one of which likely 
has a feature mapping for this artifact.

> On 11/07/2017 10:54 PM, KARR, DAVID wrote:
> > A month or so ago, I did some work on an app that runs in Karaf 3.x.
> It took me quite a while to figure out several dependency resolution
> issues, but I was able to get it working.  I've since had my laptop
> reimaged, and now I have to do some more work in that app.  The
> reimaging "restored" my data, but I'm finding some things didn't copy
> over exactly right.  My current problem could be related to that, or it
> may be something else that I'm forgetting.
> >
> > When I try to install my service, it installs a bunch of dependencies,
> and then fails with this:
> >
> > 
> > Error executing command: Can't install feature onemap-service/0.0.0:
> > Could not start bundle
> mvn:org.springframework/org.springframework.web/3.2.4.RELEASE in
> feature(s) common-spring-jdbc-1.1.0-SNAPSHOT: Unresolved constraint in
> bundle org.springframework.web [71]: Unable to resolve 71.0: missing
> requirement [71.0] osgi.wiring.package;
> (&(osgi.wiring.package=org.springframework.aop.framework)(version>=3.2.4
> .RELEASE)(version<=3.2.4.RELEASE))
> > 
> >
> > Very little is changed in the code since I last worked on it (no
> changes to dependencies), so I don't know why this might be happening
> now.
> >
> > This is the definition of the "common-spring-jdbc" feature:
> > ---
> >   resolver='(obr)'>
> >
> mvn:org.springframework/org.springframework.web/3.2.4.RELEASE undle>
> >
> mvn:org.springframework/org.springframework.jdbc/3.2.4.RELEASE bundle>
> >  mvn:org.springframework.ws/spring-
> xml/2.1.4.RELEASE
> >  
> > ---
> >
> > I tried doing "bundle:tree-show org.springframework.web".  This
> printed a bunch of "import" lines, including the following one:
> > 
> > - import org.springframework.aop.framework;version="[3.2.4.RELEASE,
> 3.2.4.RELEASE]": WARNING - unable to find matching export
> > 
> >
> > At the end of this output, it printed the tree of dependencies of
> org.springframework.web, but the tree did not include
> org.springframework.aop.framework.
> >
> > What are some possible resolutions to this?
> >
> 
> --
> Jean-Baptiste Onofré
> jbono...@apache.org
> https://urldefense.proofpoint.com/v2/url?u=http-
> 3A__blog.nanthrax.net&d=DwID-g&c=LFYZ-o9_HUMeMTSQicvjIg&r=OsTemSXEn-
> xy2uk0vYF_EA&m=PZRtB4dU6K6NHHWqbqBNcPUT2afuTtyasmAV8p-So1Y&s=9zN0-
> rwKAfPF5tGgyS8a5BOpsI7t2nKV9jIE4eIA9Uw&e=
> Talend - https://urldefense.proofpoint.com/v2/url?u=http-
> 3A__www.talend.com&d=DwID-g&c=LFYZ-o9_HUMeMTSQicvjIg&r=OsTemSXEn-
> xy2uk0vYF_EA&m=PZRtB4dU6K6NHHWqbqBNcPUT2afuTtyasmAV8p-
> So1Y&s=mxhfdxIOMOf6GcZfIiXNaBoOHIHLkwQBMXBvw8FuuCY&e=


[4.2.0.M1] - Startup failed

2017-11-08 Thread Francois Papon
Hi,

When I launch Karaf I've got this error :

./bin/karaf: 218: ./bin/karaf: Bad substitution


Karaf version : 4.2.0.M1

Karaf source : download from Karaf website
(http://www.apache.org/dyn/closer.lua/karaf/4.2.0.M1/apache-karaf-4.2.0.M1.tar.gz)

Integrity check : ok

I patch the ./bin/inc file with [KARAF-5466] and [KARAF-5467]

I also try with the last success jenkins build :
apache-karaf-4.2.0-20171106.203358-433.tar.gz


JVM version :

java version "9.0.1"
Java(TM) SE Runtime Environment (build 9.0.1+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)

(I also try with openjdk-9, java-oracle-8, openjdk-8)

OS : Debian stable : 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28)
x86_64 GNU/Linux



Re: [4.2.0.M1] - Startup failed

2017-11-08 Thread Jean-Baptiste Onofré
Hmm. What's the shell ?

It works on my machines.

Regards
JB

On Nov 8, 2017, 21:03, at 21:03, Francois Papon  
wrote:
>Hi,
>
>When I launch Karaf I've got this error :
>
>./bin/karaf: 218: ./bin/karaf: Bad substitution
>
>
>Karaf version : 4.2.0.M1
>
>Karaf source : download from Karaf website
>(http://www.apache.org/dyn/closer.lua/karaf/4.2.0.M1/apache-karaf-4.2.0.M1.tar.gz)
>
>Integrity check : ok
>
>I patch the ./bin/inc file with [KARAF-5466] and [KARAF-5467]
>
>I also try with the last success jenkins build :
>apache-karaf-4.2.0-20171106.203358-433.tar.gz
>
>
>JVM version :
>
>java version "9.0.1"
>Java(TM) SE Runtime Environment (build 9.0.1+11)
>Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)
>
>(I also try with openjdk-9, java-oracle-8, openjdk-8)
>
>OS : Debian stable : 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28)
>x86_64 GNU/Linux


Re: [4.2.0.M1] - Startup failed

2017-11-08 Thread Francois Papon
I had tested on standard Debian shell, terminator and outside gnome (tty)


Le 09/11/2017 à 00:09, Jean-Baptiste Onofré a écrit :
> Hmm. What's the shell ?
>
> It works on my machines.
>
> Regards
> JB
> On Nov 8, 2017, at 21:03, Francois Papon  > wrote:
>
> Hi,
>
> When I launch Karaf I've got this error :
>
> ./bin/karaf: 218: ./bin/karaf: Bad substitution
>
>
> Karaf version : 4.2.0.M1
>
> Karaf source : download from Karaf website
> 
> (http://www.apache.org/dyn/closer.lua/karaf/4.2.0.M1/apache-karaf-4.2.0.M1.tar.gz)
>
> Integrity check : ok
>
> I patch the ./bin/inc file with [KARAF-5466] and [KARAF-5467]
>
> I also try with the last success jenkins build :
> apache-karaf-4.2.0-20171106.203358-433.tar.gz
> 
> 
>
> JVM version :
>
> java version "9.0.1"
> Java(TM) SE Runtime Environment (build 9.0.1+11)
> Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)
>
> (I also try with openjdk-9, java-oracle-8, openjdk-8)
>
> OS : Debian stable : 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1
> (2017-09-28) x86_64 GNU/Linux
>



Re: [4.2.0.M1] - Startup failed

2017-11-08 Thread Jean-Baptiste Onofré
Let me try to reproduce. I'm using Oracle jdk. So let me try with openjdk.

Regards
JB

On Nov 8, 2017, 21:17, at 21:17, Francois Papon  
wrote:
>I had tested on standard Debian shell, terminator and outside gnome
>(tty)
>
>
>Le 09/11/2017 à 00:09, Jean-Baptiste Onofré a écrit :
>> Hmm. What's the shell ?
>>
>> It works on my machines.
>>
>> Regards
>> JB
>> On Nov 8, 2017, at 21:03, Francois Papon
>> > wrote:
>>
>> Hi,
>>
>> When I launch Karaf I've got this error :
>>
>> ./bin/karaf: 218: ./bin/karaf: Bad substitution
>>
>>
>> Karaf version : 4.2.0.M1
>>
>> Karaf source : download from Karaf website
>>
>(http://www.apache.org/dyn/closer.lua/karaf/4.2.0.M1/apache-karaf-4.2.0.M1.tar.gz)
>>
>> Integrity check : ok
>>
>> I patch the ./bin/inc file with [KARAF-5466] and [KARAF-5467]
>>
>> I also try with the last success jenkins build :
>> apache-karaf-4.2.0-20171106.203358-433.tar.gz
>>   
>
>>
>> JVM version :
>>
>> java version "9.0.1"
>> Java(TM) SE Runtime Environment (build 9.0.1+11)
>> Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)
>>
>> (I also try with openjdk-9, java-oracle-8, openjdk-8)
>>
>> OS : Debian stable : 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1
>> (2017-09-28) x86_64 GNU/Linux
>>


Re: [4.2.0.M1] - Startup failed

2017-11-08 Thread Jean-Baptiste Onofré
I just tested with bash and zsh.

Continue to investigate.

Regards
JB

On Nov 8, 2017, 21:20, at 21:20, "Jean-Baptiste Onofré"  
wrote:
>Let me try to reproduce. I'm using Oracle jdk. So let me try with
>openjdk.
>
>Regards
>JB
>
>On Nov 8, 2017, 21:17, at 21:17, Francois Papon
> wrote:
>>I had tested on standard Debian shell, terminator and outside gnome
>>(tty)
>>
>>
>>Le 09/11/2017 à 00:09, Jean-Baptiste Onofré a écrit :
>>> Hmm. What's the shell ?
>>>
>>> It works on my machines.
>>>
>>> Regards
>>> JB
>>> On Nov 8, 2017, at 21:03, Francois Papon
 > wrote:
>>>
>>> Hi,
>>>
>>> When I launch Karaf I've got this error :
>>>
>>> ./bin/karaf: 218: ./bin/karaf: Bad substitution
>>>
>>>
>>> Karaf version : 4.2.0.M1
>>>
>>> Karaf source : download from Karaf website
>>>
>>(http://www.apache.org/dyn/closer.lua/karaf/4.2.0.M1/apache-karaf-4.2.0.M1.tar.gz)
>>>
>>> Integrity check : ok
>>>
>>> I patch the ./bin/inc file with [KARAF-5466] and [KARAF-5467]
>>>
>>> I also try with the last success jenkins build :
>>> apache-karaf-4.2.0-20171106.203358-433.tar.gz
>>>
>>
>>>
>>> JVM version :
>>>
>>> java version "9.0.1"
>>> Java(TM) SE Runtime Environment (build 9.0.1+11)
>>> Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)
>>>
>>> (I also try with openjdk-9, java-oracle-8, openjdk-8)
>>>
>>> OS : Debian stable : 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1
>>> (2017-09-28) x86_64 GNU/Linux
>>>


Re: [4.2.0.M1] - Startup failed

2017-11-08 Thread Francois Papon
I find a work around :

|readlink -f $(which sh)/bin/dash sh ./bin/karaf don't work but bash
./bin/karaf work |


Le 09/11/2017 à 00:20, Jean-Baptiste Onofré a écrit :
> Let me try to reproduce. I'm using Oracle jdk. So let me try with openjdk.
>
> Regards
> JB
> On Nov 8, 2017, at 21:17, Francois Papon  > wrote:
>
> I had tested on standard Debian shell, terminator and outside
> gnome (tty)
>
>
> Le 09/11/2017 à 00:09, Jean-Baptiste Onofré a écrit :
>> Hmm. What's the shell ?
>>
>> It works on my machines.
>>
>> Regards
>> JB
>> On Nov 8, 2017, at 21:03, Francois Papon <
>> francois.pa...@openobject.fr
>> > wrote:
>>
>> Hi,
>>
>> When I launch Karaf I've got this error :
>>
>> ./bin/karaf: 218: ./bin/karaf: Bad substitution
>>
>>
>> Karaf version : 4.2.0.M1
>>
>> Karaf source : download from Karaf website
>> 
>> (http://www.apache.org/dyn/closer.lua/karaf/4.2.0.M1/apache-karaf-4.2.0.M1.tar.gz)
>>
>> Integrity check : ok
>>
>> I patch the ./bin/inc file with [KARAF-5466] and [KARAF-5467]
>>
>> I also try with the last success jenkins build :
>> apache-karaf-4.2.0-20171106.203358-433.tar.gz
>> 
>> 
>>
>> JVM version :
>>
>> java version "9.0.1"
>> Java(TM) SE Runtime Environment (build 9.0.1+11)
>> Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)
>>
>> (I also try with openjdk-9, java-oracle-8, openjdk-8)
>>
>> OS : Debian stable : 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1
>> (2017-09-28) x86_64 GNU/Linux
>>
>



Re: [4.2.0.M1] - Startup failed

2017-11-08 Thread Jean-Baptiste Onofré
Bash is not your default shell ?

On Nov 8, 2017, 21:22, at 21:22, Francois Papon  
wrote:
>I find a work around :
>
>|readlink -f $(which sh)/bin/dash sh ./bin/karaf don't work but bash
>./bin/karaf work |
>
>
>Le 09/11/2017 à 00:20, Jean-Baptiste Onofré a écrit :
>> Let me try to reproduce. I'm using Oracle jdk. So let me try with
>openjdk.
>>
>> Regards
>> JB
>> On Nov 8, 2017, at 21:17, Francois Papon
>> > wrote:
>>
>> I had tested on standard Debian shell, terminator and outside
>> gnome (tty)
>>
>>
>> Le 09/11/2017 à 00:09, Jean-Baptiste Onofré a écrit :
>>> Hmm. What's the shell ?
>>>
>>> It works on my machines.
>>>
>>> Regards
>>> JB
>>> On Nov 8, 2017, at 21:03, Francois Papon <
>>> francois.pa...@openobject.fr
>>> > wrote:
>>>
>>> Hi,
>>>
>>> When I launch Karaf I've got this error :
>>>
>>> ./bin/karaf: 218: ./bin/karaf: Bad substitution
>>>
>>>
>>> Karaf version : 4.2.0.M1
>>>
>>> Karaf source : download from Karaf website
>>>
>(http://www.apache.org/dyn/closer.lua/karaf/4.2.0.M1/apache-karaf-4.2.0.M1.tar.gz)
>>>
>>> Integrity check : ok
>>>
>>> I patch the ./bin/inc file with [KARAF-5466] and
>[KARAF-5467]
>>>
>>> I also try with the last success jenkins build :
>>> apache-karaf-4.2.0-20171106.203358-433.tar.gz
>>>
>
>>>
>>> JVM version :
>>>
>>> java version "9.0.1"
>>> Java(TM) SE Runtime Environment (build 9.0.1+11)
>>> Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed
>mode)
>>>
>>> (I also try with openjdk-9, java-oracle-8, openjdk-8)
>>>
>>> OS : Debian stable : 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1
>>> (2017-09-28) x86_64 GNU/Linux
>>>
>>


Re: [4.2.0.M1] - Startup failed

2017-11-08 Thread Francois Papon
I never change it, may be a Debian upgrade.

But I work with other Karaf version


Le 09/11/2017 à 00:23, Jean-Baptiste Onofré a écrit :
> Bash is not your default shell ?
> On Nov 8, 2017, at 21:22, Francois Papon  > wrote:
>
> I find a work around :
>
> |readlink -f $(which sh)/bin/dash sh ./bin/karaf don't work but
> bash ./bin/karaf work |
>
>
> Le 09/11/2017 à 00:20, Jean-Baptiste Onofré a écrit :
>> Let me try to reproduce. I'm using Oracle jdk. So let me try with
>> openjdk.
>>
>> Regards
>> JB
>> On Nov 8, 2017, at 21:17, Francois Papon <
>> francois.pa...@openobject.fr
>> > wrote:
>>
>> I had tested on standard Debian shell, terminator and outside
>> gnome (tty)
>>
>>
>> Le 09/11/2017 à 00:09, Jean-Baptiste Onofré a écrit :
>>> Hmm. What's the shell ?
>>>
>>> It works on my machines.
>>>
>>> Regards
>>> JB
>>> On Nov 8, 2017, at 21:03, Francois Papon <
>>> francois.pa...@openobject.fr
>>> > wrote:
>>>
>>> Hi,
>>>
>>> When I launch Karaf I've got this error :
>>>
>>> ./bin/karaf: 218: ./bin/karaf: Bad substitution
>>>
>>>
>>> Karaf version : 4.2.0.M1
>>>
>>> Karaf source : download from Karaf website
>>> 
>>> (http://www.apache.org/dyn/closer.lua/karaf/4.2.0.M1/apache-karaf-4.2.0.M1.tar.gz)
>>>
>>> Integrity check : ok
>>>
>>> I patch the ./bin/inc file with [KARAF-5466] and
>>> [KARAF-5467]
>>>
>>> I also try with the last success jenkins build :
>>> apache-karaf-4.2.0-20171106.203358-433.tar.gz
>>> 
>>> 
>>>
>>> JVM version :
>>>
>>> java version "9.0.1"
>>> Java(TM) SE Runtime Environment (build 9.0.1+11)
>>> Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed
>>> mode)
>>>
>>> (I also try with openjdk-9, java-oracle-8, openjdk-8)
>>>
>>> OS : Debian stable : 4.9.0-4-amd64 #1 SMP Debian
>>> 4.9.51-1 (2017-09-28) x86_64 GNU/Linux
>>>
>>
>



Re: [4.2.0.M1] - Startup failed

2017-11-08 Thread Jean-Baptiste Onofré
Weird. Let me double check.

Regards
JB

On Nov 8, 2017, 21:26, at 21:26, Francois Papon  
wrote:
>I never change it, may be a Debian upgrade.
>
>But I work with other Karaf version
>
>
>Le 09/11/2017 à 00:23, Jean-Baptiste Onofré a écrit :
>> Bash is not your default shell ?
>> On Nov 8, 2017, at 21:22, Francois Papon
>> > wrote:
>>
>> I find a work around :
>>
>> |readlink -f $(which sh)/bin/dash sh ./bin/karaf don't work but
>> bash ./bin/karaf work |
>>
>>
>> Le 09/11/2017 à 00:20, Jean-Baptiste Onofré a écrit :
>>> Let me try to reproduce. I'm using Oracle jdk. So let me try
>with
>>> openjdk.
>>>
>>> Regards
>>> JB
>>> On Nov 8, 2017, at 21:17, Francois Papon <
>>> francois.pa...@openobject.fr
>>> > wrote:
>>>
>>> I had tested on standard Debian shell, terminator and
>outside
>>> gnome (tty)
>>>
>>>
>>> Le 09/11/2017 à 00:09, Jean-Baptiste Onofré a écrit :
 Hmm. What's the shell ?

 It works on my machines.

 Regards
 JB
 On Nov 8, 2017, at 21:03, Francois Papon <
 francois.pa...@openobject.fr
 > wrote:

 Hi,

 When I launch Karaf I've got this error :

 ./bin/karaf: 218: ./bin/karaf: Bad substitution


 Karaf version : 4.2.0.M1

 Karaf source : download from Karaf website

>(http://www.apache.org/dyn/closer.lua/karaf/4.2.0.M1/apache-karaf-4.2.0.M1.tar.gz)

 Integrity check : ok

 I patch the ./bin/inc file with [KARAF-5466] and
 [KARAF-5467]

 I also try with the last success jenkins build :
 apache-karaf-4.2.0-20171106.203358-433.tar.gz
 
>

 JVM version :

 java version "9.0.1"
 Java(TM) SE Runtime Environment (build 9.0.1+11)
 Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11,
>mixed
 mode)

 (I also try with openjdk-9, java-oracle-8, openjdk-8)

 OS : Debian stable : 4.9.0-4-amd64 #1 SMP Debian
 4.9.51-1 (2017-09-28) x86_64 GNU/Linux

>>>
>>


Re: [4.2.0.M1] - Startup failed

2017-11-08 Thread Francois Papon
This expression fail with dash but work with bash :

line 218 and 268 in bin/inc

if [ "${MAJOR_VERSION:0:1}" -ge "9" ]; then


Le 09/11/2017 à 00:27, Jean-Baptiste Onofré a écrit :
> Weird. Let me double check.
>
> Regards
> JB
> On Nov 8, 2017, at 21:26, Francois Papon  > wrote:
>
> I never change it, may be a Debian upgrade.
>
> But I work with other Karaf version
>
>
> Le 09/11/2017 à 00:23, Jean-Baptiste Onofré a écrit :
>> Bash is not your default shell ?
>> On Nov 8, 2017, at 21:22, Francois Papon <
>> francois.pa...@openobject.fr
>> > wrote:
>>
>> I find a work around :
>>
>> |readlink -f $(which sh)/bin/dash sh ./bin/karaf don't work
>> but bash ./bin/karaf work |
>>
>>
>> Le 09/11/2017 à 00:20, Jean-Baptiste Onofré a écrit :
>>> Let me try to reproduce. I'm using Oracle jdk. So let me try
>>> with openjdk.
>>>
>>> Regards
>>> JB
>>> On Nov 8, 2017, at 21:17, Francois Papon <
>>> francois.pa...@openobject.fr
>>> > wrote:
>>>
>>> I had tested on standard Debian shell, terminator and
>>> outside gnome (tty)
>>>
>>>
>>> Le 09/11/2017 à 00:09, Jean-Baptiste Onofré a écrit :
 Hmm. What's the shell ?

 It works on my machines.

 Regards
 JB
 On Nov 8, 2017, at 21:03, Francois Papon <
 francois.pa...@openobject.fr
 > wrote:

 Hi,

 When I launch Karaf I've got this error :

 ./bin/karaf: 218: ./bin/karaf: Bad substitution


 Karaf version : 4.2.0.M1

 Karaf source : download from Karaf website
 
 (http://www.apache.org/dyn/closer.lua/karaf/4.2.0.M1/apache-karaf-4.2.0.M1.tar.gz)

 Integrity check : ok

 I patch the ./bin/inc file with [KARAF-5466] and
 [KARAF-5467]

 I also try with the last success jenkins build :
 apache-karaf-4.2.0-20171106.203358-433.tar.gz
 
 

 JVM version :

 java version "9.0.1"
 Java(TM) SE Runtime Environment (build 9.0.1+11)
 Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11,
 mixed mode)

 (I also try with openjdk-9, java-oracle-8, openjdk-8)

 OS : Debian stable : 4.9.0-4-amd64 #1 SMP Debian
 4.9.51-1 (2017-09-28) x86_64 GNU/Linux

>>>
>>
>



Re: [4.2.0.M1] - Startup failed

2017-11-08 Thread Francois Papon
It's the substring method that it's not supported by dash and ksh, I
change the header of the karaf.sh file to force the shell : !/bin/bash

Le 09/11/2017 à 01:02, Francois Papon a écrit :
>
> This expression fail with dash but work with bash :
>
> line 218 and 268 in bin/inc
>
> if [ "${MAJOR_VERSION:0:1}" -ge "9" ]; then
>
>
> Le 09/11/2017 à 00:27, Jean-Baptiste Onofré a écrit :
>> Weird. Let me double check.
>>
>> Regards
>> JB
>> On Nov 8, 2017, at 21:26, Francois Papon
>> mailto:francois.pa...@openobject.fr>>
>> wrote:
>>
>> I never change it, may be a Debian upgrade.
>>
>> But I work with other Karaf version
>>
>>
>> Le 09/11/2017 à 00:23, Jean-Baptiste Onofré a écrit :
>>> Bash is not your default shell ?
>>> On Nov 8, 2017, at 21:22, Francois Papon <
>>> francois.pa...@openobject.fr
>>> > wrote:
>>>
>>> I find a work around :
>>>
>>> |readlink -f $(which sh)/bin/dash sh ./bin/karaf don't work
>>> but bash ./bin/karaf work |
>>>
>>>
>>> Le 09/11/2017 à 00:20, Jean-Baptiste Onofré a écrit :
 Let me try to reproduce. I'm using Oracle jdk. So let me
 try with openjdk.

 Regards
 JB
 On Nov 8, 2017, at 21:17, Francois Papon <
 francois.pa...@openobject.fr
 > wrote:

 I had tested on standard Debian shell, terminator and
 outside gnome (tty)


 Le 09/11/2017 à 00:09, Jean-Baptiste Onofré a écrit :
> Hmm. What's the shell ?
>
> It works on my machines.
>
> Regards
> JB
> On Nov 8, 2017, at 21:03, Francois Papon <
> francois.pa...@openobject.fr
> > wrote:
>
> Hi,
>
> When I launch Karaf I've got this error :
>
> ./bin/karaf: 218: ./bin/karaf: Bad substitution
>
>
> Karaf version : 4.2.0.M1
>
> Karaf source : download from Karaf website
> 
> (http://www.apache.org/dyn/closer.lua/karaf/4.2.0.M1/apache-karaf-4.2.0.M1.tar.gz)
>
> Integrity check : ok
>
> I patch the ./bin/inc file with [KARAF-5466] and
> [KARAF-5467]
>
> I also try with the last success jenkins build :
> apache-karaf-4.2.0-20171106.203358-433.tar.gz
> 
> 
>
> JVM version :
>
> java version "9.0.1"
> Java(TM) SE Runtime Environment (build 9.0.1+11)
> Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11,
> mixed mode)
>
> (I also try with openjdk-9, java-oracle-8, openjdk-8)
>
> OS : Debian stable : 4.9.0-4-amd64 #1 SMP Debian
> 4.9.51-1 (2017-09-28) x86_64 GNU/Linux
>

>>>
>>
>



Re: [4.2.0.M1] - Startup failed

2017-11-08 Thread Francois Papon
I tested using "cut" for evaluate the MAJOR_VERSION and it work's with
bash, dash, sh :

File bin/inc :

method checkJvmVersion() line 218

MAJOR_VERSION=$("${JAVA}" -version 2>&1 \
    |awk -F '"' '/version/ {print $2}' \
    |cut -b 1)
    if [ "${MAJOR_VERSION}" -ge "9" ]; then
   VERSION=90
    fi

method setupDefaults() line 268 :

MAJOR_VERSION=$("${JAVA}" -version 2>&1 |awk -F '"' '/version/ {print
$2}' | cut -b 1)
    if [ "${MAJOR_VERSION}" -ge "9" ]; then
   VERSION=90
    fi


Le 09/11/2017 à 01:26, Francois Papon a écrit :
> It's the substring method that it's not supported by dash and ksh, I
> change the header of the karaf.sh file to force the shell : !/bin/bash
>
> Le 09/11/2017 à 01:02, Francois Papon a écrit :
>>
>> This expression fail with dash but work with bash :
>>
>> line 218 and 268 in bin/inc
>>
>> if [ "${MAJOR_VERSION:0:1}" -ge "9" ]; then
>>
>>
>> Le 09/11/2017 à 00:27, Jean-Baptiste Onofré a écrit :
>>> Weird. Let me double check.
>>>
>>> Regards
>>> JB
>>> On Nov 8, 2017, at 21:26, Francois Papon
>>> mailto:francois.pa...@openobject.fr>>
>>> wrote:
>>>
>>> I never change it, may be a Debian upgrade.
>>>
>>> But I work with other Karaf version
>>>
>>>
>>> Le 09/11/2017 à 00:23, Jean-Baptiste Onofré a écrit :
 Bash is not your default shell ?
 On Nov 8, 2017, at 21:22, Francois Papon <
 francois.pa...@openobject.fr
 > wrote:

 I find a work around :

 |readlink -f $(which sh)/bin/dash sh ./bin/karaf don't work
 but bash ./bin/karaf work |


 Le 09/11/2017 à 00:20, Jean-Baptiste Onofré a écrit :
> Let me try to reproduce. I'm using Oracle jdk. So let me
> try with openjdk.
>
> Regards
> JB
> On Nov 8, 2017, at 21:17, Francois Papon <
> francois.pa...@openobject.fr
> > wrote:
>
> I had tested on standard Debian shell, terminator and
> outside gnome (tty)
>
>
> Le 09/11/2017 à 00:09, Jean-Baptiste Onofré a écrit :
>> Hmm. What's the shell ?
>>
>> It works on my machines.
>>
>> Regards
>> JB
>> On Nov 8, 2017, at 21:03, Francois Papon <
>> francois.pa...@openobject.fr
>> > wrote:
>>
>> Hi,
>>
>> When I launch Karaf I've got this error :
>>
>> ./bin/karaf: 218: ./bin/karaf: Bad substitution
>>
>>
>> Karaf version : 4.2.0.M1
>>
>> Karaf source : download from Karaf website
>> 
>> (http://www.apache.org/dyn/closer.lua/karaf/4.2.0.M1/apache-karaf-4.2.0.M1.tar.gz)
>>
>> Integrity check : ok
>>
>> I patch the ./bin/inc file with [KARAF-5466] and
>> [KARAF-5467]
>>
>> I also try with the last success jenkins build :
>> apache-karaf-4.2.0-20171106.203358-433.tar.gz
>> 
>> 
>>
>> JVM version :
>>
>> java version "9.0.1"
>> Java(TM) SE Runtime Environment (build 9.0.1+11)
>> Java HotSpot(TM) 64-Bit Server VM (build
>> 9.0.1+11, mixed mode)
>>
>> (I also try with openjdk-9, java-oracle-8, openjdk-8)
>>
>> OS : Debian stable : 4.9.0-4-amd64 #1 SMP Debian
>> 4.9.51-1 (2017-09-28) x86_64 GNU/Linux
>>
>

>>>
>>
>



Re: [4.2.0.M1] - Startup failed

2017-11-08 Thread Jean-Baptiste Onofré

Thanks,

let me take a look.

Regards
JB

On 11/09/2017 07:00 AM, Francois Papon wrote:
I tested using "cut" for evaluate the MAJOR_VERSION and it work's with bash, 
dash, sh :


File bin/inc :

method checkJvmVersion() line 218

MAJOR_VERSION=$("${JAVA}" -version 2>&1 \
     |awk -F '"' '/version/ {print $2}' \
     |cut -b 1)
     if [ "${MAJOR_VERSION}" -ge "9" ]; then
    VERSION=90
     fi

method setupDefaults() line 268 :

MAJOR_VERSION=$("${JAVA}" -version 2>&1 |awk -F '"' '/version/ {print $2}' | cut 
-b 1)

     if [ "${MAJOR_VERSION}" -ge "9" ]; then
    VERSION=90
     fi


Le 09/11/2017 à 01:26, Francois Papon a écrit :
It's the substring method that it's not supported by dash and ksh, I change 
the header of the karaf.sh file to force the shell : !/bin/bash


Le 09/11/2017 à 01:02, Francois Papon a écrit :


This expression fail with dash but work with bash :

line 218 and 268 in bin/inc

if [ "${MAJOR_VERSION:0:1}" -ge "9" ]; then


Le 09/11/2017 à 00:27, Jean-Baptiste Onofré a écrit :

Weird. Let me double check.

Regards
JB
On Nov 8, 2017, at 21:26, Francois Papon > wrote:


I never change it, may be a Debian upgrade.

But I work with other Karaf version


Le 09/11/2017 à 00:23, Jean-Baptiste Onofré a écrit :

Bash is not your default shell ?
On Nov 8, 2017, at 21:22, Francois Papon < francois.pa...@openobject.fr
> wrote:

I find a work around :

|readlink -f $(which sh)/bin/dash sh ./bin/karaf don't work but bash
./bin/karaf work |


Le 09/11/2017 à 00:20, Jean-Baptiste Onofré a écrit :

Let me try to reproduce. I'm using Oracle jdk. So let me try with
openjdk.

Regards
JB
On Nov 8, 2017, at 21:17, Francois Papon <
francois.pa...@openobject.fr
> wrote:

I had tested on standard Debian shell, terminator and outside
gnome (tty)


Le 09/11/2017 à 00:09, Jean-Baptiste Onofré a écrit :

Hmm. What's the shell ?

It works on my machines.

Regards
JB
On Nov 8, 2017, at 21:03, Francois Papon <
francois.pa...@openobject.fr
> wrote:

Hi,

When I launch Karaf I've got this error :

./bin/karaf: 218: ./bin/karaf: Bad substitution


Karaf version : 4.2.0.M1

Karaf source : download from Karaf website

(http://www.apache.org/dyn/closer.lua/karaf/4.2.0.M1/apache-karaf-4.2.0.M1.tar.gz)

Integrity check : ok

I patch the ./bin/inc file with [KARAF-5466] and [KARAF-5467]

I also try with the last success jenkins build :
apache-karaf-4.2.0-20171106.203358-433.tar.gz



JVM version :

java version "9.0.1"
Java(TM) SE Runtime Environment (build 9.0.1+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed
mode)

(I also try with openjdk-9, java-oracle-8, openjdk-8)

OS : Debian stable : 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1
(2017-09-28) x86_64 GNU/Linux















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