Bugs item #832429, was opened at 2003-10-29 16:00 Message generated for change (Settings changed) made by skulawik You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=832429&group_id=22866
Category: JBossCMP Group: v3.2 Status: Open Resolution: None >Priority: 9 Submitted By: Sascha Kulawik (skulawik) Assigned to: Nobody/Anonymous (nobody) Summary: CMR Field can't be setted to NULL Initial Comment: Hello, I'm expirienced a very stange problem in JBoss 3.2.2 FINAL. Just for information: I've also tried with JBoss 3.2.1 and with JBoss 3.2.2RC4 and there seems everything working correctly. I've a CMP Bean concatenated with a double link list - every Bean knows his previous one and his next one. If there is no next or previous node it will be null. This relationships are managed though CMR. If I move one Bean "up" in the double link list, following code will be executed: ViewComponentLocal prev = view.getPrevNode(); ViewComponentLocal next = view.getNextNode(); ViewComponentLocal prevPrev = prev.getPrevNode(); ViewComponentLocal parent = view.getParent(); prevPrev.setNextNode(view); view.setPrevNode(prevPrev); view.setNextNode(prev); prev.setPrevNode(view); prev.setNextNode(next); The amaizing part of this code is following: If view.getNexNode() is null (view is the last element in this double link list), the last command is logically prev.setNextNode(null). But this "null" will be never saved - if it is a physical Node everythink went ok. As well as execute this Code with JBoss 3.2.1. There is also one next possibility to solve this issue: switching the last command (prev.setNextNode(next)) prior to "prevPrev.setNextNode(view)" for example - but IMHO there must be an error in JBoss - so I'm a little bit confused if this can occur on many places in my code (currently about 50.000 Lines of Code ony on Serverside). I'm really sorry about this testcase - would be much nicer to give you something you can really test - but as I've seen in the Changelogs from RC4->Final that there was a lot of changes in the files regarding CMR and so it might be that thus person knows where the error resists. Regards, Sascha ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376685&aid=832429&group_id=22866 ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
