db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Eltgroth <jeff_eltgr...@dell.com>
Subject [OJB] Issue #OJB165 - Date class cast exception in Oracle
Date Tue, 06 May 2003 22:45:13 GMT
You can view the issue detail at the following URL:
<http://scarab.werken.com/scarab/issues/id/OJB165>

Type :        Defect
Issue Id :    OJB165
Reported by: Jeff Eltgroth
             jeffe - (jeff_eltgroth@dell.com)

Details:

Platform: PC
Operating system: windows 2000
Summary: Date class cast exception in Oracle
Description: Receive the following stack trace when attempting to persist Object with Date
field:

java.lang.ClassCastException: com.sun.jdori.common.sco.Date
	at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java:2832)
	at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java:2905)
	at org.apache.ojb.broker.platforms.PlatformDefaultImpl.setObjectForStatement(PlatformDefaultImpl.java:229)
	at org.apache.ojb.broker.platforms.PlatformOracleImpl.setObjectForStatement(PlatformOracleImpl.java:132)
	at org.apache.ojb.broker.accesslayer.StatementManager.bindInsert(StatementManager.java:493)
	at org.apache.ojb.broker.accesslayer.JdbcAccessImpl.executeInsert(JdbcAccessImpl.java:198)
	at org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.storeToDb(PersistenceBrokerImpl.java:1835)
	at org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.store(PersistenceBrokerImpl.java:1759)
	at org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.store(PersistenceBrokerImpl.java:1725)
	at org.apache.ojb.broker.singlevm.DelegatingPersistenceBroker.store(DelegatingPersistenceBroker.java:158)
	at org.apache.ojb.jdori.sql.OjbStoreManager.insert(OjbStoreManager.java:140)
	at com.sun.jdori.common.state.PersistentNew.flush(PersistentNew.java:79)
	at com.sun.jdori.common.state.StateManagerImpl.flush(StateManagerImpl.java:433)
	at org.apache.ojb.jdori.sql.OjbStoreManager.flush(OjbStoreManager.java:363)
	at com.sun.jdori.common.CacheManagerImpl.flushInstances(CacheManagerImpl.java:452)
	at com.sun.jdori.common.PersistenceManagerImpl.flushInstances(PersistenceManagerImpl.java:1617)
	at com.sun.jdori.common.TransactionImpl.flushInstances(TransactionImpl.java:971)
	at com.sun.jdori.common.TransactionImpl.prepareFlush(TransactionImpl.java:769)
	at com.sun.jdori.common.TransactionImpl.commit(TransactionImpl.java:400)

Status: New
Severity: Blocker


Mime
View raw message