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

Cannot preview WSDL webservice

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • 8.2
    • 8.2
    • Web Services Support
    • None

    Description

      When trying to preview a model that includes a WSDL webservice as a source, the process fails due to the following error:

      org.teiid.adminapi.AdminProcessingException: TEIID70003 Data source with name PREVIEW_2dd455bc-3423-4866-a362-3e5cd83831cb_FinancialsDemo_VirtualBaseLayer_StockQuote_sources_StockQuote already exists; choose a different deployment name
      

      Stacktrace:

      at org.teiid.adminapi.AdminFactory$AdminImpl.createDataSource(AdminFactory.java:407)
      	at org.teiid84.runtime.ExecutionAdmin.getOrCreateDataSource(ExecutionAdmin.java:324)
      	at org.teiid.designer.runtime.TeiidServer.getOrCreateDataSource(TeiidServer.java:551)
      	at org.teiid.designer.runtime.TeiidDataSourceFactory.createDataSource(TeiidDataSourceFactory.java:107)
      	at org.teiid.designer.runtime.preview.PreviewManager.getOrCreateDataSource(PreviewManager.java:667)
      	at org.teiid.designer.runtime.preview.PreviewManager.ensureConnectionInfoIsValid(PreviewManager.java:504)
      

      The error is right that a PREVIEW already exists and the getOrCreateDataSource() method is wrong is trying to create it. The webservice PREVIEWs are held in the:

      <subsystem>
        <resource-adapters>
          <resource-adapter id="webservice">
            ...
          </resource-adapter>
        </resource-adapters>
      </subsystem>
      

      rather than with the datasources and these are never checked or cached by Designer.

      Likewise these previews never appear in the server view under datasources since they are never returned via ExecutionAdmin.refreshDataSourceNames().

      Question is how to properly refactor ExecutionAdmin classes to correctly return these data sources (that are not technically data sources) so that getOrCreate works as does delete.

      Note. the webservice data source does appear in the server view but the preview does not!

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-tejones Edwin Jones
              parichar@redhat.com Paul Richardson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: