You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2018/02/02 06:38:00 UTC

[jira] [Updated] (KARAF-5592) Karaf shell unexpected exit when Ctrl + C during log:display or select text then press Enter

     [ https://issues.apache.org/jira/browse/KARAF-5592?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré updated KARAF-5592:
----------------------------------------
    Fix Version/s: 4.1.5
                   4.2.0

> Karaf shell unexpected exit when Ctrl + C during log:display or select text then press Enter
> --------------------------------------------------------------------------------------------
>
>                 Key: KARAF-5592
>                 URL: https://issues.apache.org/jira/browse/KARAF-5592
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 4.1.4
>         Environment: Java 1.8.0_121
> Windows 7 64bit
>            Reporter: Xilai Dai
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>             Fix For: 4.2.0, 4.1.5
>
>
> Start Karaf 4.1.4 on Windows (bin/karaf.bat)
> 1) execute log:display from the shell console
>  2) during the display (not finished), press Ctrl + C to interrupt, then the shell will exit unexpected
> {code:java}
> 2018-02-02T11:04:04,039 | ERROR | Karaf local console user karaf | he.karaf.shell.support.ShellUtil  149 | 111 - org.apache.karaf.shell.core - 4.1.4 | Exception caught while executing command
> com.sun.jna.LastErrorException: [6] The handle is invalid.
> 	at com.sun.jna.Native.invokeVoid(Native Method) ~[?:?]
> 	at com.sun.jna.Function.invoke(Function.java:408) [?:?]
> 	at com.sun.jna.Function.invoke(Function.java:354) [?:?]
> 	at com.sun.jna.Library$Handler.invoke(Library.java:244) [?:?]
> 	at org.jline.terminal.impl.jna.win.$Proxy28.GetConsoleScreenBufferInfo(Unknown Source) [183:org.jline:3.4.0]
> 	at org.jline.terminal.impl.jna.win.JnaWinSysTerminal.getSize(JnaWinSysTerminal.java:72) [183:org.jline:3.4.0]
> 	at org.apache.karaf.shell.impl.console.JLineTerminal.getSize(JLineTerminal.java:173) [111:org.apache.karaf.shell.core:4.1.4]
> 	at org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:481) [183:org.jline:3.4.0]
> 	at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:348) [111:org.apache.karaf.shell.core:4.1.4]
> 	at java.lang.Thread.run(Thread.java:748) [?:?]{code}
>  
> Or:
> 1) Select some text in the shell console, then press "Enter" try to copy/paste it
> 2) then the shell console will exit unexpected.
>  
> I did some tests locally, the second problem (copy/paste) can be solved after upgrade jline from 3.4.0 to 3.5.2(or 3.5.0 also OK). but the first problem still existing after jline upgrade.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)