vnadgir / dkpro-core-asl

Automatically exported from code.google.com/p/dkpro-core-asl
0 stars 0 forks source link

JdbcReader broken with Postgres #607

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use JdbcReader with the postgres JDBC Driver (9.3)

What is the expected output? What do you see instead?
Gives the following exception:

Caused by: org.postgresql.util.PSQLException: Operation requires a scrollable 
ResultSet, but this ResultSet is FORWARD_ONLY.
    at org.postgresql.jdbc2.AbstractJdbc2ResultSet.checkScrollable(AbstractJdbc2ResultSet.java:236)
    at org.postgresql.jdbc2.AbstractJdbc2ResultSet.last(AbstractJdbc2ResultSet.java:726)
    at de.tudarmstadt.ukp.dkpro.core.io.jdbc.JdbcReader.query(JdbcReader.java:171)
    ... 11 more

What version of the product are you using? On what operating system?
DKPro 1.6.2 on Windows, 64-bit Java 1.7

Please provide any additional information below.

The error is basically the same as in this StackOverflow Question, which also 
has a potential fix:

http://stackoverflow.com/questions/6367737/resultset-exception-set-type-is-type-
forward-only-why

Original issue reported on code.google.com by kutschke...@googlemail.com on 2 Apr 2015 at 3:35

GoogleCodeExporter commented 9 years ago
Never mind, this is already fixed in 1.7.0

Original comment by kutschke...@googlemail.com on 2 Apr 2015 at 3:58

GoogleCodeExporter commented 9 years ago

Original comment by richard.eckart on 2 Apr 2015 at 6:35