Re: java.lang.NullPointerException on cluster:bundle-* commands after calling cluster:bundle-update
Thank you! Karaf: 4.2.0 Cellar: 4.1.1 cluster:update didn’t do anything for me > On Jul 25, 2018, at 11:58 AM, j...@nanthrax.net wrote: > > Hi > > Let me create a Jira and fix that, that's probably a refresh on the event > handler. > > By the way, what's the Karaf and Cellar version ? > Did you try a cluster:sync ? > > Regards > JB > > On Wednesday, July 25, 2018 16:41 CEST, Oleg Cohen > wrote: > >> >> Greetings, >> >> I have a three-node Cellar cluster. >> >> I am on node1 and ran this command >> >> cluster:bundle-update default XXX >> >> The command ran successfully >> >> As I try to subsequently run any cluster:bundle-* command (e.g. >> cluster:bundle-list default) I get a java.lang.NullPointerException and the >> following in the log on every node: >> >> 2018-07-25T10:34:13,438 | ERROR | Karaf ssh console user karaf | ShellUtil | >> 33 - org.apache.karaf.shell.core - 4.2.0 | 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.(Matcher.java:229) ~[?:?] >> at java.util.regex.Pattern.matcher(Pattern.java:1093) ~[?:?] >> at >> org.apache.karaf.cellar.core.CellarSupport.wildCardMatch(CellarSupport.java:212) >> ~[?:?] >> at >> org.apache.karaf.cellar.core.CellarSupport.isAllowed(CellarSupport.java:183) >> ~[?:?] >> 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:1149) >> ~[?:?] >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) >> ~[?:?] >> at java.lang.Thread.run(Thread.java:748) [?:?] >> >> >> The problem only goes away once all nodes are fully restarted. >> >> I would appreciate an insight into the problem! >> >> Thank you, >> Oleg >> > > > >
Re: java.lang.NullPointerException on cluster:bundle-* commands after calling cluster:bundle-update
Hi Let me create a Jira and fix that, that's probably a refresh on the event handler. By the way, what's the Karaf and Cellar version ? Did you try a cluster:sync ? Regards JB On Wednesday, July 25, 2018 16:41 CEST, Oleg Cohen wrote: Greetings, I have a three-node Cellar cluster. I am on node1 and ran this command cluster:bundle-update default XXX The command ran successfully As I try to subsequently run any cluster:bundle-* command (e.g. cluster:bundle-list default) I get a java.lang.NullPointerException and the following in the log on every node: 2018-07-25T10:34:13,438 | ERROR | Karaf ssh console user karaf | ShellUtil | 33 - org.apache.karaf.shell.core - 4.2.0 | 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.(Matcher.java:229) ~[?:?] at java.util.regex.Pattern.matcher(Pattern.java:1093) ~[?:?] at org.apache.karaf.cellar.core.CellarSupport.wildCardMatch(CellarSupport.java:212) ~[?:?] at org.apache.karaf.cellar.core.CellarSupport.isAllowed(CellarSupport.java:183) ~[?:?] 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:1149) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:?] at java.lang.Thread.run(Thread.java:748) [?:?] The problem only goes away once all nodes are fully restarted. I would appreciate an insight into the problem! Thank you, Oleg
java.lang.NullPointerException on cluster:bundle-* commands after calling cluster:bundle-update
Greetings, I have a three-node Cellar cluster. I am on node1 and ran this command cluster:bundle-update default XXX The command ran successfully As I try to subsequently run any cluster:bundle-* command (e.g. cluster:bundle-list default) I get a java.lang.NullPointerException and the following in the log on every node: 2018-07-25T10:34:13,438 | ERROR | Karaf ssh console user karaf | ShellUtil | 33 - org.apache.karaf.shell.core - 4.2.0 | 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.(Matcher.java:229) ~[?:?] at java.util.regex.Pattern.matcher(Pattern.java:1093) ~[?:?] at org.apache.karaf.cellar.core.CellarSupport.wildCardMatch(CellarSupport.java:212) ~[?:?] at org.apache.karaf.cellar.core.CellarSupport.isAllowed(CellarSupport.java:183) ~[?:?] 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:1149) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:?] at java.lang.Thread.run(Thread.java:748) [?:?] The problem only goes away once all nodes are fully restarted. I would appreciate an insight into the problem! Thank you, Oleg