RE: [xstream-user] Re: Getting CannotResolveClassException

2012-05-23 Thread Anshuma Ashok Goyal
Hi Jorg, Thanks for your reply. Format of the CATEGORY_MAP_FILE has not changed. After debugging the issue I found that the below code is unable to load my class: public class CompositeClassLoader extends ClassLoader { ... public Class loadClass(String name) throws ClassNotFoundException

Re: [xstream-user] Re: custom Map converter with XStreamImplicit anotation

2012-05-23 Thread Martin Minka
Jorg, thank you for quick reply. And is there a way for the converter to build output map_value without implicit anotation ? I don't need to use annotation, API would be also good. Martin 2012/5/23 Jörg Schaible > Hi Martin, > > Martin Minka wrote: > > > I would like to produce from a HashMa

[xstream-user] Re: custom Map converter with XStreamImplicit anotation

2012-05-23 Thread Jörg Schaible
Hi Martin, Martin Minka wrote: > I would like to produce from a HashMap following XML: > map_value > > I tried: > @XStreamImplicit(keyFieldName = "a") > @XStreamConverter(MyMapConverter.class) > HashMap map = new HashMap(); > > But this combination never enters MyMapConverter. > > Is there a w

[xstream-user] custom Map converter with XStreamImplicit anotation

2012-05-23 Thread Martin Minka
I would like to produce from a HashMap following XML: map_value I tried: @XStreamImplicit(keyFieldName = "a") @XStreamConverter(MyMapConverter.class) HashMap map = new HashMap(); But this combination never enters MyMapConverter. Is there a way to achieve this ? Thank you.

[xstream-user] Re: Getting CannotResolveClassException

2012-05-23 Thread Jörg Schaible
Hi, Anshuma Ashok Goyal wrote: > Hi Guys, > > I am using com.thoughtworks.xstream v1.3.1. And trying to load XML file > to java object. > > While doing so getting CannotResolveClassException error for the class > CategoryRuleMap which is present at the required location. > > This functionalit

[xstream-user] Getting CannotResolveClassException

2012-05-23 Thread Anshuma Ashok Goyal
Hi Guys, I am using com.thoughtworks.xstream v1.3.1. And trying to load XML file to java object. While doing so getting CannotResolveClassException error for the class CategoryRuleMap which is present at the required location. This functionality was working with Sonar plugin api - 1.10. I hav