Dependency issues were related to Guava and Java Servlet. I've resolved
them. Currently I'm facing index out of bound error in simple select query
with prepared statement.

Following is error log:
java.sql.SQLException: exception while executing query: Unexpected
RuntimeException: java.lang.IndexOutOfBoundsException: Index: 0
    at net.hydromatic.avatica.Helper.createException(Helper.java:40)
    at
net.hydromatic.avatica.AvaticaConnection.executeQueryInternal(AvaticaConnection.java:406)
    at
net.hydromatic.avatica.AvaticaPreparedStatement.executeQuery(AvaticaPreparedStatement.java:77)
    at org.apache.drill.jdbc.test.SampleTest.setup(SampleTest.java:17)
    at org.apache.drill.jdbc.test.SampleTest.testSample(SampleTest.java:25)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:78)
    at
com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:212)
    at
com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:68)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
Caused by: java.sql.SQLException: Unexpected RuntimeException:
java.lang.IndexOutOfBoundsException: Index: 0
    at
org.apache.drill.jdbc.impl.DrillCursor.nextRowInternally(DrillCursor.java:261)
    at
org.apache.drill.jdbc.impl.DrillCursor.loadInitialSchema(DrillCursor.java:290)
    at
org.apache.drill.jdbc.impl.DrillResultSetImpl.execute(DrillResultSetImpl.java:1359)
    at
org.apache.drill.jdbc.impl.DrillResultSetImpl.execute(DrillResultSetImpl.java:74)
    at
net.hydromatic.avatica.AvaticaConnection.executeQueryInternal(AvaticaConnection.java:404)
    ... 13 more
Caused by: java.lang.IndexOutOfBoundsException: Index: 0
    at java.util.Collections$EmptyList.get(Collections.java:4454)
    at
org.apache.drill.exec.proto.UserBitShared$SerializedField.getChild(UserBitShared.java:8390)
    at
org.apache.drill.exec.vector.VarCharVector.load(VarCharVector.java:184)
    at
org.apache.drill.exec.vector.complex.BaseRepeatedValueVector.load(BaseRepeatedValueVector.java:161)
    at
org.apache.drill.exec.record.RecordBatchLoader.load(RecordBatchLoader.java:102)
    at
org.apache.drill.jdbc.impl.DrillCursor.nextRowInternally(DrillCursor.java:223)
    ... 17 more

Any suggestions to resolve this would be appreciated.

- Nikunj



<https://issues.apache.org/jira/browse/DRILL-3632>

<https://issues.apache.org/jira/browse/DRILL-3632>

On Wed, Sep 30, 2015 at 2:17 PM, Nikunj Thakkar <[email protected]
> wrote:

> Hi,
>
> I'm using drill v1.1.0 in my current setup and facing dependency issues. I
> came across https://issues.apache.org/jira/browse/DRILL-3589 which seems
> to be the root cause of my problem. Issue got resolved in v1.2. Can I use
> it with 1.1 release? Has anyone tried this?
>
>
> Thanks,
> Nikunj
>

Reply via email to