Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7795

Unmarshalling exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Not A Bug
    • 3.2.4
    • Invalid
    • JAXB Databinding
    • None
    • Unknown

    Description

      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; }

        }

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            Vijay Nadipalli Vijay Nadipalli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: