Uploaded image for project: 'Teiid Designer'
  1. Teiid Designer
  2. TEIIDDES-2120

unable to reference same name .xsd when saving .vdb

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 8.5, 8.3.3
    • 8.3
    • VDB & Execution
    • None
    • Hide

      Attempt to save a vdb that references two same named .xsd that reside in different folders in the project.

      Show
      Attempt to save a vdb that references two same named .xsd that reside in different folders in the project.

    Description

      User can no longer add same name .xsd to a vdb (name same, location(s) different).

      Results in:
      java.lang.RuntimeException: javax.xml.bind.UnmarshalException

      • with linked exception:
        [org.xml.sax.SAXParseException; lineNumber: 61; columnNumber: 168; Duplicate unique value [<name>] declared for identity constraint of element "vdb".]
        at org.teiid.core.designer.CoreModelerPlugin.toRuntimeException(CoreModelerPlugin.java:76)
        at org.teiid.core.designer.util.OperationUtil.perform(OperationUtil.java:50)
        at org.teiid.designer.vdb.VdbUtil.getVdbManifest(VdbUtil.java:178)
        at org.teiid.designer.vdb.VdbUtil.isPreviewVdb(VdbUtil.java:120)
        at org.teiid.designer.runtime.preview.PreviewManager.isPreviewVdb(PreviewManager.java:267)
        at org.teiid.designer.runtime.preview.PreviewManager.findPvdbs(PreviewManager.java:656)
        at org.teiid.designer.runtime.preview.PreviewManager.handleModelProjectOpened(PreviewManager.java:895)
        at org.teiid.designer.runtime.preview.PreviewManager.done(PreviewManager.java:466)
        at org.eclipse.core.internal.jobs.JobListeners$3.notify(JobListeners.java:39)
        at org.eclipse.core.internal.jobs.JobListeners.doNotify(JobListeners.java:112)
        at org.eclipse.core.internal.jobs.JobListeners.done(JobListeners.java:152)
        at org.eclipse.core.internal.jobs.JobManager.endJob(JobManager.java:647)
        at org.eclipse.core.internal.jobs.WorkerPool.endJob(WorkerPool.java:105)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:70)
        Caused by: javax.xml.bind.UnmarshalException

      Attachments

        1. Books_2120.vdb
          16 kB
        2. Books_TEIIDDES_2120.zip
          25 kB
        3. Books_WS_and_XML.zip
          50 kB
        4. excute-ws-text-in-scrapbook.png
          excute-ws-text-in-scrapbook.png
          44 kB
        5. Test_2120.zip
          27 kB
        6. vdb-schemas-tab.png
          vdb-schemas-tab.png
          22 kB
        7. ws-preview-sql-results-status.png
          ws-preview-sql-results-status.png
          11 kB

        Issue Links

          Activity

            People

              parichar@redhat.com Paul Richardson
              rhn-support-jolee Johnathon Lee
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: