Christopher Lockard created KARAF-5497: ------------------------------------------
Summary: Karaf shuts down when installing CXF feature Key: KARAF-5497 URL: https://issues.apache.org/jira/browse/KARAF-5497 Project: Karaf Issue Type: Bug Affects Versions: 4.1.3 Reporter: Christopher Lockard When installing CXF in Karaf the console exists and the system shuts down. This appears to be a result of the `org.apache.karaf.shell.core` bundle getting refreshed when the system has been started via the `karaf` script. This is not an issue in karaf-4.1.2. To reproduce the issue start karaf-4.1.3 using the bin/karaf script: {code} feature:repo-add mvn:org.apache.cxf.karaf/apache-cxf/3.1.11/xml/features feature:install cxf {code} This results in `Error executing command: java.io.IOException: Stream Closed` getting printed to the console and the system shutting down. This error is then found in the logs {code} 2017-11-21T12:23:59,605 | ERROR | Karaf local console user karaf | ShellUtil | 42 - org.apache.karaf.shell.core - 4.1.3 | Exception caught while executing command java.io.IOError: java.io.IOException: Stream Closed at org.jline.keymap.BindingReader.readCharacter(BindingReader.java:142) ~[49:org.jline:3.5.0] at org.jline.keymap.BindingReader.readBinding(BindingReader.java:109) ~[49:org.jline:3.5.0] at org.jline.keymap.BindingReader.readBinding(BindingReader.java:60) ~[49:org.jline:3.5.0] at org.jline.reader.impl.LineReaderImpl.readBinding(LineReaderImpl.java:724) ~[49:org.jline:3.5.0] at org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:526) ~[49:org.jline:3.5.0] at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:349) [42:org.apache.karaf.shell.core:4.1.3] at java.lang.Thread.run(Thread.java:745) [?:?] Caused by: java.io.IOException: Stream Closed at java.io.FileInputStream.read0(Native Method) ~[?:?] at java.io.FileInputStream.read(FileInputStream.java:207) ~[?:?] at org.jline.terminal.impl.DumbTerminal$1.read(DumbTerminal.java:48) ~[?:?] at org.jline.terminal.impl.DumbTerminal$1.read(DumbTerminal.java:85) ~[?:?] at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284) ~[?:?] at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326) ~[?:?] at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178) ~[?:?] at sun.nio.cs.StreamDecoder.read0(StreamDecoder.java:127) ~[?:?] at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:112) ~[?:?] at java.io.InputStreamReader.read(InputStreamReader.java:168) ~[?:?] at org.jline.utils.NonBlockingReader.run(NonBlockingReader.java:276) ~[?:?] ... 1 more {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)