Vijay Nadipalli created CXF-7795:
------------------------------------
Summary: Unmarshalling exception
Key: CXF-7795
URL: https://issues.apache.org/jira/browse/CXF-7795
Project: CXF
Issue Type: Bug
Components: JAXB Databinding
Affects Versions: 3.2.4
Reporter: Vijay Nadipalli
We are getting scema validation error ( Unmarshalling exception )for type
CustomInteger when value its empty or null.
XSD:
<xsd:element name="CustomInteger" minOccurs="0" maxOccurs="unbounded"
nillable="true">
<xsd:complexType>
<xsd:annotation>
<xsd:documentation>"URN" is the name of a flex field that can be imported or
exported.</xsd:documentation>
</xsd:annotation>
<xsd:simpleContent>
<xsd:extension base="xsd:integer">
<xsd:attribute name="name" type="xsd:string"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
+Generated binding class (JAXB):+
public static class CustomInteger {
@XmlValue
protected BigInteger value;
@XmlAttribute(name = "name")
protected String name;
/**
* Gets the value of the value property.
*
* @return
* possible object is
* \{@link BigInteger }
*
*/
public BigInteger getValue() {
return value;
}
/**
* Sets the value of the value property.
*
* @param value
* allowed object is
* \{@link BigInteger }
*
*/
public void setValue(BigInteger value) {
this.value = value;
}
/**
* Gets the value of the name property.
*
* @return
* possible object is
* \{@link String }
*
*/
public String getName() {
return name;
}
}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)