[
https://issues.apache.org/jira/browse/KARAF-3500?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Freeman Fang updated KARAF-3500:
--------------------------------
Description:
when use bin/client shutdown we get NPE in log
{code}
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)
{code}
and get
{code}
Error executing command: java.lang.NullPointerException
{code}
from client
Too avoid the NPE, we should return some meaningful prompt message
was:
when use bin/client shutdown we get NPE in log
{code}
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)
{code}
and get
{code}
Error executing command: java.lang.NullPointerException
{code}
Too avoid the NPE, we should return some meaningful prompt message
> NPE throws when executing "bin/client shutdown"
> -----------------------------------------------
>
> Key: KARAF-3500
> URL: https://issues.apache.org/jira/browse/KARAF-3500
> Project: Karaf
> Issue Type: Improvement
> Reporter: Freeman Fang
> Assignee: Freeman Fang
>
> when use bin/client shutdown we get NPE in log
> {code}
> 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)
> {code}
> and get
> {code}
> Error executing command: java.lang.NullPointerException
> {code}
> from client
> Too avoid the NPE, we should return some meaningful prompt message
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)