Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-2318

NumberFormatException while Sqlline start

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.17.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      Description

      Hello
      looks like known issue here https://github.com/jline/jline2/issues/281
      IMHO jline version update will help to have it fixed

      to reproduce just run sqlline

      [serg@localhost csv]$ ./sqlline 
      [ERROR] Failed to construct terminal; falling back to unsupported
      java.lang.NumberFormatException: For input string: "0x100"
      	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
      	at java.lang.Integer.parseInt(Integer.java:580)
      	at java.lang.Integer.valueOf(Integer.java:766)
      	at jline.internal.InfoCmp.parseInfoCmp(InfoCmp.java:59)
      	at jline.UnixTerminal.parseInfoCmp(UnixTerminal.java:242)
      	at jline.UnixTerminal.<init>(UnixTerminal.java:65)
      	at jline.UnixTerminal.<init>(UnixTerminal.java:50)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      	at java.lang.Class.newInstance(Class.java:442)
      	at jline.TerminalFactory.getFlavor(TerminalFactory.java:211)
      	at jline.TerminalFactory.create(TerminalFactory.java:102)
      	at jline.TerminalFactory.get(TerminalFactory.java:186)
      	at jline.TerminalFactory.get(TerminalFactory.java:192)
      	at sqlline.SqlLineOpts.<init>(SqlLineOpts.java:45)
      	at sqlline.SqlLine.<init>(SqlLine.java:54)
      	at sqlline.SqlLine.start(SqlLine.java:372)
      	at sqlline.SqlLine.main(SqlLine.java:265)
      
      [ERROR] Failed to construct terminal; falling back to unsupported
      java.lang.NumberFormatException: For input string: "0x100"
      	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
      	at java.lang.Integer.parseInt(Integer.java:580)
      	at java.lang.Integer.valueOf(Integer.java:766)
      	at jline.internal.InfoCmp.parseInfoCmp(InfoCmp.java:59)
      	at jline.UnixTerminal.parseInfoCmp(UnixTerminal.java:242)
      	at jline.UnixTerminal.<init>(UnixTerminal.java:65)
      	at jline.UnixTerminal.<init>(UnixTerminal.java:50)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      	at java.lang.Class.newInstance(Class.java:442)
      	at jline.TerminalFactory.getFlavor(TerminalFactory.java:211)
      	at jline.TerminalFactory.create(TerminalFactory.java:102)
      	at jline.TerminalFactory.create(TerminalFactory.java:51)
      	at sqlline.SqlLine.getConsoleReader(SqlLine.java:705)
      	at sqlline.SqlLine.begin(SqlLine.java:639)
      	at sqlline.SqlLine.start(SqlLine.java:373)
      	at sqlline.SqlLine.main(SqlLine.java:265)
      

        Attachments

          Activity

            People

            • Assignee:
              julianhyde Julian Hyde
              Reporter:
              Sergey Nuyanzin Sergey Nuyanzin
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: