You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2017/12/11 15:25:00 UTC

[jira] [Resolved] (KARAF-5497) Karaf shuts down when installing CXF feature

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

Jean-Baptiste Onofré resolved KARAF-5497.
-----------------------------------------
    Resolution: Fixed

I confirm that downgrading jline works. I tested {{cxf}} and {{scr}} features without problem.

> 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
>            Assignee: Guillaume Nodet
>            Priority: Blocker
>             Fix For: 4.1.4
>
>
> When installing CXF in Karaf the console exits 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)