[
https://issues.apache.org/jira/browse/SM-2300?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13999812#comment-13999812
]
Gert Vanthienen commented on SM-2300:
-------------------------------------
JLine is used in the Karaf org.apache.karaf.shell.console bundle. The way to
get this fix without waiting for a new release of JLine/Karaf/ServiceMix, would
be something like this...
- build your own JLine JAR with the extra fix in there
- rebuild the Karaf Shell bundle with the new version of JLine in it
- add that new Karaf Shell bundle to the system folder of ServiceMix
- update etc/startup.properties and
system/org/apache/karaf/assemblies/features/standard/2.3.5/standard-2.3.5-features.xml
to point to the new Karaf Shell bundle
> Failed to query stty columns
> -----------------------------
>
> Key: SM-2300
> URL: https://issues.apache.org/jira/browse/SM-2300
> Project: ServiceMix
> Issue Type: Bug
> Components: servicemix-camel
> Affects Versions: 5.0.0
> Environment: HP-UX B.11.31 U ia64 1626786910 unlimited-user license
> (itanium processor - rx8640 server)
> Reporter: Tino Sas
> Fix For: 5.0.0
>
>
> When you type a command on servicemix you receive for each character
> following error (tested with different version of servicemix and java):
> karaf@root> [WARN] Failed to query stty columns
> java.lang.NumberFormatException: For input string: "147
> min = 1"
> at
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
> at java.lang.Integer.parseInt(Integer.java:501)
> at
> jline.internal.TerminalLineSettings.parseControlChar(TerminalLineSettings.java:142)
> at
> jline.internal.TerminalLineSettings.getProperty(TerminalLineSettings.java:128)
> at
> jline.internal.TerminalLineSettings.getProperty(TerminalLineSettings.java:95)
> at jline.UnixTerminal.getWidth(UnixTerminal.java:77)
> at jline.console.ConsoleReader.drawBuffer(ConsoleReader.java:778)
> at jline.console.ConsoleReader.drawBuffer(ConsoleReader.java:797)
> at jline.console.ConsoleReader.putString(ConsoleReader.java:737)
> at
> jline.console.completer.CandidateListCompletionHandler.setBuffer(CandidateListCompletionHandler.java:76)
> at
> jline.console.completer.CandidateListCompletionHandler.complete(CandidateListCompletionHandler.java:58)
> at jline.console.ConsoleReader.complete(ConsoleReader.java:2923)
> at jline.console.ConsoleReader.readLine(ConsoleReader.java:2391)
> at jline.console.ConsoleReader.readLine(ConsoleReader.java:2098)
> at
> org.apache.karaf.shell.console.jline.Console.readAndParseCommand(Console.java:238)
> at org.apache.karaf.shell.console.jline.Console.run(Console.java:169)
> at java.lang.Thread.run(Thread.java:662)
--
This message was sent by Atlassian JIRA
(v6.2#6252)