karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Created] (KARAF-4596) log:tail doesn't correct correctly with jline 3
Date Sat, 25 Jun 2016 04:57:16 GMT
Jean-Baptiste Onofré created KARAF-4596:
-------------------------------------------

             Summary: log:tail doesn't correct correctly with jline 3
                 Key: KARAF-4596
                 URL: https://issues.apache.org/jira/browse/KARAF-4596
             Project: Karaf
          Issue Type: Bug
          Components: karaf-shell
    Affects Versions: 4.1.0
            Reporter: Jean-Baptiste Onofré
            Assignee: Jean-Baptiste Onofré
             Fix For: 4.1.0


As Karaf 4.1.x upgraded to jline 3, {{log:tail}} doesn't work correctly anymore.

The display itself is OK, but using CTRL-C to stop the display results with:

{code}
Error executing command: java.lang.InterruptedException
2016-06-25 06:54:48,688 | ERROR | nsole user karaf | ShellUtil                        | 43
- org.apache.karaf.shell.core - 4.1.0.SNAPSHOT | Exception caught while executing command
java.lang.InterruptedException
        at java.lang.Object.wait(Native Method) ~[?:?]
        at java.lang.Object.wait(Object.java:502) [?:?]
        at org.apache.felix.gogo.runtime.CommandSessionImpl$JobImpl.start(CommandSessionImpl.java:746)
[43:org.apache.karaf.shell.core:4.1.0.SNAPSHOT]
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:280) [43:org.apache.karaf.shell.core:4.1.0.SNAPSHOT]
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:157) [43:org.apache.karaf.shell.core:4.1.0.SNAPSHOT]
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:148) [43:org.apache.karaf.shell.core:4.1.0.SNAPSHOT]
        at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:169)
[43:org.apache.karaf.shell.core:4.1.0.SNAPSHOT]
{code}

Then, any command fails with:

{code}
Error executing command: A job is already in foreground
2016-06-25 06:54:52,540 | ERROR | nsole user karaf | ShellUtil                        | 43
- org.apache.karaf.shell.core - 4.1.0.SNAPSHOT | Exception caught while executing command
java.lang.IllegalStateException: A job is already in foreground
        at org.apache.felix.gogo.runtime.CommandSessionImpl$JobImpl.foreground(CommandSessionImpl.java:642)
[43:org.apache.karaf.shell.core:4.1.0.SNAPSHOT]
        at org.apache.felix.gogo.runtime.CommandSessionImpl$JobImpl.start(CommandSessionImpl.java:740)
[43:org.apache.karaf.shell.core:4.1.0.SNAPSHOT]
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:280) [43:org.apache.karaf.shell.core:4.1.0.SNAPSHOT]
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:157) [43:org.apache.karaf.shell.core:4.1.0.SNAPSHOT]
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:148) [43:org.apache.karaf.shell.core:4.1.0.SNAPSHOT]
        at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:169)
[43:org.apache.karaf.shell.core:4.1.0.SNAPSHOT]
        at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:265)
[43:org.apache.karaf.shell.core:4.1.0.SNAPSHOT]
        at java.lang.Thread.run(Thread.java:745) [?:?]
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message