JDBC-NG prepared statement path throws exception if there is no native SRID
---------------------------------------------------------------------------
Key: GEOT-2459
URL: http://jira.codehaus.org/browse/GEOT-2459
Project: GeoTools
Issue Type: Bug
Components: data jdbc-ng
Affects Versions: 2.5.4
Reporter: Andrea Aime
Fix For: 2.5.5
This happens only if the native srid is missing (not set -1, really null, which
is something you can do in Oracle).
The result is:
{code}
... 55 more
Caused by: java.lang.NullPointerException
at org.geotools.jdbc.PreparedFilterToSQL.visit(PreparedFilterToSQL.java:
123)
at org.geotools.filter.LiteralExpressionImpl.accept(LiteralExpressionImp
l.java:361)
at org.geotools.data.oracle.OracleFilterToSQL.doSDORelate(OracleFilterTo
SQL.java:241)
at org.geotools.data.oracle.OracleFilterToSQL.visitBinarySpatialOperator
(OracleFilterToSQL.java:174)
at org.geotools.jdbc.PreparedFilterToSQL.visitBinarySpatialOperator(Prep
aredFilterToSQL.java:253)
at org.geotools.data.jdbc.FilterToSQL.visit(FilterToSQL.java:768)
at org.geotools.filter.spatial.IntersectsImpl.accept(IntersectsImpl.java
:58)
at org.geotools.data.jdbc.FilterToSQL.encode(FilterToSQL.java:183)
at org.geotools.data.jdbc.FilterToSQL.encodeToString(FilterToSQL.java:21
2)
at org.geotools.jdbc.JDBCDataStore.selectBoundsSQLPS(JDBCDataStore.java:
2623)
at org.geotools.jdbc.JDBCDataStore.getBounds(JDBCDataStore.java:837)
at org.geotools.jdbc.JDBCFeatureSource.getBoundsInternal(JDBCFeatureSour
ce.java:433)
{code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel