Browsing All Posts filed under »XStream«

XStream and Hibernate lazy loading issues

May 9, 2011

0

If you are marshalling persistent objects being managed by Hibernate, you will have issues with Lazy loading. Say you have Order class with an property which is Product class type or List of OrderItem objects … instanceof match will fail (even if you have your own Custom Converter) … as the instance will be OrderItems_javaassist_xxx […]

XStream … ArrayIndexOutOfBoundsException

March 29, 2011

1

Spent a frustrating unproductive day trying to narrow down an XStream XML writer error that just says ” java.lang.ArrayIndexOutOfBoundsException: -1″ with no clues. It’s just a dumb mistake of missing writer.endNode  not matching writer.startNode Wouldn’t this be common error that deserved better messaging ??