You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by cooshal <ku...@gmail.com> on 2019/05/06 12:18:55 UTC

Cellar bundle-update breaks down the group

Hi:

I am using Karaf 4.2.0 and Cellar 4.1.2

I am checking the cluster:bundle-* commands right now. The
start/stop/install/uninstall operations are functional and the behaviors are
as expected. But, I had an issue with the bundle-update command. I tried
this with and without stopping the target bundle.

> cluster:bundle-update workers 181 file:\\\D:\\temp\\stats.jar

In the logs, I can see that it says "Destroying BlueprintContainer for
bundle ..." and nothing happens after that.

Then, if I try executing any of the cluster commands associated with this
group, it ends up with null pointer exception.

karaf@root()> cluster:bundle-list workers
Bundles in cluster group workers
Error executing command: java.lang.NullPointerException
karaf@root()> log:tail
ERROR [Karaf local console user karaf] Exception caught while executing
command
java.lang.NullPointerException: null
        at java.util.regex.Matcher.getTextLength(Matcher.java:1283) ~[?:?]
        at java.util.regex.Matcher.reset(Matcher.java:309) ~[?:?]
        at java.util.regex.Matcher.<init>(Matcher.java:229) ~[?:?]
        at java.util.regex.Pattern.matcher(Pattern.java:1093) ~[?:?]
        at
org.apache.karaf.cellar.core.CellarSupport.wildCardMatch(CellarSupport.java:220)
~[?:?]
        at
org.apache.karaf.cellar.core.CellarSupport.isAllowed(CellarSupport.java:189)
~[?:?]
        at
org.apache.karaf.cellar.bundle.shell.ListBundleCommand.doExecute(ListBundleCommand.java:142)
~[?:?]
        at
org.apache.karaf.cellar.core.shell.CellarCommandSupport.execute(CellarCommandSupport.java:62)
~[?:?]
        at
org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84)
~[?:?]
        at
org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
~[?:?]
        at
org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
~[?:?]
        at
org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:571) ~[?:?]
        at
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:497)
~[?:?]
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:386)
~[?:?]
        at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) ~[?:?]
        at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) ~[?:?]
        at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) ~[?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:?]
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
~[?:?]
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
~[?:?]
        at java.lang.Thread.run(Thread.java:745) [?:?]

In the same cluster, executing the same command for a different group
produces the intended result.

By any chance, did bundle-update corrupt the group information?

Regards,
Cooshal.



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Re: Cellar bundle-update breaks down the group

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Happy it works ;)

Regards
JB

On 06/05/2019 15:31, cooshal wrote:
> Updating to 4.1.3 fixed this issue for me.
> 
> Many thanks.
> 
> Regards,
> Kushal.
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> 

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

Re: Cellar bundle-update breaks down the group

Posted by cooshal <ku...@gmail.com>.
Updating to 4.1.3 fixed this issue for me.

Many thanks.

Regards,
Kushal.



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Re: Cellar bundle-update breaks down the group

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

I will prepare Cellar 4.1.3 and 4.2.0 soon (I have to do some fixes &
improvements).

Regards
JB

On 06/05/2019 14:33, cooshal wrote:
> Hi JB, 
> 
> thank you for your prompt response.
> 
> I will try this out with 4.1.3
> 
> Regards,
> Cooshal.
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> 

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

Re: Cellar bundle-update breaks down the group

Posted by cooshal <ku...@gmail.com>.
Hi JB, 

thank you for your prompt response.

I will try this out with 4.1.3

Regards,
Cooshal.



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Re: Cellar bundle-update breaks down the group

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

I think you are hitting https://issues.apache.org/jira/browse/KARAF-6162

I fixed that already, it will be included in Cellar 4.1.3/4.2.0.

Regards
JB

On 06/05/2019 14:18, cooshal wrote:
> Hi:
> 
> I am using Karaf 4.2.0 and Cellar 4.1.2
> 
> I am checking the cluster:bundle-* commands right now. The
> start/stop/install/uninstall operations are functional and the behaviors are
> as expected. But, I had an issue with the bundle-update command. I tried
> this with and without stopping the target bundle.
> 
>> cluster:bundle-update workers 181 file:\\\D:\\temp\\stats.jar
> 
> In the logs, I can see that it says "Destroying BlueprintContainer for
> bundle ..." and nothing happens after that.
> 
> Then, if I try executing any of the cluster commands associated with this
> group, it ends up with null pointer exception.
> 
> karaf@root()> cluster:bundle-list workers
> Bundles in cluster group workers
> Error executing command: java.lang.NullPointerException
> karaf@root()> log:tail
> ERROR [Karaf local console user karaf] Exception caught while executing
> command
> java.lang.NullPointerException: null
>         at java.util.regex.Matcher.getTextLength(Matcher.java:1283) ~[?:?]
>         at java.util.regex.Matcher.reset(Matcher.java:309) ~[?:?]
>         at java.util.regex.Matcher.<init>(Matcher.java:229) ~[?:?]
>         at java.util.regex.Pattern.matcher(Pattern.java:1093) ~[?:?]
>         at
> org.apache.karaf.cellar.core.CellarSupport.wildCardMatch(CellarSupport.java:220)
> ~[?:?]
>         at
> org.apache.karaf.cellar.core.CellarSupport.isAllowed(CellarSupport.java:189)
> ~[?:?]
>         at
> org.apache.karaf.cellar.bundle.shell.ListBundleCommand.doExecute(ListBundleCommand.java:142)
> ~[?:?]
>         at
> org.apache.karaf.cellar.core.shell.CellarCommandSupport.execute(CellarCommandSupport.java:62)
> ~[?:?]
>         at
> org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84)
> ~[?:?]
>         at
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
> ~[?:?]
>         at
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
> ~[?:?]
>         at
> org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:571) ~[?:?]
>         at
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:497)
> ~[?:?]
>         at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:386)
> ~[?:?]
>         at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) ~[?:?]
>         at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) ~[?:?]
>         at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) ~[?:?]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:?]
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> ~[?:?]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> ~[?:?]
>         at java.lang.Thread.run(Thread.java:745) [?:?]
> 
> In the same cluster, executing the same command for a different group
> produces the intended result.
> 
> By any chance, did bundle-update corrupt the group information?
> 
> Regards,
> Cooshal.
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> 

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