Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-2139

unparse of unsignedLong greater than signedLong maximum gives NumberFormatException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.4.0
    • 2.4.0
    • Back End, Unparsing
    • None

    Description

      Unparse of this number: 15418418292323521689 which is within range for an XSD xs:unsignedLong type, gives a NumberFormatException while trying to convert this from the text of the infoset into a value.

       

      java.lang.NumberFormatException: For input string: "15418418292323521689"
          at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
          at java.lang.Long.parseLong(Long.java:592)
          at java.lang.Long.parseLong(Long.java:631)
          at scala.collection.immutable.StringLike.toLong(StringLike.scala:306)
          at scala.collection.immutable.StringLike.toLong$(StringLike.scala:306)
          at scala.collection.immutable.StringOps.toLong(StringOps.scala:29)
          at org.apache.daffodil.dpath.NodeInfo$PrimType$UnsignedInt$.fromXMLString(NodeInfo.scala:491)
          at org.apache.daffodil.dpath.NodeInfo$PrimType$UnsignedInt$.fromXMLString(NodeInfo.scala:488)
          at org.apache.daffodil.infoset.InfosetInputter.createElement(InfosetInputter.scala:385)
       
      

       

      Attachments

        Issue Links

          Activity

            People

              jadams_tresys Josh Adams
              mbeckerle Mike Beckerle
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: