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

Unordered Sequence misidentifies referenced elements Namespaces

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.2.0
    • Back End
    • None

    Description

      I get the following error when running the above test. For some context a02:inty is from an imported schema with targetNamespace "http://a02.com" (..a02_targetnamespace.dfdl.xsd) and b02:inty is from an inlcuded schema with no targetnamespace (no_targetnamespace.dfd.xsd). The targetnamesapce of the main schema (nested_namespaces.dfdl.xsd) is "http://b02.com"

      java.lang.AssertionError: pf compile errors: Schema Definition Error: Two or more members of the unordered sequence (b02:seq2::LocalComplexTypeDef::sequence[1]) have the same name and the same namespace.
      Namespace: http://b02.com	Name: inty.
      Schema context: sequence[1] Location line 12 column 8 in file:/tmp/anon7335421393015500745.dfdl.xsd
      
      	at org.junit.Assert.fail(Assert.java:89)
      	at TestUnorderedSequenceNamespace$.testDataProcessor(TestUnorderedSequenceNamespace.scala:32)
      	at TestUnorderedSequenceNamespace$.dpNamespaces$lzycompute(TestUnorderedSequenceNamespace.scala:24)
      	at TestUnorderedSequenceNamespace$.dpNamespaces(TestUnorderedSequenceNamespace.scala:24)
      	at TestUnorderedSequenceNamespace.test_DataProcessor_parse(TestUnorderedSequenceNamespace.scala:61)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
      	at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
      	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
      	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
      	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
      	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
      	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
      	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
      	at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33)
      	at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:220)
      	at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:53)
      

      Attachments

        1. example_a02_targetnamespace.dfdl.xsd
          2 kB
          Olabusayo Kilo
        2. example_nested_namespaces.dfdl.xsd
          2 kB
          Olabusayo Kilo
        3. example_no_targetnamespace.dfdl.xsd
          2 kB
          Olabusayo Kilo
        4. TestUnorderedSequenceNamespace.scala
          2 kB
          Olabusayo Kilo

        Activity

          People

            slawrence Steve Lawrence
            okilo@tresys.com Olabusayo Kilo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: