[jboss-user] [JBoss Seam] - Re: I get a exception
In this case you never try and re-persist kfz1. If you did you'd probably get the same error here as well. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036875#4036875 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036875 ___ jboss-user mailing list [EMAIL PROTECTED] https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: I get a exception
long id = this.kfz.getId();// get id | this.kfzsList.remove(this.kfz); // clean up the | Kfz kfz1 = (Kfz) em.find(Kfz.class,id); get object from e. context | this.kfz = null; | em.remove(kfz1); // remove | kfz1 = null; | I have similary case, with one "one to many" relationship that does work, but here i have fore relations... okay i will try tomorow again. thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036863#4036863 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036863 ___ jboss-user mailing list [EMAIL PROTECTED] https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: I get a exception
anonymous wrote : 1. Lookup entity. | 2. Remove entity. | 3. Try and persist removed managed entity. The above is what not to do. So if you're doing that, that's likely your problem. Sry, your code is just too long to sift through. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036849#4036849 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036849 ___ jboss-user mailing list [EMAIL PROTECTED] https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: I get a exception
Yes, you can see that in my code, what do you mean? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036845#4036845 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036845 ___ jboss-user mailing list [EMAIL PROTECTED] https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: I get a exception
How about the second part? Have you done something like this? 1. Lookup entity. 2. Remove entity. 3. Try and persist removed managed entity. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036844#4036844 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036844 ___ jboss-user mailing list [EMAIL PROTECTED] https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: I get a exception
Thanks, but instance is not null. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036843#4036843 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036843 ___ jboss-user mailing list [EMAIL PROTECTED] https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: I get a exception
anonymous wrote : Caused by: org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl[FormatI | d=257, GlobalId=kostja-mobil/468, BranchQual=, localId=468] status=STATUS_NO_TRANSACTION; - nested t | hrowable: (javax.persistence.EntityNotFoundException: deleted entity passed to persist: [kk.rentform | .entity.Kfz#]) | I'd start looking here. Make sure you aren't trying to persist null or an object that has been removed. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036840#4036840 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036840 ___ jboss-user mailing list [EMAIL PROTECTED] https://lists.jboss.org/mailman/listinfo/jboss-user