Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-3500

NPE throws when executing "bin/client shutdown"

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.4.2, 3.0.4, 4.0.0.M2, 4.0.0.M3
    • None
    • None

    Description

      when use bin/client shutdown we get NPE in log

      13:25:41,548 | INFO  | pool-16-thread-2 | ShellCommandFactory              | 49 - org.apache.karaf.shell.ssh - 2.3.0| Exception caught while executing command
      
      java.lang.NullPointerException
      
      	at org.apache.karaf.shell.osgi.Shutdown.doExecute(Shutdown.java:83)
      
      	at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)
      
      	at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)
      
      

      and get

      Error executing command: java.lang.NullPointerException
      

      from client
      Too avoid the NPE, we should return some meaningful prompt message

      Attachments

        Activity

          People

            ffang Freeman Yue Fang
            ffang Freeman Yue Fang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: