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

NPE when starting karaf using bin/shell

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.1.6, 4.2.1
    • 4.2.2, 4.1.7
    • karaf

    Description

      When starting karaf using bin/shell, we have a NullPointerException

      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)}}
      

      Attachments

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              nottaviani Nicolas Ottaviani
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: