You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/07/29 06:52:20 UTC
[jira] [Commented] (KARAF-4596) log:tail doesn't correct correctly
with jline 3
[ https://issues.apache.org/jira/browse/KARAF-4596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15398836#comment-15398836 ]
ASF subversion and git services commented on KARAF-4596:
--------------------------------------------------------
Commit 4d335611af2a7256511e35ddeb3eef970e060b96 in karaf's branch refs/heads/master from [~gnt]
[ https://git-wip-us.apache.org/repos/asf?p=karaf.git;h=4d33561 ]
[KARAF-4596] Ctrl+C does not interrupt the thread running the job correctly
> 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: Guillaume Nodet
> 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)