My Oracle Support Banner

Valid messages intermittently fail unmarshal with "does not match pattern" UnmarshalException (Doc ID 1329751.1)

Last updated on APRIL 23, 2019

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***


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 :- error: String: 'PW248F82-DA8C-47BD-B622-P0A2CDBDE137' does not match pattern for peterw_type in namespace

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}"/>


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

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