You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2018/06/01 16:53:00 UTC

[jira] [Resolved] (CALCITE-2318) NumberFormatException while Sqlline start

     [ https://issues.apache.org/jira/browse/CALCITE-2318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julian Hyde resolved CALCITE-2318.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.17.0

Fixed in [77281547|http://git-wip-us.apache.org/repos/asf/calcite/commit/77281547] by upgrading to [SQLLine 1.4|https://github.com/julianhyde/sqlline/blob/master/HISTORY.md#140-2018-05-31].

> NumberFormatException while Sqlline start 
> ------------------------------------------
>
>                 Key: CALCITE-2318
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2318
>             Project: Calcite
>          Issue Type: Bug
>         Environment: {noformat}
> [serg@localhost ~]$ uname -a
> Linux localhost.localdomain 4.16.7-300.fc28.x86_64 #1 SMP Wed May 2 20:09:13 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
> [serg@localhost ~]$ infocmp -V
> ncurses 6.1.20180224
> {noformat}
>            Reporter: Sergey Nuyanzin
>            Assignee: Julian Hyde
>            Priority: Minor
>             Fix For: 1.17.0
>
>
> 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
> {noformat}
> [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)
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)