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.<init>(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