[ 
https://issues.apache.org/jira/browse/KARAF-6964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17250657#comment-17250657
 ] 

Freeman Yue Fang edited comment on KARAF-6964 at 12/16/20, 9:51 PM:
--------------------------------------------------------------------

Hi [~esend7881],

A quick info, I can't reproduce this with a clean Karaf 4.2.9 installation on 
my machine(mac) with both JDK8 and JDK11.

My env is
{code}
java version "11.0.5" 2019-10-15 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.5+10-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.5+10-LTS, mixed mode)
{code}

I'm not sure if this is CentOS specific issue.  Could you please test this on a 
clean Karaf 4.2.9 kit?

Freeman


was (Author: ffang):
Hi [~esend7881],

A quick info, I can't reproduce this with a clean Karaf 4.2.9 installation on 
my machine(mac) with both JDK8 and JDK11.

My env is
{code}
java version "11.0.5" 2019-10-15 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.5+10-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.5+10-LTS, mixed mode)
houkoshis-MBP:kit ffang$ cd apache-karaf-4.2.9
{code}

I'm not sure if this is CentOS specific issue.  Could you please test this on a 
clean Karaf 4.2.9 kit?

Freeman

> Running bin/shell wrapper:install bug
> -------------------------------------
>
>                 Key: KARAF-6964
>                 URL: https://issues.apache.org/jira/browse/KARAF-6964
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.2.9
>         Environment: CentOS 7
> Java 11
>            Reporter: Eric K. Sender
>            Priority: Major
>
>  
> I recently upgraded my Opendaylight from 0.11.0 to 0.13.1 which uses Karaf 
> 4.2.9
> Part of my steps is setting up a systemd service, but when I run the install 
> step as noted 
> [here|https://karaf.apache.org/manual/latest/#_service_wrapper], I get this:
>  
>  
> {code:java}
> [root@localhost opendaylight]# bin/shell wrapper:install
> Exception in thread "main" java.lang.NullPointerException
>         at 
> org.apache.karaf.shell.impl.console.standalone.Main.getJarsInJars(Main.java:157)
>         at 
> org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:137)
>         at 
> org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:82)
>         at 
> org.apache.karaf.shell.impl.console.standalone.Main.main(Main.java:64)
> {code}
>  
> The previous version of Karaf I was using, 4.2.2, did not have this issue. It 
> set up my new services and all was fine.
>  
> I don't necessarily think this error is related to `wrapper:install`. I think 
> there is a bug in the logic of `bin\shell` or in the Java code that it calls. 
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to