09-22-05 12:50 PM
Hello all
In my application, I am using EJBs. I have 2 EJBs that have a 0ne-to-many re
lationship (customer-customerNumbers). I have enabled the cascade delete.
When I was using DB2 legacy CLI based type 2 JDBC driver, when I tried to de
lete the customer, it would delete the customer and all of its numbers witho
ut any problems.
When I enabled caching (Life time in cache) and changed to DB2 universal JDB
C driver, when I try to do the same, I get the following error:
javax.transaction.TransactionRolledbackException: CORBA TRANSACTION_ROLLEDBA
CK 0x0 No; nested exception is:
org.omg.CORBA.TRANSACTION_ROLLEDBACK:
Trace from server: 306148906 at host a25ciwps001.toronto.ca.ibm.com >>
org.omg.CORBA.TRANSACTION_ROLLEDBACK: javax.transaction.TransactionRolledbac
kException: ; nested exception is:
javax.ejb.TransactionRolledbackLocalException: ; nested exception is: com.i
bm.db2.jcc.c.SqlException: DB2 SQL error: SQLCODE: -532, SQLSTATE: 23504, SQ
LERRMC: CCSP.CUSTOMER_NUMBER.CUSTOMERN_FK vmcid: 0x0 minor code: 0 comple
ted: No
at com.ibm.ejs.csi.OrbUtilsImpl.mapException(OrbUtilsImpl.java:76)
at com.ibm.ejs.container.RemoteExceptionMappingStrategy.mapEJBException(Remo
teExceptionMappingStrategy.java:391)
at com.ibm.ejs.container.RemoteExceptionMappingStrategy.mapException(RemoteE
xceptionMappingStrategy.java:112)
at com.ibm.ejs.container.RemoteExceptionMappingStrategy.setUncheckedExceptio
n(RemoteExceptionMappingStrategy.java:202)
at com.ibm.ejs.container.EJSDeployedSupport.setUncheckedException(EJSDeploye
dSupport.java(Compiled Code))
For some reason, activating the cache and changing the driver caused this er
ror to happen. I don't know whether this is a WAS bug or not. Can anyone hel
p me out?
Thanks alot
[ Post a follow-up to this message ]
|