Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-926

ClassCastException on sequence with complexType

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2.0.0
    • s12
    • QA
    • None

      Received a ClassCastException in a test with a sequence of elements with a complexType.

      See test sequenceWithComplexType in:
      daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section14/sequence_groups/SequenceGroup.tdml
      daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section14/sequence_groups/sequenceWithComplexType.dfdl.xsd
      daffodil-test/src/test/scala-debug/edu/illinois/ncsa/daffodil/section14/sequence_groups/TestSequenceGroupsDebug.scala

      Error:

      edu.illinois.ncsa.daffodil.dsom.oolag.OOLAG$LV Error[element.e1::LocalComplexTypeDef::sequence::element.e2@@hasKnownRequiredSyntax has no value due to java.lang.ClassCastException: edu.illinois.ncsa.daffodil.dsom.GlobalComplexTypeDef cannot be cast to edu.illinois.ncsa.daffodil.dsom.SimpleTypeBase.]
      [error] Test edu.illinois.ncsa.daffodil.section14.sequence_groups.TestSequenceGroupsDebug.test_sequenceWithComplexType failed: edu.illinois.ncsa.daffodil.exceptions.Abort: java.lang.ClassCastException: edu.illinois.ncsa.daffodil.dsom.GlobalComplexTypeDef cannot be cast to edu.illinois.ncsa.daffodil.dsom.SimpleTypeBase
      [error]     at edu.illinois.ncsa.daffodil.dsom.oolag.OOLAG$OOLAGValue.edu$illinois$ncsa$daffodil$dsom$oolag$OOLAG$OOLAGValue$$oolagTryCatch(OOLAG.scala:543)
      [error]     at edu.illinois.ncsa.daffodil.dsom.oolag.OOLAG$OOLAGValue$$anonfun$6.apply(OOLAG.scala:626)
      [error]     at edu.illinois.ncsa.daffodil.dsom.oolag.OOLAG$OOLAGHost.circularityDetector(OOLAG.scala:265)

              efinnegan Elizabeth Finnegan
              efinnegan Elizabeth Finnegan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: