[ https://issues.apache.org/jira/browse/KARAF-4834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15711662#comment-15711662 ]
ASF subversion and git services commented on KARAF-4834: -------------------------------------------------------- Commit 56eccaaf95b8e3cd81f9fabbf4322abdf8f427aa in karaf's branch refs/heads/master from [~gnt] [ https://git-wip-us.apache.org/repos/asf?p=karaf.git;h=56eccaa ] [KARAF-4834] Infinite loop in console if an I/O exception is thrown by the input stream > Infinite loop if Exception occurs during the execution of > karaf.shell.init.script > --------------------------------------------------------------------------------- > > Key: KARAF-4834 > URL: https://issues.apache.org/jira/browse/KARAF-4834 > Project: Karaf > Issue Type: Bug > Components: karaf-shell > Affects Versions: 4.1.0 > Reporter: Lijun Liao > Assignee: Guillaume Nodet > Fix For: 4.1.0 > > Attachments: karaf.log > > > The while block between line 329 and line 352 in > https://github.com/apache/karaf/blob/master/shell/core/src/main/java/org/apache/karaf/shell/impl/console/ConsoleSessionImpl.java > will never break if Exception other than EndOfFileException is thrown, e.g. > StreamClosed exception. > After executing a karaf command (the commands are in a scritp which will be > executed via the command source) I happened to get the Interrupted error, > then the branding screen was shown, followed by infinite Stream Closed > IOException. Sorry I got this phenomenon only from time to time and cannot > provide stable steps to reproduce it. > {code} > karaf@root() <some karaf command> > Error executing command: java.lang.InterruptedException > gogo: InterruptedException: null > __ __ ____ > / //_/____ __________ _/ __/ > / ,< / __ `/ ___/ __ `/ /_ > / /| |/ /_/ / / / /_/ / __/ > /_/ |_|\__,_/_/ \__,_/_/ > Apache Karaf (4.1.0-SNAPSHOT) > Hit '<tab>' for a list of available commands > and '[cmd] --help' for help on a specific command. > Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf. > karaf@root()> Error executing command: java.io.IOException: Stream Closed > ... hunderts lines with same content ignored here ... > karaf@root()> Error executing command: java.io.IOException: Stream Closed > {code} > I have attached the log. -- This message was sent by Atlassian JIRA (v6.3.4#6332)