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

Exiting Designer when preview server NOT running results in connection exception

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 7.1.1
    • None
    • Data Preview
    • None

    Description

      Was working on other defects and running Designer with my Server NOT running, even though I still had a default server defined in Designer.

      Each time I exited Designer, I got the following because the preview manager's shutdown logic was calling a getAdmin() which lazily tries to create one. Need to do one more check to prevent exception.

      1 [SingleInstanceCommunicationException]Error establishing socket to host and port: localhost:31443. Reason: Connection refused
      2 [ConnectException]Connection refused
      at org.teiid.adminapi.AdminFactory.createAdmin(AdminFactory.java:214)
      at org.teiid.adminapi.AdminFactory.createAdmin(AdminFactory.java:199)
      at org.teiid.adminapi.AdminFactory.createAdmin(AdminFactory.java:167)
      at org.teiid.designer.runtime.Server.getAdmin(Server.java:129)
      at org.teiid.designer.runtime.preview.PreviewManager.shutdown(PreviewManager.java:1409)
      at org.teiid.designer.runtime.ServerManager.shutdown(ServerManager.java:511)
      at com.metamatrix.modeler.dqp.ui.DqpUiPlugin$1.run(DqpUiPlugin.java:190)

      Attachments

        Activity

          People

            blafond Barry LaFond
            blafond Barry LaFond
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: