Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-1130

NPE in Karaf Shell

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • jboss-fuse-6.1
    • None
    • None
    • None
    • % %

    Description

      2014-01-17 10:55:24,777 | INFO  | pool-8-thread-1  | ShellCommandFactory              | ?                                   ? | 48 - org.apache.karaf.shell.ssh - 2.3.0.redhat-610319 | Exception caught while executing command
      java.lang.NullPointerException
      	at java.util.regex.Matcher.getTextLength(Matcher.java:1234)[:1.7.0_45]
      	at java.util.regex.Matcher.reset(Matcher.java:308)[:1.7.0_45]
      	at java.util.regex.Matcher.<init>(Matcher.java:228)[:1.7.0_45]
      	at java.util.regex.Pattern.matcher(Pattern.java:1088)[:1.7.0_45]
      	at org.apache.karaf.shell.osgi.BundleSelector.selectBundles(BundleSelector.java:46)
      	at org.apache.karaf.shell.osgi.BundlesCommand.doExecute(BundlesCommand.java:36)
      	at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)[15:org.apache.karaf.shell.console:2.3.0.redhat-610319]
      	at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)
      	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[16:org.apache.felix.gogo.runtime:0.11.0.redhat-610319]
      	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[16:org.apache.felix.gogo.runtime:0.11.0.redhat-610319]
      	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[16:org.apache.felix.gogo.runtime:0.11.0.redhat-610319]
      	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[16:org.apache.felix.gogo.runtime:0.11.0.redhat-610319]
      	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[16:org.apache.felix.gogo.runtime:0.11.0.redhat-610319]
      	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[16:org.apache.felix.gogo.runtime:0.11.0.redhat-610319]
      	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
      	at org.apache.karaf.shell.ssh.ShellCommandFactory$ShellCommand$1.run(ShellCommandFactory.java:116)[48:org.apache.karaf.shell.ssh:2.3.0.redhat-610319]
      	at java.security.AccessController.doPrivileged(Native Method)[:1.7.0_45]
      	at org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:67)[44:org.apache.karaf.jaas.modules:2.3.0.redhat-610319]
      	at org.apache.karaf.shell.ssh.ShellCommandFactory$ShellCommand.start(ShellCommandFactory.java:114)[48:org.apache.karaf.shell.ssh:2.3.0.redhat-610319]
      

      Was running some QE tests and got this NPE in build 319.

      On the QE test which is a client that does a SSH login to the ESB I got this error

      LOG INFO: Command: osgi:install -s mvn:org.jboss.fuse.qa/camel-salesforce-example-spring/1.0-SNAPSHOT
      LOG INFO: Command: osgi:uninstall null
      LOG INFO: Response: Error executing command: java.lang.NullPointerException
      

      I guess its doing an osgi:uninstall null in the shell which causes the NPE

      Attachments

        Activity

          People

            yfang@redhat.com Freeman(Yue) Fang
            cibsen@redhat.com Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: