Re: [castor-user] Unmarshalling a stream with no mappable element should return null or throw an exception

2012-03-15 Thread Werner Guttmann
Hi, On 14.03.2012 03:37, Dumont Arnaud wrote: Hi all, I'm using a simple Unmarshaller to unmarshall a String into a Java bean, using Castor v1.2: Unmarshaller un = new Unmarshaller(MyObject.class); Mapping mapping = new Mapping(); mapping.loadMapping(mappingFilePath); un.setMapping(mapping);

[castor-user] Unmarshalling a stream with no mappable element should return null or throw an exception

2012-03-13 Thread Dumont Arnaud
Hi all, I'm using a simple Unmarshaller to unmarshall a String into a Java bean, using Castor v1.2: Unmarshaller un = new Unmarshaller(MyObject.class); Mapping mapping = new Mapping(); mapping.loadMapping(mappingFilePath); un.setMapping(mapping); MyBean myBean = un.unmarshal(new