Connection RuntimeCast Error
----------------------------
Key: GEOT-3663
URL: https://jira.codehaus.org/browse/GEOT-3663
Project: GeoTools
Issue Type: Bug
Components: geojson, jdbc, jdbc-oracle plugin
Affects Versions: 2.7.1
Reporter: jie yan
I wrapped some gt modules (gt-geojson, gt-jdbc, gt-jdbc-oracle, etc.) to OSGi
bundle in my application.
There is the following exception, when calling
FeatureJSON.writeFeatureCollection().
Should it be add the clause
"((DelegatingConnection)conn).getInnermostDelegate();" somewhere?
2011.06.21 17:23:28.127 *WARN* [1386211@qtp-1562305-0] [demo-app] Failed to
writeFeatureCollection (java.lang.RuntimeException: java.sql.SQLException:
Could not obtain native oracle connection for class
org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper)
java.lang.RuntimeException: java.sql.SQLException: Could not obtain native
oracle connection for class
org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper
at org.geotools.jdbc.JDBCFeatureReader.next(JDBCFeatureReader.java:652)
at org.geotools.jdbc.JDBCFeatureReader.next(JDBCFeatureReader.java:84)
at
org.geotools.data.store.ContentFeatureCollection$WrappingFeatureIterator.next(ContentFeatureCollection.java:189)
at
org.geotools.data.store.ContentFeatureCollection$WrappingFeatureIterator.next(ContentFeatureCollection.java:169)
at
org.geotools.geojson.feature.FeatureJSON$FeatureCollectionEncoder.writeJSONString(FeatureJSON.java:473)
at org.json.simple.JSONValue.writeJSONString(Unknown Source)
at org.json.simple.JSONObject.writeJSONString(Unknown Source)
at org.geotools.geojson.GeoJSONUtil.encode(GeoJSONUtil.java:244)
at
org.geotools.geojson.feature.FeatureJSON.writeFeatureCollection(FeatureJSON.java:248)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel