Ilya Suntsov created IGNITE-6478:
------------------------------------

             Summary: IndexOutOfBoundsException jdbc2
                 Key: IGNITE-6478
                 URL: https://issues.apache.org/jira/browse/IGNITE-6478
             Project: Ignite
          Issue Type: Bug
          Components: jdbc
    Affects Versions: 2.1
            Reporter: Ilya Suntsov
             Fix For: 2.3


I've connected to grid via jdbc2 (https://github.com/julianhyde/sqlline) :
{noformat}./sqlline -d org.apache.ignite.IgniteJdbcDriver --color=true 
--verbose=true --showWarnings=true --showNestedErrs=true -u 
jdbc:ignite:cfg://cache=cache123:transactionsAllowed=true@/path_to_config/ignite-jdbc-config.xml
{noformat}
 when I tried to get list of tables I got exception:
{noformat}
0: jdbc:ignite:cfg://cache=cache123:transacti> !tables
java.lang.IndexOutOfBoundsException: Index: 0
        at java.util.Collections$EmptyList.get(Collections.java:4454)
        at 
org.apache.ignite.internal.jdbc2.JdbcResultSetMetadata.getTableName(JdbcResultSetMetadata.java:120)
        at sqlline.Rows.isPrimaryKey(Rows.java:68)
        at sqlline.TableOutputFormat.getOutputString(TableOutputFormat.java:106)
        at sqlline.TableOutputFormat.getOutputString(TableOutputFormat.java:91)
        at sqlline.TableOutputFormat.print(TableOutputFormat.java:35)
        at sqlline.SqlLine.print(SqlLine.java:1648)
        at sqlline.Commands.metadata(Commands.java:199)
        at sqlline.Commands.tables(Commands.java:332)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at 
sqlline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:38)
        at sqlline.SqlLine.dispatch(SqlLine.java:791)
        at sqlline.SqlLine.begin(SqlLine.java:668)
        at sqlline.SqlLine.start(SqlLine.java:373)
        at sqlline.SqlLine.main(SqlLine.java:265)
{noformat}




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to