It maybe because of complex relationships. You would need to post deployment descriptors and describe relationships among real instances. But could you try 3.2.5 first? and batch-cascade-delete?
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Maykel Tres > Sent: Friday, July 09, 2004 9:08 PM > To: [EMAIL PROTECTED] > Subject: [JBoss-user] Problem with cascade-delete > > Hi folks, > > I work with JBoss 3.2.1 and CMP 2.0. > I have a CMR relation 1-n in my application and I tried > deleting an entity that has n entities related, but JBoss > show me the following > error: > > org.jboss.tm.JBossTransactionRolledbackException: null; > nested exception > is: javax.ejb.EJBException: Update failed. Expected one affected row: > rowsAffected=0id=1; > > I was seeing the log file generated by P6spy and I thing > there is something wrong. > > Following the log: > > 1089394476685|0|0|statement|DELETE FROM NEWS WHERE F_ID=?|DELETE FROM > NEWS WHERE F_ID='11' > 1089394476695|0|0|statement|DELETE FROM NEWSLINKS WHERE F_ID=?|DELETE > FROM NEWSLINKS WHERE F_ID='1' > 1089394476715|0|0|statement|UPDATE NEWSLINKS SET F_NEWS=? WHERE > F_ID=?|UPDATE NEWSLINKS SET F_NEWS='' WHERE F_ID='1' > > JBoss performed a delete command and after an update command. > I think this command is unnecessary and it's generating an error. > > My question is: Why does this update command is being performed? > > Maykel Tres > > > > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > digital self defense, top technical experts, no vendor > pitches, unmatched networking opportunities. Visit > www.blackhat.com _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > > ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user