Description
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:
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]
Then, any command fails with:
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) [?:?]