Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 5.0.0
    • Fix Version/s: 5.6.3
    • Component/s: servicemix-camel
    • Labels:
      None
    • Environment:

      HP-UX B.11.31 U ia64 1626786910 unlimited-user license (itanium processor - rx8640 server)

      Description

      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)

        Issue Links

          Activity

          Hide
          gertvanthienen Gert Vanthienen added a comment -

          I found another reference to the same problem in http://fusesource.com/forums/thread.jspa;jsessionid=1955AF9A1A8D63865AF5D8F650AE50C5?messageID=14368

          Could you add the output of stty -a to this issue? From what I read in the other forum post and the output I'm seeing on my machine, there's probably something different in the output of that command on HP/UX which is causing the regular expressions to match an invalid value for the columns attribute.

          Show
          gertvanthienen Gert Vanthienen added a comment - I found another reference to the same problem in http://fusesource.com/forums/thread.jspa;jsessionid=1955AF9A1A8D63865AF5D8F650AE50C5?messageID=14368 Could you add the output of stty -a to this issue? From what I read in the other forum post and the output I'm seeing on my machine, there's probably something different in the output of that command on HP/UX which is causing the regular expressions to match an invalid value for the columns attribute.
          Hide
          gertvanthienen Gert Vanthienen added a comment -

          Just noticed the post in users@ that already reports the stty -a

          $ stty -a
          speed 38400 baud; line = 0;
          rows = 52; columns = 151
          min = 4; time = 0;
          intr = DEL; quit = ^\; erase = #; kill = @
          eof = ^D; eol = ^@; eol2 <undef>; swtch = ^@
          stop = ^S; start = ^Q; susp <undef>; dsusp <undef>
          werase <undef>; lnext <undef>
          -parenb -parodd cs8 -cstopb hupcl cread -clocal -loblk -crts
          -ignbrk brkint ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc
          ixon ixany -ixoff -imaxbel -rtsxoff -ctsxon -ienqak
          isig icanon -iexten -xcase echo -echoe echok -echonl -noflsh
          -echoctl -echoprt -echoke -flusho -pendin
          opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel -tostop
          
          Show
          gertvanthienen Gert Vanthienen added a comment - Just noticed the post in users@ that already reports the stty -a $ stty -a speed 38400 baud; line = 0; rows = 52; columns = 151 min = 4; time = 0; intr = DEL; quit = ^\; erase = #; kill = @ eof = ^D; eol = ^@; eol2 <undef>; swtch = ^@ stop = ^S; start = ^Q; susp <undef>; dsusp <undef> werase <undef>; lnext <undef> -parenb -parodd cs8 -cstopb hupcl cread -clocal -loblk -crts -ignbrk brkint ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc ixon ixany -ixoff -imaxbel -rtsxoff -ctsxon -ienqak isig icanon -iexten -xcase echo -echoe echok -echonl -noflsh -echoctl -echoprt -echoke -flusho -pendin opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel -tostop
          Hide
          gertvanthienen Gert Vanthienen added a comment -

          I managed to reproduce this exception in a jline unit test - created pull request https://github.com/jline/jline2/pull/147 with the extra unit test as well as a fix to get this working on HP/UX

          Show
          gertvanthienen Gert Vanthienen added a comment - I managed to reproduce this exception in a jline unit test - created pull request https://github.com/jline/jline2/pull/147 with the extra unit test as well as a fix to get this working on HP/UX
          Hide
          darleck Haquet Serge added a comment -

          the output via putty client on the same machine

          srphan02d:/home/sht# stty -a
          speed 38400 baud; line = 0;
          rows = 24; columns = 80
          min = 4; time = 0;
          intr = ^C; quit = ^\; erase = ^H; kill = ^U
          eof = ^D; eol = ^@; eol2 <undef>; swtch <undef>
          stop = ^S; start = ^Q; susp <undef>; dsusp <undef>
          werase <undef>; lnext <undef>
          -parenb -parodd cs8 -cstopb hupcl cread -clocal -loblk -crts
          -ignbrk brkint -ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc
          ixon ixany ixoff -imaxbel -rtsxoff -ctsxon -ienqak
          isig icanon -iexten -xcase echo echoe echok -echonl -noflsh
          -echoctl -echoprt -echoke -flusho -pendin
          opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel -tostop tab3

          Show
          darleck Haquet Serge added a comment - the output via putty client on the same machine srphan02d:/home/sht# stty -a speed 38400 baud; line = 0; rows = 24; columns = 80 min = 4; time = 0; intr = ^C; quit = ^\; erase = ^H; kill = ^U eof = ^D; eol = ^@; eol2 <undef>; swtch <undef> stop = ^S; start = ^Q; susp <undef>; dsusp <undef> werase <undef>; lnext <undef> -parenb -parodd cs8 -cstopb hupcl cread -clocal -loblk -crts -ignbrk brkint -ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc ixon ixany ixoff -imaxbel -rtsxoff -ctsxon -ienqak isig icanon -iexten -xcase echo echoe echok -echonl -noflsh -echoctl -echoprt -echoke -flusho -pendin opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel -tostop tab3
          Hide
          darleck Haquet Serge added a comment -

          jline is use by servicemix ?
          How i upgrade servicemix jline ?

          Show
          darleck Haquet Serge added a comment - jline is use by servicemix ? How i upgrade servicemix jline ?
          Hide
          gertvanthienen Gert Vanthienen added a comment -

          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
          Show
          gertvanthienen Gert Vanthienen added a comment - 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
          Hide
          tsa Tino Sas added a comment -

          Hello,

          Our company is closed on the 21st of July (bankholiday)

          I will respond to you're mail as soon as possible.

          Regards,

          Tino

          Show
          tsa Tino Sas added a comment - Hello, Our company is closed on the 21st of July (bankholiday) I will respond to you're mail as soon as possible. Regards, Tino
          Hide
          sobkowiak Krzysztof Sobkowiak added a comment -

          Does this problem still occur on Karaf 2.4.x (ServiceMix >= 5.3.x) based distributions?

          Show
          sobkowiak Krzysztof Sobkowiak added a comment - Does this problem still occur on Karaf 2.4.x (ServiceMix >= 5.3.x) based distributions?
          Hide
          sobkowiak Krzysztof Sobkowiak added a comment -

          This issue doesn't occur anymore in current active branches.

          Show
          sobkowiak Krzysztof Sobkowiak added a comment - This issue doesn't occur anymore in current active branches.

            People

            • Assignee:
              Unassigned
              Reporter:
              tsa Tino Sas
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development