karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lijun Liao (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (KARAF-4834) Infinite loop if Exception occurs during the execution of karaf.shell.init.script
Date Tue, 22 Nov 2016 18:29:58 GMT

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

Lijun Liao updated KARAF-4834:
------------------------------
    Description: 
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 I happened to get the Interrupted error, then the branding
screen was shown, followed by infinite StreamClosedException. Sorry I get this phenomenon
only randomly 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.

  was:
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 I happened to get the Interrupted error, then the branding
screen was shown, followed by infinite StreamClosedException. Sorry I get this phenomenon
only randomly and cannot provide stable steps to reproce 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}


> 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
>             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 I happened to get the Interrupted error, then the branding
screen was shown, followed by infinite StreamClosedException. Sorry I get this phenomenon
only randomly 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)

Mime
View raw message