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

Exception on unparse of string with explicit length and truncateSpecifiedLengthString="yes"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.0
    • 2.2.0
    • Back End
    • None
    • Windows 7, Daffodil 2.1.0
    • Yellow

    Description

      java.lang.StringIndexOutOfBoundsException: String index out of range: 64

       <xs:element name="AppParms" type="xs:string" dfdl:lengthKind="explicit" dfdl:length="64" dfdl:textOutputMinLength="64" />

       Removed dfdl:textOutputMinLength - same error

      Attached file AppTable.cfg is the original binary file parsed into AppTable.xml

      Unparsing gives exception on first AppParms element

      Attachments

        1. appTable.cfg
          16 kB
          James L Welch
        2. AppTable.xml
          28 kB
          James L Welch
        3. TFconfigSYS.dfdl.xsl
          3 kB
          James L Welch
        4. u.bat
          0.1 kB
          James L Welch

        Activity

          People

            slawrence Steve Lawrence
            jimwelchok James L Welch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: