Re: ResultSet with more than 5 rows causes error
От | Ludovico Bianchini |
---|---|
Тема | Re: ResultSet with more than 5 rows causes error |
Дата | |
Msg-id | 006a01c8011e$b4f10480$4101a8c0@MRHYDE обсуждение исходный текст |
Ответ на | ResultSet with more than 5 rows causes error (Ludovico Bianchini <metlud@yahoo.it>) |
Список | pgsql-jdbc |
The error happens after the first 5 rows are correctly processed.
After .next(), when the cursor is positioned on the sixth row, accessing
the first column value with .getObject(1) causes a NullPointerException
After .next(), when the cursor is positioned on the sixth row, accessing
the first column value with .getObject(1) causes a NullPointerException
Stack trace
java.lang.NullPointerException
at
org.postgresql.core.v3.SimpleParameterList.getV3Length(SimpleParameterList.java:228)
at
org.postgresql.core.v3.QueryExecutorImpl.sendBind(QueryExecutorImpl.java:807)
at
org.postgresql.core.v3.QueryExecutorImpl.sendOneQuery(QueryExecutorImpl.java:1052)
at
org.postgresql.core.v3.QueryExecutorImpl.sendQuery(QueryExecutorImpl.java:643)
at
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:189)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:452)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:351)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:344)
java.lang.NullPointerException
at
org.postgresql.core.v3.SimpleParameterList.getV3Length(SimpleParameterList.java:228)
at
org.postgresql.core.v3.QueryExecutorImpl.sendBind(QueryExecutorImpl.java:807)
at
org.postgresql.core.v3.QueryExecutorImpl.sendOneQuery(QueryExecutorImpl.java:1052)
at
org.postgresql.core.v3.QueryExecutorImpl.sendQuery(QueryExecutorImpl.java:643)
at
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:189)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:452)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:351)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:344)
В списке pgsql-jdbc по дате отправления: