[ 
https://issues.apache.org/jira/browse/KARAF-5896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jean-Baptiste Onofré resolved KARAF-5896.
-----------------------------------------
    Resolution: Duplicate

> Karaf Shell Null Pointer Exception when Running a command
> ---------------------------------------------------------
>
>                 Key: KARAF-5896
>                 URL: https://issues.apache.org/jira/browse/KARAF-5896
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 4.1.6, 4.2.1
>            Reporter: Cetra Free
>            Priority: Major
>
> When running a command directly from the cli using bin/shell, this triggers a 
> null pointer exception.
> I.e, in a terminal, run the following:
> {code:java}
> {install_dir}/bin/shell echo hello
> {code}
> You will receive this stacktrace:
> {code:java}
> Exception in thread "main" java.lang.NullPointerException: "in" is null!
>       at java.nio.channels.Channels.checkNotNull(Channels.java:67)
>       at java.nio.channels.Channels.newChannel(Channels.java:347)
>       at 
> org.apache.felix.gogo.runtime.CommandSessionImpl.<init>(CommandSessionImpl.java:109)
>       at 
> org.apache.felix.gogo.runtime.CommandProcessorImpl.createSession(CommandProcessorImpl.java:84)
>       at 
> org.apache.felix.gogo.runtime.CommandProcessorImpl.createSession(CommandProcessorImpl.java:40)
>       at 
> org.apache.karaf.shell.impl.console.ConsoleSessionImpl.<init>(ConsoleSessionImpl.java:157)
>       at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl.create(SessionFactoryImpl.java:159)
>       at 
> org.apache.karaf.shell.impl.console.standalone.Main.createSession(Main.java:175)
>       at 
> org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:138)
>       at 
> org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:131)
>       at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:74)
>       at 
> org.apache.karaf.shell.impl.console.standalone.Main.main(Main.java:56)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to