Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-4596

log:tail doesn't correct correctly with jline 3

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.1.0
    • 4.1.0
    • karaf
    • None

    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) [?:?]
      

      Attachments

        Activity

          People

            gnodet Guillaume Nodet
            jbonofre Jean-Baptiste Onofré
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: