ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Ostanin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-8605) sqlline can't work with terminal on newer ncurses
Date Wed, 13 Jun 2018 15:47:00 GMT

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

Oleg Ostanin commented on IGNITE-8605:
--------------------------------------

[~ilyak], changes looks good to me. [~vozerov], please merge.

> sqlline can't work with terminal on newer ncurses
> -------------------------------------------------
>
>                 Key: IGNITE-8605
>                 URL: https://issues.apache.org/jira/browse/IGNITE-8605
>             Project: Ignite
>          Issue Type: Bug
>          Components: general
>    Affects Versions: 2.5
>            Reporter: Ilya Kasnacheev
>            Assignee: Ilya Kasnacheev
>            Priority: Major
>
> On Ubuntu 18.04:
> {code}
> ~/w/incubator-ignite/modules/sqlline% IGNITE_HOME=~/w/incubator-ignite . bin/sqlline.sh
> [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)
> sqlline version 1.3.0
> sqlline>
> ... and then history and command editing won't work
> {code}
> See also https://github.com/jline/jline2/issues/281
> I think we should manually peg jline verison to 2.14.4



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

Mime
View raw message