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

Exception when creating a Teiid Metadata Model

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.7.1, 7.8
    • None
    • None
    • None
    • Hide

      1) Create a new project called 'test'
      2) Select New > Create Teiid Metadata Model from the project's context menu
      3) Enter the model name as 'tm', select 'Web Service' as the model class and select 'Build from existing WSDL file'. Click Next
      4) At this point, the test/tm.xmi path specified by the first page has been overridden by the visible WSDL Selection page. Finish the wizard and observe the exception in the console.

      Show
      1) Create a new project called 'test' 2) Select New > Create Teiid Metadata Model from the project's context menu 3) Enter the model name as 'tm', select 'Web Service' as the model class and select 'Build from existing WSDL file'. Click Next 4) At this point, the test/tm.xmi path specified by the first page has been overridden by the visible WSDL Selection page. Finish the wizard and observe the exception in the console.

    Description

      Creation of a new Teiid Metadata Model only partially creates the model and throws the following exception

      java.lang.IllegalArgumentException: Path must include project and resource name: /test
      at org.eclipse.core.runtime.Assert.isLegal(Assert.java:63)
      at org.eclipse.core.internal.resources.Workspace.newResource(Workspace.java:2169)
      at org.eclipse.core.internal.resources.Container.getFile(Container.java:208)
      at com.metamatrix.modeler.webservice.WebServicePlugin.createModelGenerator(WebServicePlugin.java:190)
      at com.metamatrix.modeler.internal.webservice.BasicWebServiceModelBuilder.doCreateModelGenerator(BasicWebServiceModelBuilder.java:1255)
      at com.metamatrix.modeler.internal.webservice.BasicWebServiceModelBuilder.getModelGenerator(BasicWebServiceModelBuilder.java:1246)
      at com.metamatrix.modeler.internal.webservice.ui.wizard.WebServiceModelContributor.dispose(WebServiceModelContributor.java:124)
      at com.metamatrix.modeler.internal.webservice.ui.wizard.WebServiceModelContributor.doFinish(WebServiceModelContributor.java:183)
      at com.metamatrix.modeler.internal.ui.wizards.NewModelWizard$3.run(NewModelWizard.java:361)
      ...

      This is due to reuse of the WsdlSelectionPage in this wizard. This page overwrites the model builder's model path (set by the first wizard page to be test/tm.xmi) with the folder name of test. Since this wizard page is used in more than one situation, case must be taken to ensure that it is fixed to be used in all situations.

      Attachments

        Activity

          People

            parichar@redhat.com Paul Richardson
            parichar@redhat.com Paul Richardson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: