Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Could not create Oracle LOB

588534Jul 17 2007 — edited Jul 17 2007
I am getting the following error while a saving a Blob field in the database.Iam using websphere as my application server.


org.springframework.dao.DataAccessResourceFailureException: Could not create Oracle LOB; nested exception is org.springframework.dao.InvalidDataAccessApiUsageException: OracleLobCreator needs to work on [oracle.jdbc.OracleConnection], not on [class org.apache.commons.dbcp.cpdsadapter.ConnectionImpl] - specify a corresponding NativeJdbcExtractor

org.springframework.dao.InvalidDataAccessApiUsageException: OracleLobCreator needs to work on [oracle.jdbc.OracleConnection], not on [class org.apache.commons.dbcp.cpdsadapter.ConnectionImpl] - specify a corresponding NativeJdbcExtractor

at org.springframework.jdbc.support.lob.OracleLobHandler$OracleLobCreator.getOracleConnection(OracleLobHandler.java:360)

at org.springframework.jdbc.support.lob.OracleLobHandler$OracleLobCreator.createLob(OracleLobHandler.java:328)

at org.springframework.jdbc.support.lob.OracleLobHandler$OracleLobCreator.setBlobAsBytes(OracleLobHandler.java:216)

at org.springframework.orm.hibernate.support.BlobByteArrayType.nullSafeSetInternal(BlobByteArrayType.java:98)

at org.springframework.orm.hibernate.support.AbstractLobType.nullSafeSet(AbstractLobType.java:143)

at net.sf.hibernate.type.CustomType.nullSafeSet(CustomType.java:118)


Please help

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 14 2007
Added on Jul 17 2007
2 comments
2,091 views