|
|
@ -1,5 +1,6 @@ |
|
|
|
package com.fr.design.data.datapane.connect; |
|
|
|
package com.fr.design.data.datapane.connect; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.fr.data.driver.DriverClassNotFoundException; |
|
|
|
import com.fr.data.impl.Connection; |
|
|
|
import com.fr.data.impl.Connection; |
|
|
|
import com.fr.data.impl.JDBCDatabaseConnection; |
|
|
|
import com.fr.data.impl.JDBCDatabaseConnection; |
|
|
|
import com.fr.data.impl.JNDIDatabaseConnection; |
|
|
|
import com.fr.data.impl.JNDIDatabaseConnection; |
|
|
@ -221,6 +222,8 @@ public class ConnectionListPane extends JListControlPane implements ConnectionSh |
|
|
|
Connection connection = entry.getValue(); |
|
|
|
Connection connection = entry.getValue(); |
|
|
|
try { |
|
|
|
try { |
|
|
|
DataOperator.getInstance().validateConnectionSettings(connection); |
|
|
|
DataOperator.getInstance().validateConnectionSettings(connection); |
|
|
|
|
|
|
|
} catch (DriverClassNotFoundException e) { |
|
|
|
|
|
|
|
FineLoggerFactory.getLogger().info(e.getMessage()); |
|
|
|
} catch (SQLException e) { |
|
|
|
} catch (SQLException e) { |
|
|
|
throw new SQLException(Toolkit.i18nText("Fine-Design_Basic_Database_Connection_Invalid_Config", entry.getKey()) + ", " + e.getMessage(), e.getCause()); |
|
|
|
throw new SQLException(Toolkit.i18nText("Fine-Design_Basic_Database_Connection_Invalid_Config", entry.getKey()) + ", " + e.getMessage(), e.getCause()); |
|
|
|
} |
|
|
|
} |
|
|
|