Exiting Designer when preview server NOT running results in connection exception
--------------------------------------------------------------------------------
Key: TEIIDDES-621
URL:
https://jira.jboss.org/browse/TEIIDDES-621
Project: Teiid Designer
Issue Type: Bug
Components: Data Preview
Reporter: Barry LaFond
Assignee: Barry LaFond
Priority: Critical
Fix For: 7.1.1
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)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira