tag:blogger.com,1999:blog-3631012452491942232.post4096914041585188321..comments2022-04-10T15:23:01.416-07:00Comments on Just on JAVA: Mapping cyclic object references to XML using JAXBPaweł Kępkahttp://www.blogger.com/profile/06189312927574073695noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-3631012452491942232.post-25949574597837804322011-02-16T00:32:00.503-08:002011-02-16T00:32:00.503-08:00@P.V: As suggested by Skandalfo this problem seems...@P.V: As suggested by Skandalfo this problem seems to be related to the version of the JAXB RI. Setting lax to true on @XmlAnyElement should resolve it. I've updated my example to reflect this solution.Paweł Kępkahttps://www.blogger.com/profile/06189312927574073695noreply@blogger.comtag:blogger.com,1999:blog-3631012452491942232.post-27845874117135111172011-02-11T05:45:55.495-08:002011-02-11T05:45:55.495-08:00Anyone find the solution for deserializing the ser...Anyone find the solution for deserializing the serialized graph??Unknownhttps://www.blogger.com/profile/04219951267770593274noreply@blogger.comtag:blogger.com,1999:blog-3631012452491942232.post-36577951140940990832010-12-02T12:02:27.919-08:002010-12-02T12:02:27.919-08:00I just can't test it now, but I think this:
h...I just can't test it now, but I think this:<br /><br />http://download.oracle.com/javaee/5/api/javax/xml/bind/annotation/XmlAnyElement.html#lax%28%29<br /><br />might be relevant to my issue...Skandalfohttps://www.blogger.com/profile/03657421926790640934noreply@blogger.comtag:blogger.com,1999:blog-3631012452491942232.post-4843167772162295312010-12-02T11:45:32.891-08:002010-12-02T11:45:32.891-08:00Your solution seems very clever and it's just ...Your solution seems very clever and it's just what we were looking for.<br /><br />We tested it and we had problems when deserializing the serialized graph. The AnyTypeAdapter would get its unmarshall() method called with a DOM Element when deserializing the value of the root ObjectWrapper, so we ended up with a root ObjectWrapper that just contained a DOM Element as its value.<br /><br />Does this solution depend on a specific version of the JAXB ri?<br /><br />Best regards, and thanks in advance.Skandalfohttps://www.blogger.com/profile/03657421926790640934noreply@blogger.com