Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 17114 invoked from network); 18 Sep 2003 17:17:28 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 18 Sep 2003 17:17:28 -0000 Received: (qmail 1414 invoked by uid 500); 18 Sep 2003 17:17:14 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 1392 invoked by uid 500); 18 Sep 2003 17:17:14 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 1378 invoked from network); 18 Sep 2003 17:17:13 -0000 Received: from unknown (HELO kdcnt4ims02.kdc.capitalone.com) (199.244.214.30) by daedalus.apache.org with SMTP; 18 Sep 2003 17:17:13 -0000 Received: by KDCNT4IMS02 with Internet Mail Service (5.5.2653.19) id ; Thu, 18 Sep 2003 13:12:19 -0400 Message-ID: <73E71EF16978D51197180002A56022D20743C9D6@ngmnt4mbx03.uk.capitalone.com> From: "Hope, Matthew" To: 'Jakarta Commons Users List' Subject: RE: Betwixt - CyclicReferenceException Date: Thu, 18 Sep 2003 13:12:15 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Are you sure none of these objects contains a reference to it's parent? Technically (assuming all edges are directed (i.e. one way which is = what a simple variable is) this is not cyclic. Though you may need some betwixt configuration to make sure it treats = it as such (I know little about betwixt - sorry) Matt -----Original Message----- From: Michael Watson [mailto:michael.watson@estafet.com]=20 Sent: 18 September 2003 18:01 To: Jakarta Commons Users List Subject: Re: Betwixt - CyclicReferenceException Hi Matt, Thanks for the info - I was heading in the right direction. It seems that my bean (A) contains the following refs: A->B->C A->D->E->C Is that cyclic? It has these in both scenarios (exception thrown/not thrown). Any suggestions why this might only cause me problems in certain = situations? Thanks in advance. Mike ----- Original Message -----=20 From: "Hope, Matthew" To: "'Jakarta Commons Users List'" Sent: Thursday, September 18, 2003 5:15 PM Subject: RE: Betwixt - CyclicReferenceException A cyclical reference is when a loop exists in your object graph (or = indeed any type of graph) If you have A- > B B -> C C -> A Then a loop exists and if some algorithm is meant to 'walk' through the graph and do something at each node (object) then in the situation = above it would walk forever going round in a loop. Graph traversal (walk) algorithms often include mechanisms to avoid = loops, either by terminating in a failure state (throw an exception) or by not traversing an edge to a node already visited. This implementation is maintaining a set of nodes visited and when a = node is revisited it throws an exception. One area where this can be a pain is if you have a structure A -> B via variable x A -> B via variable y In this case a na=EFve algorithm will call this a revisit - I don't = know if betwixt does though Your two examples would contain one which has no such loop and another = which does. Perhaps in one you are reusing an object in two different = variables? Matt -----Original Message----- From: Michael Watson [mailto:michael.watson@estafet.com] Sent: 18 September 2003 16:58 To: Jakarta Commons Users List Subject: Betwixt - CyclicReferenceException Hi, I'm having issues with cyclic references and was wondering if anyone = can shed some light for me. I'm calling BeanWriter.write (on a reasonably complex bean) and = occasionally getting a cyclicreferenceexception thrown. I can reproduce the problem easily but the thing that's confusing me is = that I can call this method with another instance of the same type of bean = (with near identical data) and it doesn't throw an exception. Can anyone explain exactly what a cyclic reference is, how I might be = able to identify what part of the bean is causing it and how I can try and = avoid it? Thanks in advance. Mike --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org ************************************************************************= ** The information transmitted herewith is sensitive information intended = only for use by the individual or entity to which it is addressed. If the = reader of this message is not the intended recipient, you are hereby notified = that any review, retransmission, dissemination, distribution, copying or = other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org =20 ************************************************************************= ** The information transmitted herewith is sensitive information intended = only for use by the individual or entity to which it is addressed. If the = reader of this message is not the intended recipient, you are hereby notified = that any review, retransmission, dissemination, distribution, copying or = other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org