[Axis2] XML beans parsing error

Jack Sprat <[email protected]>
Newsgroups gmane.text.xml.axis.user
Message-ID <[email protected]>
I have a problem with the XMLBeans parser where the request document passes schema validation but throws a NullPointerException.  This is Axis2 version 1.6.1.

The error happens with an element defined as an integer (positiveInteger).  The value in the request is 1.0.  This passes the XMLBeans schema validation.  Here is the code snippet for validation:
 
Set<XmlError> errors = 
newHashSet<XmlError>(); XmlOptions options = 
newXmlOptions();options.setErrorListener(errors);
requestDocument.validate(options);

After passing the schema validation a NullPointerException is thrown when the element value is retrieved.  This is the offending statement in the code stubs generated by Axis2:
 
return target.getIntValue();
 
Is there a way around this error?

Thanks,
J
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.