Uploaded image for project: 'JaxMe'
  1. JaxMe
  2. JAXME-62

IllegalArgumentException on validation, length limit exceeded

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.4
    • None
    • None
    • Java 1.4.2_08, WinXP

    Description

      Instead of IllegalArgument a JAXB- or ValidationException should be thrown.

      java.lang.IllegalArgumentException: Length of 50 characters exceeded: ...Element content longer than 50 characters...
      at de.sag.dms.custom.dialog.coredoc.impl.CoREDocTypeImpl$SGVarianteTypeImpl$DocumentTypeImpl$SegmentTypeImpl$FragmentTypeImpl.setFRAGNAME(CoREDocTypeImpl.java:560)
      at de.sag.dms.custom.dialog.coredoc.impl.CoREDocTypeHandler$SGVarianteTypeHandler$DocumentTypeHandler$SegmentTypeHandler$FragmentTypeHandler.endElement(CoREDocTypeHandler.java:1120)
      at org.apache.ws.jaxme.impl.JMUnmarshallerHandlerImpl.endElement(JMUnmarshallerHandlerImpl.java:258)
      at org.apache.ws.jaxme.util.DOMSerializer.doSerialize(DOMSerializer.java:200)
      at org.apache.ws.jaxme.util.DOMSerializer.doSerializeChilds(DOMSerializer.java:75)
      at org.apache.ws.jaxme.util.DOMSerializer.doSerialize(DOMSerializer.java:199)
      at org.apache.ws.jaxme.util.DOMSerializer.doSerializeChilds(DOMSerializer.java:75)
      at org.apache.ws.jaxme.util.DOMSerializer.doSerialize(DOMSerializer.java:199)
      at org.apache.ws.jaxme.util.DOMSerializer.doSerializeChilds(DOMSerializer.java:75)
      at org.apache.ws.jaxme.util.DOMSerializer.doSerialize(DOMSerializer.java:199)
      at org.apache.ws.jaxme.util.DOMSerializer.doSerializeChilds(DOMSerializer.java:75)
      at org.apache.ws.jaxme.util.DOMSerializer.doSerialize(DOMSerializer.java:199)
      at org.apache.ws.jaxme.util.DOMSerializer.doSerializeChilds(DOMSerializer.java:75)
      at org.apache.ws.jaxme.util.DOMSerializer.doSerialize(DOMSerializer.java:199)
      at org.apache.ws.jaxme.util.DOMSerializer.serialize(DOMSerializer.java:148)
      at org.apache.ws.jaxme.impl.JMUnmarshallerImpl.unmarshal(JMUnmarshallerImpl.java:111)

      Attachments

        Activity

          People

            jochen@apache.org Jochen Wiedmann
            aschoedl Andreas Schoedl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment