[jira] [Commented] (KARAF-5078) Shell crash

2018-02-01 Thread Xilai Dai (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16349846#comment-16349846
 ] 

Xilai Dai commented on KARAF-5078:
--

To avoid the misunderstanding from the last comment above,  "This was not a 
Karaf bug." is ONLY for his custom command problem.

But karaf shell console still crash when Ctrl + C during log:display in Karaf 
4.1.4. I create a new Jira for better trace it 
https://issues.apache.org/jira/browse/KARAF-5592

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Jean-Baptiste Onofré
>Priority: Critical
> Fix For: 4.1.2, 4.2.0.M1
>
> Attachments: testkaraf-5078.zip
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 

[jira] [Commented] (KARAF-5078) Shell crash

2017-11-10 Thread Sebastien Doyon (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16247273#comment-16247273
 ] 

Sebastien Doyon commented on KARAF-5078:


Guillaume you are right. Configuring the ObjectMapper to not close the 
OutputStream works. 

This was not a Karaf bug.

Thanks for the help.

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Jean-Baptiste Onofré
>Priority: Critical
> Fix For: 4.1.2, 4.2.0.M1
>
> Attachments: testkaraf-5078.zip
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   

[jira] [Commented] (KARAF-5078) Shell crash

2017-11-10 Thread Guillaume Nodet (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16247166#comment-16247166
 ] 

Guillaume Nodet commented on KARAF-5078:


The reason is certainly that jackson closes the System.out stream, thereby 
causing the {{The handle is invalid}} exception when accessing the console.

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Jean-Baptiste Onofré
>Priority: Critical
> Fix For: 4.1.2, 4.2.0.M1
>
> Attachments: testkaraf-5078.zip
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [42:org.apache.karaf.shell.core:4

[jira] [Commented] (KARAF-5078) Shell crash

2017-11-09 Thread Sebastien Doyon (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16245862#comment-16245862
 ] 

Sebastien Doyon commented on KARAF-5078:


I did a test bundle with a custom comman 'test:console'

It exit karaf when called in 4.1.2 and 4.1.3. The command is writing a Json 
object directly to System.out with Jackson ObjectMapper. 



> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Jean-Baptiste Onofré
>Priority: Critical
> Fix For: 4.1.2, 4.2.0.M1
>
> Attachments: testkaraf-5078.zip
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.jav

[jira] [Commented] (KARAF-5078) Shell crash

2017-11-09 Thread JIRA

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16245523#comment-16245523
 ] 

Jean-Baptiste Onofré commented on KARAF-5078:
-

Can you try with Karaf 4.1.3 ?

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Jean-Baptiste Onofré
>Priority: Critical
> Fix For: 4.1.2, 4.2.0.M1
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolE

[jira] [Commented] (KARAF-5078) Shell crash

2017-11-09 Thread Sebastien Doyon (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16245503#comment-16245503
 ] 

Sebastien Doyon commented on KARAF-5078:


Same here, Windows 10, JDK 1.8

{code}2017-11-09T11:58:02,031 | ERROR | Karaf local console user karaf | 
ShellUtil| 42 - org.apache.karaf.shell.core - 4.1.2 | 
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.$Proxy29.GetConsoleScreenBufferInfo(Unknown 
Source) [49:org.jline:3.4.0]
at 
org.jline.terminal.impl.jna.win.JnaWinSysTerminal.getSize(JnaWinSysTerminal.java:72)
 [49:org.jline:3.4.0]
at 
org.apache.karaf.shell.impl.console.JLineTerminal.getSize(JLineTerminal.java:168)
 [42:org.apache.karaf.shell.core:4.1.2]
at 
org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:481) 
[49:org.jline:3.4.0]
at 
org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:347)
 [42:org.apache.karaf.shell.core:4.1.2]
at java.lang.Thread.run(Thread.java:748) [?:?]{code}

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Jean-Baptiste Onofré
>Priority: Critical
> Fix For: 4.1.2, 4.2.0.M1
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [

[jira] [Commented] (KARAF-5078) Shell crash

2017-08-16 Thread Xilai Dai (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16129829#comment-16129829
 ] 

Xilai Dai commented on KARAF-5078:
--

Feedback from Karaf 4.1.2 on Windows 7 64bit, JDK 1.8
{code}
2017-08-17T11:18:47,522 | ERROR | Karaf local console user karaf | ShellUtil
| 42 - org.apache.karaf.shell.core - 4.1.2 | 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.$Proxy43.GetConsoleScreenBufferInfo(Unknown 
Source) [49:org.jline:3.4.0]
at 
org.jline.terminal.impl.jna.win.JnaWinSysTerminal.getSize(JnaWinSysTerminal.java:72)
 [49:org.jline:3.4.0]
at 
org.apache.karaf.shell.impl.console.JLineTerminal.getSize(JLineTerminal.java:168)
 [42:org.apache.karaf.shell.core:4.1.2]
at 
org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:481) 
[49:org.jline:3.4.0]
at 
org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:347)
 [42:org.apache.karaf.shell.core:4.1.2]
at java.lang.Thread.run(Thread.java:745) [?:?]
{code}

The shell console still got crash and quit with the ERROR above when you were 
doing log:display and disrupt it with Ctrl + C

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Jean-Baptiste Onofré
>Priority: Critical
> Fix For: 4.2.0, 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell

[jira] [Commented] (KARAF-5078) Shell crash

2017-08-03 Thread JIRA

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16112579#comment-16112579
 ] 

Jean-Baptiste Onofré commented on KARAF-5078:
-

It has been fixed on jline (3.4.0-SNAPSHOT) and I successfully tested it. I 
will close this Jira once I will have updated jline version in Karaf.

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Jean-Baptiste Onofré
>Priority: Critical
> Fix For: 4.2.0, 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at java.util.concurrent.Futu

[jira] [Commented] (KARAF-5078) Shell crash

2017-08-02 Thread JIRA

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16112220#comment-16112220
 ] 

Jean-Baptiste Onofré commented on KARAF-5078:
-

It seems that the {{|}} typing issue has been introduced by the following 
commit:

{code}
commit 97120a6eeb4dec5bb0ca0a37900b0f2d1223f5ff
Author: Guillaume Nodet 
Date:   Fri Jun 16 09:18:03 2017 +0200

Improve style parser to support escaping and recursive styling
{code}

I'm testing around this commit to confirm.

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.

[jira] [Commented] (KARAF-5078) Shell crash

2017-08-02 Thread JIRA

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16112168#comment-16112168
 ] 

Jean-Baptiste Onofré commented on KARAF-5078:
-

I confirm that it seems the parsing issue seems fixed. However, with jline 
3.4.0-SNAPSHOT, I can't type the {{|}} character on Windows.

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at java.util.concurrent.FutureTask.run(FutureT

[jira] [Commented] (KARAF-5078) Shell crash

2017-08-02 Thread Guillaume Nodet (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16111799#comment-16111799
 ] 

Guillaume Nodet commented on KARAF-5078:


Could you try again with a fresh jline 3.4.0-SNAPSHOT build ?
The issue should be fixed now.

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
>   at 
> java.util.concurrent

[jira] [Commented] (KARAF-5078) Shell crash

2017-08-02 Thread JIRA

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16110846#comment-16110846
 ] 

Jean-Baptiste Onofré commented on KARAF-5078:
-

As I see {{org.apache.felix.gogo.runtime.Pipe$MultiChannel.write(Pipe.java:644) 
~[42:org.apache.karaf.shell.core:4.2.0.SNAPSHOT]}}, it might also be caused by 
the pipe. I'm checking there.

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [42:org.apache.karaf.shell.core:4.1.1]

[jira] [Commented] (KARAF-5078) Shell crash

2017-08-02 Thread JIRA

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16110776#comment-16110776
 ] 

Jean-Baptiste Onofré commented on KARAF-5078:
-

Same behavior with {{less}} instead of {{more}}. So, it's probably the use of 
the ANSI terminal performed by {{more}} and {{less}}.

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at java.util.concurrent.FutureTask.run(FutureTask.

[jira] [Commented] (KARAF-5078) Shell crash

2017-08-01 Thread JIRA

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16110396#comment-16110396
 ] 

Jean-Baptiste Onofré commented on KARAF-5078:
-

OK, new update: the issue could be located on the {{more}} pager or a 
combination of {{help}} and {{more}}.

Let me explain: the {{help}} command is actually an alias to {{*:help | more}}. 
If I type just {{*:help}}, it works fine. If I type {{*:help | more}}, then, I 
have the issue. I'm still investigating.

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shel

[jira] [Commented] (KARAF-5078) Shell crash

2017-08-01 Thread JIRA

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16110375#comment-16110375
 ] 

Jean-Baptiste Onofré commented on KARAF-5078:
-

I don't see the {{java.lang.NumberFormatException: For input string: "1B"}} 
issue, but I might have found another issue:

- you do {{log:tail}}, then CTRL-C to exit from {{log:tail}}
- then, type {{help}}: only one line of help is displayed and Karaf exits.

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtim

[jira] [Commented] (KARAF-5078) Shell crash

2017-08-01 Thread JIRA

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16110370#comment-16110370
 ] 

Jean-Baptiste Onofré commented on KARAF-5078:
-

I just tried with 4.2.0-SNAPSHOT on Windows VM (Windows 7): I typed {{help}} 
several times, moving the pager or not, I'm not able to reproduce the issue. 
I'm still investigating.

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at

[jira] [Commented] (KARAF-5078) Shell crash

2017-08-01 Thread JIRA

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16110351#comment-16110351
 ] 

Jean-Baptiste Onofré commented on KARAF-5078:
-

I'm testing on Windows VM.

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:11

[jira] [Commented] (KARAF-5078) Shell crash

2017-07-31 Thread Scott Leschke (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16107500#comment-16107500
 ] 

Scott Leschke commented on KARAF-5078:
--

Just built the latest version of 4.2.0-SNAPSHOT and tried this.  I entered 
'help' at the command prompt 4 times and was able to recreate the error

2017-07-31T11:01:14,796 | ERROR | Karaf local console user karaf | ShellUtil
| 42 - org.apache.karaf.shell.core - 4.2.0.SNAPSHOT | 
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.(Integer.java:867) ~[?:?]
at 
org.jline.terminal.impl.jna.win.AnsiOutputStream.write(AnsiOutputStream.java:124)
 ~[?:?]
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) 
~[42:org.apache.karaf.shell.core:4.2.0.SNAPSHOT]
...

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.

[jira] [Commented] (KARAF-5078) Shell crash

2017-07-24 Thread Scott Leschke (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16099027#comment-16099027
 ] 

Scott Leschke commented on KARAF-5078:
--

4.2.0-SNAPSHOT



> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>  [?:?]
>   at 

[jira] [Commented] (KARAF-5078) Shell crash

2017-07-24 Thread JIRA

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16099024#comment-16099024
 ] 

Jean-Baptiste Onofré commented on KARAF-5078:
-

After building 4.1.2-SNAPSHOT ?

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.ja

[jira] [Commented] (KARAF-5078) Shell crash

2017-07-24 Thread Scott Leschke (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16099017#comment-16099017
 ] 

Scott Leschke commented on KARAF-5078:
--

I just finished building it. I'm getting error "Could not resolve 
mvn:org.apach.felix/org.apache.felix.framework/5.6.4" on startup.

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?

[jira] [Commented] (KARAF-5078) Shell crash

2017-07-24 Thread JIRA

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16098031#comment-16098031
 ] 

Jean-Baptiste Onofré commented on KARAF-5078:
-

Any update on this one ?

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142

[jira] [Commented] (KARAF-5078) Shell crash

2017-07-21 Thread Scott Leschke (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16096283#comment-16096283
 ] 

Scott Leschke commented on KARAF-5078:
--

I will give it a try at my earliest convenience.



> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecut

[jira] [Commented] (KARAF-5078) Shell crash

2017-07-21 Thread Christian Schneider (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16096205#comment-16096205
 ] 

Christian Schneider commented on KARAF-5078:


I just tried karaf 4.2.0-SNAPSHOT on windows 7 Pro and java 8. I can not 
reproduce any crash with help or some other commands I tried. 
The colors look also much better now. 

[~scott.y] Can you also try with karaf 4.2.0-SNAPSHOT. If this works we just 
have to see how to get it backported to 4.1.2.

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1

[jira] [Commented] (KARAF-5078) Shell crash

2017-07-18 Thread Scott Leschke (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16091930#comment-16091930
 ] 

Scott Leschke commented on KARAF-5078:
--

Just tried this. I typed "*help*" at the prompt and Karaf crashed. Very 
consistent failure. Happened every time I tried it which is 3 or 4 times. As a 
reminder, this is Windows 7 Pro, SP1.

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.(Integer.java:867) ~[?:?]
at 
org.jline.terminal.impl.jna.win.AnsiOutputStream.write(AnsiOutputStream.java:124)
 ~[?:?]
.

BTW, I would suggest that blue might a poor color choice in the console. The 
contrast with just isn't enough.  Perhaps a light green or yellow or a much 
lighter shade of blue?

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.

[jira] [Commented] (KARAF-5078) Shell crash

2017-07-17 Thread JIRA

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16090005#comment-16090005
 ] 

Jean-Baptiste Onofré commented on KARAF-5078:
-

Can you try again with latest 4.1.2-SNAPSHOT ?

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(Thread

[jira] [Commented] (KARAF-5078) Shell crash

2017-05-31 Thread JIRA

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16032426#comment-16032426
 ] 

Jean-Baptiste Onofré commented on KARAF-5078:
-

Thanks for the update, we will take a look and fix.

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(T

[jira] [Commented] (KARAF-5078) Shell crash

2017-05-31 Thread Xilai Dai (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16032337#comment-16032337
 ] 

Xilai Dai commented on KARAF-5078:
--

I did some testing with the apache-karaf-4.1.2-20170531.182824-10.zip, 
unfortunately, the container still got crashed when Ctrl + C try to interrupt 
the log:display or log:tail command.
{code}
2017-06-01T10:23:32,654 | ERROR | Karaf local console user karaf | ShellUtil
| 42 - org.apache.karaf.shell.core - 4.1.2.SNAPSHOT | 
Exception caught while executing command
java.lang.NumberFormatException: For input string: "36mE"
at 
java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) 
~[?:?]
at java.lang.Integer.parseInt(Integer.java:580) [?:?]
at java.lang.Integer.(Integer.java:867) [?:?]
at 
org.jline.terminal.impl.jna.win.AnsiOutputStream.write(AnsiOutputStream.java:124)
 [49:org.jline:3.3.0]
at java.io.FilterOutputStream.write(FilterOutputStream.java:125) [?:?]
at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221) [?:?]
at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291) 
[?:?]
at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:295) [?:?]
at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141) [?:?]
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229) [?:?]
at java.io.PrintWriter.flush(PrintWriter.java:320) [?:?]
at org.jline.reader.impl.LineReaderImpl.flush(LineReaderImpl.java:673) 
[49:org.jline:3.3.0]
at 
org.jline.reader.impl.LineReaderImpl.cleanup(LineReaderImpl.java:2232) 
[49:org.jline:3.3.0]
at 
org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:574) 
[49:org.jline:3.3.0]
at 
org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:343)
 [42:org.apache.karaf.shell.core:4.1.2.SNAPSHOT]
at java.lang.Thread.run(Thread.java:745) [?:?]
{code}

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> ~[?:?]
>   

[jira] [Commented] (KARAF-5078) Shell crash

2017-05-31 Thread Christian Schneider (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16031103#comment-16031103
 ] 

Christian Schneider commented on KARAF-5078:


The karaf 4.1.x build is now active. See 
https://builds.apache.org/view/K/view/Karaf/

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
>   at 
> java.util.concurre

[jira] [Commented] (KARAF-5078) Shell crash

2017-05-31 Thread JIRA

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16031015#comment-16031015
 ] 

Jean-Baptiste Onofré commented on KARAF-5078:
-

I just did a manual deploy. For Jenkins, I will tackle that.

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
>   at 
> java.util.concurrent.ThreadPoolExecutor.ru

[jira] [Commented] (KARAF-5078) Shell crash

2017-05-31 Thread Christian Schneider (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16030939#comment-16030939
 ] 

Christian Schneider commented on KARAF-5078:


I just found that we do not have a build for the karaf 4.1.x branch on jenkins. 
I will add one.

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
>   at 
> java.uti

[jira] [Commented] (KARAF-5078) Shell crash

2017-05-31 Thread Xilai Dai (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16030936#comment-16030936
 ] 

Xilai Dai commented on KARAF-5078:
--

Could someone trigger a new 4.1.2-SNAPSHOT build? so that we can do some tests. 
Thanks.

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
>   at 
> java.util.concurrent.ThreadPoolExecu

[jira] [Commented] (KARAF-5078) Shell crash

2017-05-05 Thread Guillaume Nodet (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15997901#comment-15997901
 ] 

Guillaume Nodet commented on KARAF-5078:


Yeah, I plan to backport the fixes, but it's using snapshots for now, so I'm 
delaying the backport until we can have a released version.
You need multiple bundles: jansi, gogo runtime, gogo jline, jline and 
karaf-shell-core (which embeds gogo).
I'm in the process of releasing all those bundles, so it should be done by the 
end of next week.

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [4

[jira] [Commented] (KARAF-5078) Shell crash

2017-05-05 Thread JIRA

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15997898#comment-15997898
 ] 

Jean-Baptiste Onofré commented on KARAF-5078:
-

I will check for 4.1.x (probably require jline update).

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWork

[jira] [Commented] (KARAF-5078) Shell crash

2017-05-05 Thread Xilai Dai (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15997895#comment-15997895
 ] 

Xilai Dai commented on KARAF-5078:
--

Thanks Guillaume! I will test it.

Is it also backport to 4.1.2? if we want to patch this issue on 4.1.1, which 
bundles should be override? only JLine or karaf shell also?

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at java.util.concurrent.FutureTa

[jira] [Commented] (KARAF-5078) Shell crash

2017-05-05 Thread Guillaume Nodet (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15997866#comment-15997866
 ] 

Guillaume Nodet commented on KARAF-5078:


Could you try again with one of the latest 4.2.0-SNAPSHOT build ? I've fixed a 
bunch of problems already:
  
https://repository.apache.org/content/groups/snapshots/org/apache/karaf/apache-karaf-minimal/4.2.0-SNAPSHOT/

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [42:org.apache.karaf.

[jira] [Commented] (KARAF-5078) Shell crash

2017-05-04 Thread Xilai Dai (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15997857#comment-15997857
 ] 

Xilai Dai commented on KARAF-5078:
--

@Christian: The ERROR and crash behaviour is reproducible following these steps:

1) execute log:tail or log:display from the console
2) during the display (not finished), press Ctrl + C to interrupt

{code}
2017-05-05T14:12:40,540 | ERROR | Karaf local console user karaf | 
he.karaf.shell.support.ShellUtil  149 | 108 - org.apache.karaf.shell.core - 
4.1.1 | Exception caught while executing command
java.lang.NumberFormatException: For input string: "36m"
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)
 [173:org.jline:3.2.0]
at java.io.FilterOutputStream.write(FilterOutputStream.java:125) [?:?]
at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221) [?:?]
at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291) 
[?:?]
at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:295) [?:?]
at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141) [?:?]
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229) [?:?]
at java.io.PrintWriter.flush(PrintWriter.java:320) [?:?]
at org.jline.reader.impl.LineReaderImpl.flush(LineReaderImpl.java:640) 
[173:org.jline:3.2.0]
at 
org.jline.reader.impl.LineReaderImpl.cleanup(LineReaderImpl.java:2199) 
[173:org.jline:3.2.0]
at 
org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:567) 
[173:org.jline:3.2.0]
at 
org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:339)
 [108:org.apache.karaf.shell.core:4.1.1]
at java.lang.Thread.run(Thread.java:745) [?:?]
{code}

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(

[jira] [Commented] (KARAF-5078) Shell crash

2017-05-04 Thread Vadim Melnikov (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15996682#comment-15996682
 ] 

Vadim Melnikov commented on KARAF-5078:
---

The 'help' command permanently kills karaf under Windows 7. You can try it to 
reproduce

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
>   at 
> java.util.concurrent.Threa

[jira] [Commented] (KARAF-5078) Shell crash

2017-05-02 Thread Guillaume Nodet (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15992734#comment-15992734
 ] 

Guillaume Nodet commented on KARAF-5078:


This is actually https://issues.apache.org/jira/browse/FELIX-5631

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWork

[jira] [Commented] (KARAF-5078) Shell crash

2017-05-02 Thread Christian Schneider (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15992663#comment-15992663
 ] 

Christian Schneider commented on KARAF-5078:


I tried to reproduce the error on windows 7 by calling several commands on the 
shell, stopping log:tail with Ctrl-C... I was not able to reproduce the problem.

On the other hand I found another issue :-)
https://github.com/jline/jline3/issues/121


> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call

[jira] [Commented] (KARAF-5078) Shell crash

2017-05-01 Thread JIRA

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15992424#comment-15992424
 ] 

Jean-Baptiste Onofré commented on KARAF-5078:
-

Yeah, agree, I don't reproduce this behavior on Windows XP. However, it has 
been reported on Windows 7. So, I think it's worth to make a try.

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at java.util.concurrent.FutureTask.run(F

[jira] [Commented] (KARAF-5078) Shell crash

2017-05-01 Thread Christian Schneider (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15992419#comment-15992419
 ] 

Christian Schneider commented on KARAF-5078:


I can not really imagine that a simple System.out.println() can do this as the 
karaf console uses the same when doing any output. So the console should 
already crash from karaf's own output.

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [42:org.apache.karaf.shell.core:4.1.1]

[jira] [Commented] (KARAF-5078) Shell crash

2017-05-01 Thread JIRA

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15990983#comment-15990983
 ] 

Jean-Baptiste Onofré commented on KARAF-5078:
-

It seems that using the output stream (or error stream) in a bundle (just using 
{{System.out.println()}} for example) put the console/jline in an unstable 
state.

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at java.util.concur

[jira] [Commented] (KARAF-5078) Shell crash

2017-04-24 Thread Guillaume Nodet (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15982448#comment-15982448
 ] 

Guillaume Nodet commented on KARAF-5078:


I think the problem may come from the fact that the 
{{WindowsAnsiOutputStream#write}} method is not synchronized.
I'll fix that in jline and hopefully this error will go away.

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at java.util.con

[jira] [Commented] (KARAF-5078) Shell crash

2017-04-24 Thread JIRA

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15982407#comment-15982407
 ] 

Börcsök József commented on KARAF-5078:
---

Hi All,

I found a similar issue of console: Karaf crashed when {code}log:display{code} 
command is interrupted (Ctrl+C), here is the stack trace from log:
{code}
2017-04-25T07:53:02,686 | ERROR | Karaf local console user karaf | ShellUtil
|  |  |  |  | 42 - org.apache.karaf.shell.core - 4.1.1 | 
Exception caught while executing command
java.lang.NumberFormatException: For input string: "39m"
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)
 [49:org.jline:3.2.0]
at java.io.FilterOutputStream.write(FilterOutputStream.java:125) [?:?]
at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221) [?:?]
at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291) 
[?:?]
at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:295) [?:?]
at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141) [?:?]
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229) [?:?]
at java.io.PrintWriter.flush(PrintWriter.java:320) [?:?]
at org.jline.reader.impl.LineReaderImpl.flush(LineReaderImpl.java:640) 
[49:org.jline:3.2.0]
at 
org.jline.reader.impl.LineReaderImpl.cleanup(LineReaderImpl.java:2199) 
[49:org.jline:3.2.0]
at 
org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:567) 
[49:org.jline:3.2.0]
at 
org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:339)
 [42:org.apache.karaf.shell.core:4.1.1]
at java.lang.Thread.run(Thread.java:748) [?:?]
{code}

Regards,
Joe

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> ~[?:

[jira] [Commented] (KARAF-5078) Shell crash

2017-04-24 Thread Christian Schneider (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15980987#comment-15980987
 ] 

Christian Schneider commented on KARAF-5078:


I was not able to reproduce by starting the shell on windows and entering the 
word "bundle". 
What exactly did you do to get that stack trace?

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at java.util.concurrent.FutureTask.run(Fu

[jira] [Commented] (KARAF-5078) Shell crash

2017-04-24 Thread Christian Schneider (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15980904#comment-15980904
 ] 

Christian Schneider commented on KARAF-5078:


The problem seems to be in jline. I opened an issue there and will try to fix 
it for the next karaf version.

> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
> Fix For: 4.1.2
>
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the word "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
>   a

[jira] [Commented] (KARAF-5078) Shell crash

2017-04-24 Thread Christian Schneider (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-5078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15980899#comment-15980899
 ] 

Christian Schneider commented on KARAF-5078:


The color problem is known and we hope to fix it with the next version but we 
need a new release of jline for it.


> Shell crash
> ---
>
> Key: KARAF-5078
> URL: https://issues.apache.org/jira/browse/KARAF-5078
> Project: Karaf
>  Issue Type: Bug
>Affects Versions: 4.1.1
> Environment: Windows 7
>Reporter: Scott Leschke
>Assignee: Christian Schneider
>Priority: Critical
>
> Karaf shell behaves badly in Windows console. It appears better than 4.1.0 
> but still a problem. Command string start out red and turns dark blue while 
> typing become virtually unreadable.
> Most problematic though is that the shell crashed and brought down Karaf as a 
> result of entering the work "bundle" at the console prompt. After the 
> following tracebacks, the Felix shutdown sequence is displayed in the log.
> 2017-03-31T09:56:38,363 | ERROR | Karaf local console user karaf | ShellUtil  
>   | 42 - org.apache.karaf.shell.core - 4.1.1 | 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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   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) 
> ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:195)
>  ~[42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:241)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
>  [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:560) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at 
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:486) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:375) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) 
> [42:org.apache.karaf.shell.core:4.1.1]
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
>   at 
> java.util.concurrent