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