My Oracle Support Banner

Intermittent Web Service Response SchemaValidation FatalError - org.xml.sax.SAXParseException: cvc-complex-type.2.4.b: The Content of Element 'DataResponse' is not Complete (Doc ID 1938463.1)

Last updated on FEBRUARY 27, 2019

Applies to:

Oracle WebLogic Server - Version 10.3.6 and later
Information in this document applies to any platform.

Symptoms

On WLS 10.3.6,we have web services configured with @SchemaValidation so request/response data is validated against the schema.When we call the service at a normal rate, we sometimes see this error: our configured web service's SchemaValidation handler's fatalError method is called indicating an invalid response due to SAXParseException when the response is in fact valid schema.

ERROR app..ws.SchemaValidationErrorHandler SchemaValidationError DataResponse , Exception String: org.xml.sax.SAXParseException: cvc-complex-type.2.4.d: Invalid content was found starting with element 'ns7:DataResponse'. No child element '{"http://com/abc/xyz/com/Dmg/m3":MyData}' is expected at this point. org.xml.sax.SAXParseException: cvc-complex-type.2.4.d: Invalid content was found starting with element 'ns7:DataResponse'. No child element '{"http://com/abc/xyz/com/Dmg/m3":MyData}' is expected at this point.
      at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
      at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
      at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)
      at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)
      at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:423)
      at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3188)
ERROR app..ws.SchemaValidationErrorHandler SchemaValidationFatalError DataResponse , Exception String: javax.xml.bind.MarshalException
      at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
      at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
      at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)
      at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)
      at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:423)
      at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3188)


Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.b: The content of element 'DataResponse' is not complete. One of '{"http://com/abc/xyz/com/Dmg/m3":DataResponse}' is expected.


So, the error appears to be that the weblogic schema validation code is not thread safe.

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.