[teiid-designer-dev] [Teiid-Designer/teiid-designer] a80203: TEIIDDES-2118: Display error message when jdbc con...

Paul Richardson p.g.richardson at redhat.com
Tue Apr 22 08:14:08 EDT 2014


  Branch: refs/heads/8.3.x
  Home:   https://github.com/Teiid-Designer/teiid-designer
  Commit: a80203dd9132ddb2c629cf89959563f14f087f73
      https://github.com/Teiid-Designer/teiid-designer/commit/a80203dd9132ddb2c629cf89959563f14f087f73
  Author: Paul Richardson <p.g.richardson at redhat.com>
  Date:   2014-04-22 (Tue, 22 Apr 2014)

  Changed paths:
    M plugins/org.teiid.datatools.connectivity/src/org/teiid/datatools/connectivity/TeiidJDBCConnection.java
    M plugins/org.teiid.designer.dqp.ui/src/org/teiid/designer/runtime/ui/i18n.properties
    M plugins/org.teiid.designer.dqp.ui/src/org/teiid/designer/runtime/ui/vdb/ExecuteVdbWorker.java

  Log Message:
  -----------
  TEIIDDES-2118: Display error message when jdbc connection fails

* ExecuteVdbWorker
 * Display the error dialog if the code of the connection's returned status
   is ERROR.

* TeiidJDBCConnection
 * Breaks up the exception handling to differentiate between a
   ClassNotFoundException which should be ignored and an actual connection
   failure which needs to be thrown and reported to the user


  Commit: 2d8a090778c2551991654ea8a6bf032a370d43a5
      https://github.com/Teiid-Designer/teiid-designer/commit/2d8a090778c2551991654ea8a6bf032a370d43a5
  Author: Paul Richardson <p.g.richardson at redhat.com>
  Date:   2014-04-22 (Tue, 22 Apr 2014)

  Changed paths:
    M plugins/org.teiid.datatools.connectivity/src/org/teiid/datatools/connectivity/TeiidJDBCConnection.java

  Log Message:
  -----------
  TEIIDDES-2124: Incorrect exception being caught

* Seems that ClassNotFoundException gets thrown in the IDE but a
  NoClassDefError is thrown by installs.

* Catches any throwable and discards since the important thing is whether
  jdbcDriver has been successfully assigned. If not then moves on to
  alternative initialising process.


Compare: https://github.com/Teiid-Designer/teiid-designer/compare/57f26c0be066...2d8a090778c2


More information about the teiid-designer-dev mailing list