axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jack Sprat <rexclaim...@yahoo.com>
Subject [Axis2] XML beans parsing error
Date Mon, 18 Mar 2013 13:55:41 GMT
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
Mime
View raw message