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

CLI error on window resize on Linux(Wayland)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • None
    • 4.1.3, 4.2.0.M1
    • None
    • None
    • Fedora 26 with Wayland
      JDK9
      Karaf 4.1.2

    Description

      This is interesting.

      It looks like jline is not silenced to ignore UI events it doesn't expects.

      If I minimize/maximize my Terminal, which corresponds to the linux package terminator-1.91-2.fc26.noarch

      I get this error spitted in the CLI console:

      Exception in thread "SIGWINCH handler" java.lang.UnsupportedOperationException
      	at org.jline.terminal.impl.NativeSignalHandler.handle(NativeSignalHandler.java:24)
      	at org.apache.karaf.shell.impl.console.JLineTerminal.handle(JLineTerminal.java:280)
      	at org.jline.terminal.impl.AbstractTerminal.raise(AbstractTerminal.java:65)
      	at org.jline.terminal.impl.PosixSysTerminal.lambda$handle$1(PosixSysTerminal.java:65)
      	at org.jline.utils.Signals.lambda$register$1(Signals.java:51)
      	at com.sun.proxy.$Proxy31.handle(Unknown Source)
      	at jdk.unsupported/sun.misc.Signal$InternalMiscHandler.handle(Signal.java:198)
      	at java.base/jdk.internal.misc.Signal$1.run(Signal.java:220)
      	at java.base/java.lang.Thread.run(Thread.java:844)
      
      

      Nothing relevant in karaf.log

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              paolo.antinori Paolo Antinori
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: