Code first:
PGpoint coordinates = (PGpoint) rs.getObject(4);
Causes ClassCastException.
Referencing postgresql-9.1-901.jdbc3.jar on the project.
Returning a recordset on a android application. Any way to circumvent this?
TIA
Code first:
PGpoint coordinates = (PGpoint) rs.getObject(4);
Causes ClassCastException.
Referencing postgresql-9.1-901.jdbc3.jar on the project.
Returning a recordset on a android application. Any way to circumvent this?
TIA
This looks very similar to the question org.postgresql.util.PGobject cannot be cast to org.postgis.PGgeometry. The answer provided there, quoted below, mentions postgis.jar being not installed property. Might this apply to your situation as well? How did you install postgis?
If you use Hibernate Spatial in a web container with the JDBC provided by the container through JNDI, then the postgis.jar should also be installed together with the JDBC driver and should not be contained in the WEB-INF/lib directory