[ 
https://issues.apache.org/jira/browse/KARAF-5887?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16604066#comment-16604066
 ] 

ASF GitHub Bot commented on KARAF-5887:
---------------------------------------

NicolasOttaviani opened a new pull request #602: [KARAF-5887] Fix NPE on 
ConsoleSessionImpl
URL: https://github.com/apache/karaf/pull/602
 
 
   Fix NullPointerException when starting shell using bin/shell
   See Jira: https://issues.apache.org/jira/browse/KARAF-5887

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> NPE when starting karaf using bin/shell
> ---------------------------------------
>
>                 Key: KARAF-5887
>                 URL: https://issues.apache.org/jira/browse/KARAF-5887
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 4.1.6, 4.2.1
>            Reporter: Nicolas Ottaviani
>            Priority: Major
>              Labels: shell
>
> When starting karaf using bin/shell, we have a NullPointerException
> {code:java}
> bin/shell "echo test"
>  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:108)
>  at 
> org.apache.felix.gogo.runtime.CommandProcessorImpl.createSession(CommandProcessorImpl.java:82)
>  at 
> org.apache.felix.gogo.runtime.CommandProcessorImpl.createSession(CommandProcessorImpl.java:38)
>  at 
> org.apache.karaf.shell.impl.console.ConsoleSessionImpl.<init>(ConsoleSessionImpl.java:138)
>  at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl.create(SessionFactoryImpl.java:139)
>  at 
> org.apache.karaf.shell.impl.console.standalone.Main.createSession(Main.java:180)
>  at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:143)
>  at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:136)
>  at org.apache.karaf.shell.impl.console.standalone.Main.run(Main.java:76)
>  at org.apache.karaf.shell.impl.console.standalone.Main.main(Main.java:58)}}
> {code}



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

Reply via email to