You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by "Leschke, Scott" <SL...@medline.com> on 2017/03/03 20:12:06 UTC
Karaf 4.1.0 shell issues
Since I've started working with 4.1, I've seen a couple of issues using the Gogo shell on Windows (7). I know the first issue has been mentioned by someone else previously, the color of the text changing while you type show below. Very
I've also experienced Gogo crashing hard and bringing all of Karaf down with it. A representative trace is shown below. The trace below came as the result of entering a "help" command or something similarly inocuous. I assume others have seen this as well?
[cid:image001.png@01D29425.B4D53C60]
2017-03-03T14:01:13,450 | ERROR | Karaf local console user karaf | ShellUtil | 43 - org.apache.karaf.shell.core - 4.1.0 | Exception caught while executing command
java.lang.NumberFormatException: For input string: "1B"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[?:?]
at java.lang.Integer.parseInt(Integer.java:580) ~[?:?]
at java.lang.Integer.parseInt(Integer.java:615) ~[?:?]
at org.jline.terminal.impl.jna.win.WindowsAnsiOutputStream.write(WindowsAnsiOutputStream.java:189) ~[?:?]
at java.io.FilterOutputStream.write(FilterOutputStream.java:125) ~[?:?]
at java.nio.channels.Channels$WritableByteChannelImpl.write(Channels.java:458) ~[?:?]
at org.apache.felix.gogo.runtime.Pipe$MultiChannel.write(Pipe.java:644) ~[43:org.apache.karaf.shell.core:4.1.0]
at java.nio.channels.Channels.writeFullyImpl(Channels.java:78) ~[?:?]
at java.nio.channels.Channels.writeFully(Channels.java:101) ~[?:?]
at java.nio.channels.Channels.access$000(Channels.java:61) ~[?:?]
at java.nio.channels.Channels$1.write(Channels.java:174) ~[?:?]
at java.io.PrintStream.write(PrintStream.java:480) ~[?:?]
at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221) ~[?:?]
at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291) ~[?:?]
at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:104) ~[?:?]
at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:185) ~[?:?]
at java.io.PrintStream.write(PrintStream.java:527) ~[?:?]
at java.io.PrintStream.print(PrintStream.java:669) ~[?:?]
at java.io.PrintStream.println(PrintStream.java:806) ~[?:?]
at org.apache.felix.gogo.jline.Posix._main(Posix.java:134) ~[43:org.apache.karaf.shell.core:4.1.0]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:136) ~[43:org.apache.karaf.shell.core:4.1.0]
at org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195) ~[43:org.apache.karaf.shell.core:4.1.0]
at org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241) [43:org.apache.karaf.shell.core:4.1.0]
at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:67) [43:org.apache.karaf.shell.core:4.1.0]
at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:82) [43:org.apache.karaf.shell.core:4.1.0]
at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:552) [43:org.apache.karaf.shell.core:4.1.0]
at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:478) [43:org.apache.karaf.shell.core:4.1.0]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:367) [43:org.apache.karaf.shell.core:4.1.0]
at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) [43:org.apache.karaf.shell.core:4.1.0]
at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) [43:org.apache.karaf.shell.core:4.1.0]
at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) [43:org.apache.karaf.shell.core:4.1.0]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:?]
at java.lang.Thread.run(Thread.java:745) [?:?]
Re: Karaf 4.1.0 shell issues
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Scott,
Thanks for the report. We already identified some shell issues that we
are fixing.
I will start a Windows VM to test the issues specific to a platform.
Regards
JB
On 03/03/2017 09:12 PM, Leschke, Scott wrote:
> Since Ive started working with 4.1, Ive seen a couple of issues using
> the Gogo shell on Windows (7). I know the first issue has been mentioned
> by someone else previously, the color of the text changing while you
> type show below. Very
>
>
>
> Ive also experienced Gogo crashing hard and bringing all of Karaf down
> with it. A representative trace is shown below. The trace below came as
> the result of entering a help command or something similarly
> inocuous. I assume others have seen this as well?
>
>
>
>
>
>
>
>
>
>
>
> 2017-03-03T14:01:13,450 | ERROR | Karaf local console user karaf |
> ShellUtil | 43 - org.apache.karaf.shell.core -
> 4.1.0 | Exception caught while executing command
>
> java.lang.NumberFormatException: For input string: "1B"
>
> at
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
> ~[?:?]
>
> at java.lang.Integer.parseInt(Integer.java:580) ~[?:?]
>
> at java.lang.Integer.parseInt(Integer.java:615) ~[?:?]
>
> at
> org.jline.terminal.impl.jna.win.WindowsAnsiOutputStream.write(WindowsAnsiOutputStream.java:189)
> ~[?:?]
>
> at
> java.io.FilterOutputStream.write(FilterOutputStream.java:125) ~[?:?]
>
> at
> java.nio.channels.Channels$WritableByteChannelImpl.write(Channels.java:458)
> ~[?:?]
>
> at
> org.apache.felix.gogo.runtime.Pipe$MultiChannel.write(Pipe.java:644)
> ~[43:org.apache.karaf.shell.core:4.1.0]
>
> at
> java.nio.channels.Channels.writeFullyImpl(Channels.java:78) ~[?:?]
>
> at java.nio.channels.Channels.writeFully(Channels.java:101)
> ~[?:?]
>
> at java.nio.channels.Channels.access$000(Channels.java:61)
> ~[?:?]
>
> at java.nio.channels.Channels$1.write(Channels.java:174) ~[?:?]
>
> at java.io.PrintStream.write(PrintStream.java:480) ~[?:?]
>
> at
> sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221) ~[?:?]
>
> at
> sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291) ~[?:?]
>
> at
> sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:104) ~[?:?]
>
> at
> java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:185) ~[?:?]
>
> at java.io.PrintStream.write(PrintStream.java:527) ~[?:?]
>
> at java.io.PrintStream.print(PrintStream.java:669) ~[?:?]
>
> at java.io.PrintStream.println(PrintStream.java:806) ~[?:?]
>
> at org.apache.felix.gogo.jline.Posix._main(Posix.java:134)
> ~[43:org.apache.karaf.shell.core:4.1.0]
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method) ~[?:?]
>
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[?:?]
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:?]
>
> at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
>
> at
> org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:136)
> ~[43:org.apache.karaf.shell.core:4.1.0]
>
> at
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
> ~[43:org.apache.karaf.shell.core:4.1.0]
>
> at
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
> [43:org.apache.karaf.shell.core:4.1.0]
>
> at
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:67)
> [43:org.apache.karaf.shell.core:4.1.0]
>
> at
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:82)
> [43:org.apache.karaf.shell.core:4.1.0]
>
> at
> org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:552)
> [43:org.apache.karaf.shell.core:4.1.0]
>
> at
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:478)
> [43:org.apache.karaf.shell.core:4.1.0]
>
> at
> org.apache.felix.gogo.runtime.Closure.execute(Closure.java:367)
> [43:org.apache.karaf.shell.core:4.1.0]
>
> at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417)
> [43:org.apache.karaf.shell.core:4.1.0]
>
> at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229)
> [43:org.apache.karaf.shell.core:4.1.0]
>
> at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59)
> [43:org.apache.karaf.shell.core:4.1.0]
>
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> [?:?]
>
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> [?:?]
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [?:?]
>
> at java.lang.Thread.run(Thread.java:745) [?:?]
>
--
Jean-Baptiste Onofr
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com