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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.2.0
    • Component/s: Back End
    • Labels:
      None
    • Environment:
      Windows 7, Daffodil 2.1.0
    • RYG:
      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.xml
          28 kB
          James L Welch
        2. appTable.cfg
          16 kB
          James L Welch
        3. TFconfigSYS.dfdl.xsl
          3 kB
          James L Welch
        4. u.bat
          0.1 kB
          James L Welch

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: