karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Berkman (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KARAF-5451) Karaf shuts down uncleanly when executing a console command with large output
Date Mon, 30 Oct 2017 22:20:03 GMT
Peter Berkman created KARAF-5451:

             Summary: Karaf shuts down uncleanly when executing a console command with large
                 Key: KARAF-5451
                 URL: https://issues.apache.org/jira/browse/KARAF-5451
             Project: Karaf
          Issue Type: Bug
    Affects Versions: 4.1.1
         Environment: Windows
            Reporter: Peter Berkman

To reproduce:

1) install Karaf
2) run interactively: ex: karaf.bat
3) execute a console command that produces a lot of output (ex: service:list with no parameters)
4) type CTRL+C to interupt

Console output stops and the following shows up in the log, then karaf halts:

20171030 15:13:56.194 [ERROR] Karaf local console user ngs | 69:org.apache.karaf.shell.core
| org.apache.karaf.shell.support.ShellUtil | Exception caught while executing command
com.sun.jna.LastErrorException: [6] The handle is invalid.
	at com.sun.jna.Native.invokeVoid(Native Method)[jna-4.3.0.jar:4.3.0 (b0)]
	at com.sun.jna.Function.invoke(Function.java:407)[jna-4.3.0.jar:4.3.0 (b0)]
	at com.sun.jna.Function.invoke(Function.java:353)[jna-4.3.0.jar:4.3.0 (b0)]
	at com.sun.jna.Library$Handler.invoke(Library.java:244)[jna-4.3.0.jar:4.3.0 (b0)]
	at org.jline.terminal.impl.jna.win.$Proxy14.GetConsoleScreenBufferInfo(Unknown Source)[102:org.jline:3.2.0]
	at org.jline.terminal.impl.jna.win.JnaWinSysTerminal.getSize(JnaWinSysTerminal.java:59)[102:org.jline:3.2.0]
	at org.apache.karaf.shell.impl.console.JLineTerminal.getSize(JLineTerminal.java:167)[69:org.apache.karaf.shell.core:4.1.1]
	at org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:474)[102:org.jline:3.2.0]
	at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:339)[69:org.apache.karaf.shell.core:4.1.1]
	at java.lang.Thread.run(Thread.java:745)[:1.8.0_92]

This message was sent by Atlassian JIRA

View raw message