You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2018/07/17 15:26:00 UTC
[jira] [Resolved] (CXF-7795) Unmarshalling exception
[ https://issues.apache.org/jira/browse/CXF-7795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp resolved CXF-7795.
------------------------------
Resolution: Not A Bug
Assignee: Daniel Kulp
Fix Version/s: Invalid
> 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
> Assignee: Daniel Kulp
> Priority: Critical
> Fix For: Invalid
>
>
> 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)