[JBoss-dev] [ jboss-Bugs-1019013 ] The instance was cascade-deleted when re-creating entity
Bugs item #1019013, was opened at 2004-08-30 14:36 Message generated for change (Comment added) made by loubyansky You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=376685aid=1019013group_id=22866 Category: JBossCMP Group: v3.2 Status: Closed Resolution: Fixed Priority: 5 Submitted By: Alexei Yudichev (sflexus) Assigned to: Alexey Loubyansky (loubyansky) Summary: The instance was cascade-deleted when re-creating entity Initial Comment: After I migrated from JBoss 3.2.2.RC4 to 3.2.5 I started having the following problem: In my application I have two CMP entities: EntityA and EntityB with CMR 1:1. EntityB is cascade-deleted after EntityA. If withing a single transaction I: 1) Remove some instance of EntityA, corresponding EntityB instance is cascade-deleted; 2) Create a new instance of EntityB with THE SAME PRIMARY KEY as previously deleted EntityB had 3) Try to invoke CMR setter EntityA.setEntityB(newly created instance of EntityB) I get java.lang.IllegalArgumentException: The instance was cascade-deleted: pk=XXX at org.jboss.ejb.plugins.cmp.jdbc.bridge. JDBCCMRFieldBridge. getRelatedPrimaryKey(JDBCCMRFieldBridge.java:1720) at org.jboss.ejb.plugins.cmp.jdbc.bridge. JDBCCMRFieldBridge. setInstanceValue(JDBCCMRFieldBridge.java:790) at org.jboss.ejb.plugins.cmp.jdbc.bridge. JDBCCMRFieldBridge.setValue(JDBCCMRFieldBridge.java: 637) at org.jboss.ejb.plugins.cmp.bridge. EntityBridgeInvocationHandler$FieldSetInvoker. invoke(EntityBridgeInvocationHandler.java:156) at org.jboss.ejb.plugins.cmp.bridge. EntityBridgeInvocationHandler. invoke(EntityBridgeInvocationHandler.java:91) at org.jboss.proxy.compiler.Runtime.invoke(Runtime. java:62) at xxx.EntityA$Proxy.setEntityB(generated) I do understand that the instance was deleted, but why can't I use a new one with the same PK in CMR setter? I can provide a test case if there is a problem with reproduction. -- Comment By: Alexey Loubyansky (loubyansky) Date: 2004-09-14 12:26 Message: Logged In: YES user_id=543482 Fixed in 3.2.6 and 4.0. Thanks. -- Comment By: Vaikom B. Krishnan (vbkrishnan) Date: 2004-09-13 20:03 Message: Logged In: YES user_id=979630 We are facing the same issue as well and this issue will prevent us from porting to JBoss 3.2.4. -- You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=376685aid=1019013group_id=22866 --- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [ jboss-Bugs-1019013 ] The instance was cascade-deleted when re-creating entity
Bugs item #1019013, was opened at 2004-08-30 04:36 Message generated for change (Comment added) made by vbkrishnan You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=376685aid=1019013group_id=22866 Category: JBossCMP Group: v3.2 Status: Open Resolution: None Priority: 5 Submitted By: Alexei Yudichev (sflexus) Assigned to: Nobody/Anonymous (nobody) Summary: The instance was cascade-deleted when re-creating entity Initial Comment: After I migrated from JBoss 3.2.2.RC4 to 3.2.5 I started having the following problem: In my application I have two CMP entities: EntityA and EntityB with CMR 1:1. EntityB is cascade-deleted after EntityA. If withing a single transaction I: 1) Remove some instance of EntityA, corresponding EntityB instance is cascade-deleted; 2) Create a new instance of EntityB with THE SAME PRIMARY KEY as previously deleted EntityB had 3) Try to invoke CMR setter EntityA.setEntityB(newly created instance of EntityB) I get java.lang.IllegalArgumentException: The instance was cascade-deleted: pk=XXX at org.jboss.ejb.plugins.cmp.jdbc.bridge. JDBCCMRFieldBridge. getRelatedPrimaryKey(JDBCCMRFieldBridge.java:1720) at org.jboss.ejb.plugins.cmp.jdbc.bridge. JDBCCMRFieldBridge. setInstanceValue(JDBCCMRFieldBridge.java:790) at org.jboss.ejb.plugins.cmp.jdbc.bridge. JDBCCMRFieldBridge.setValue(JDBCCMRFieldBridge.java: 637) at org.jboss.ejb.plugins.cmp.bridge. EntityBridgeInvocationHandler$FieldSetInvoker. invoke(EntityBridgeInvocationHandler.java:156) at org.jboss.ejb.plugins.cmp.bridge. EntityBridgeInvocationHandler. invoke(EntityBridgeInvocationHandler.java:91) at org.jboss.proxy.compiler.Runtime.invoke(Runtime. java:62) at xxx.EntityA$Proxy.setEntityB(generated) I do understand that the instance was deleted, but why can't I use a new one with the same PK in CMR setter? I can provide a test case if there is a problem with reproduction. -- Comment By: Vaikom B. Krishnan (vbkrishnan) Date: 2004-09-13 10:03 Message: Logged In: YES user_id=979630 We are facing the same issue as well and this issue will prevent us from porting to JBoss 3.2.4. -- You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=376685aid=1019013group_id=22866 --- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [ jboss-Bugs-1019013 ] The instance was cascade-deleted when re-creating entity
Bugs item #1019013, was opened at 2004-08-30 14:36 Message generated for change (Settings changed) made by loubyansky You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=376685aid=1019013group_id=22866 Category: JBossCMP Group: v3.2 Status: Open Resolution: None Priority: 5 Submitted By: Alexei Yudichev (sflexus) Assigned to: Alexey Loubyansky (loubyansky) Summary: The instance was cascade-deleted when re-creating entity Initial Comment: After I migrated from JBoss 3.2.2.RC4 to 3.2.5 I started having the following problem: In my application I have two CMP entities: EntityA and EntityB with CMR 1:1. EntityB is cascade-deleted after EntityA. If withing a single transaction I: 1) Remove some instance of EntityA, corresponding EntityB instance is cascade-deleted; 2) Create a new instance of EntityB with THE SAME PRIMARY KEY as previously deleted EntityB had 3) Try to invoke CMR setter EntityA.setEntityB(newly created instance of EntityB) I get java.lang.IllegalArgumentException: The instance was cascade-deleted: pk=XXX at org.jboss.ejb.plugins.cmp.jdbc.bridge. JDBCCMRFieldBridge. getRelatedPrimaryKey(JDBCCMRFieldBridge.java:1720) at org.jboss.ejb.plugins.cmp.jdbc.bridge. JDBCCMRFieldBridge. setInstanceValue(JDBCCMRFieldBridge.java:790) at org.jboss.ejb.plugins.cmp.jdbc.bridge. JDBCCMRFieldBridge.setValue(JDBCCMRFieldBridge.java: 637) at org.jboss.ejb.plugins.cmp.bridge. EntityBridgeInvocationHandler$FieldSetInvoker. invoke(EntityBridgeInvocationHandler.java:156) at org.jboss.ejb.plugins.cmp.bridge. EntityBridgeInvocationHandler. invoke(EntityBridgeInvocationHandler.java:91) at org.jboss.proxy.compiler.Runtime.invoke(Runtime. java:62) at xxx.EntityA$Proxy.setEntityB(generated) I do understand that the instance was deleted, but why can't I use a new one with the same PK in CMR setter? I can provide a test case if there is a problem with reproduction. -- Comment By: Vaikom B. Krishnan (vbkrishnan) Date: 2004-09-13 20:03 Message: Logged In: YES user_id=979630 We are facing the same issue as well and this issue will prevent us from porting to JBoss 3.2.4. -- You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=376685aid=1019013group_id=22866 --- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development