Error "Element <{http://www.product.org}sign> is not allowed to have a nil value" when building XSD OTD in CAPS 5.1.3 (Doc ID 1301939.1)

Last updated on NOVEMBER 02, 2016

Applies to:

Oracle Java CAPS - Version: 5.1.3 and later   [Release: 5.1 and later ]
Information in this document applies to any platform.

Symptoms

In Java CAPS 5.1.3 GA the default attribute functionality for an element does not work and the following error occurs when trying to test an XSD OTD in the OTD tester:

Element <{http://www.product.org}sign> is not allowed to have a nil value.

This happens when an element in the XSD is defined as follows:

<xs:element name="sign" type="xs:int" default="0"/>

and the XML message contains the following:

<sign/>

This works in the later CAPS 6U1 release and in 6.2.

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