Valid messages intermittently fail unmarshal with "does not match pattern" UnmarshalException

(Doc ID 1329751.1)

Last updated on FEBRUARY 03, 2017

Applies to:

Oracle Java CAPS - Version 5.1.3 and later
Oracle Java CAPS Enterprise Service Bus - Version R6 U1 and later
Information in this document applies to any platform.
***Checked for relevance on 16-December-2013***

Symptoms

A deployed Repository based project reports occasional, intermittent, UnmarshalExceptions during a WebService OTD unmarshal.

These UnmarshalExceptions erroneously report that a message does not meet the pattern restriction defined in the XSD.

A later unmarshal of the same message, by the same WebService, often works, showing the original UnmarshalException was not correct, and that the message does in fact conform to the restriction.

Example exception :-

com.stc.otd.runtime.UnmarshalException: error: String: 'PW248F82-DA8C-47BD-B622-P0A2CDBDE137' does not match pattern for peterw_type in namespace http://www.walklett.net/schemas/data/v2/peterw_type


In this example, the string 'PW248F82-DA8C-47BD-B622-P0A2CDBDE137' does match the pattern for peterw_type :-

<xsd:simpleType name="peterw_type">
<xsd:restriction base="xsd:string">
<xsd:pattern value="[A-Za-z0-9]{8}-[A-Za-z0-9]{4}-[A-Za-z0-9]{4}-[A-Za-z0-9]{4}-[A-Za-z0-9]{12}"/>
</xsd:restriction>
</xsd:simpleType

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms