|
|
|
@ -5,7 +5,6 @@ package com.fr.design.data.datapane.connect;
|
|
|
|
|
|
|
|
|
|
import com.fine.swing.ui.layout.Layouts; |
|
|
|
|
import com.fine.theme.icon.LazyIcon; |
|
|
|
|
import com.fine.theme.light.ui.FineRoundBorder; |
|
|
|
|
import com.fine.theme.utils.FineUIScale; |
|
|
|
|
import com.fine.theme.utils.FineUIStyle; |
|
|
|
|
import com.formdev.flatlaf.util.ScaledEmptyBorder; |
|
|
|
@ -13,7 +12,6 @@ import com.fr.data.driver.util.JarFileParseUtil;
|
|
|
|
|
import com.fr.data.impl.Connection; |
|
|
|
|
import com.fr.data.impl.JDBCDatabaseConnection; |
|
|
|
|
import com.fr.data.impl.JNDIDatabaseConnection; |
|
|
|
|
import com.fr.data.operator.DataOperatorProvider; |
|
|
|
|
import com.fr.data.security.ssl.impl.NormalSsl; |
|
|
|
|
import com.fr.data.solution.ExceptionSolutionSelector; |
|
|
|
|
import com.fr.data.solution.entity.DriverPage; |
|
|
|
@ -31,14 +29,12 @@ import com.fr.design.i18n.DesignSizeI18nManager;
|
|
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
|
import com.fr.rpc.ExceptionHandler; |
|
|
|
|
import com.fr.rpc.RPCInvokerExceptionInfo; |
|
|
|
|
import com.fr.stable.ArrayUtils; |
|
|
|
|
import com.fr.stable.EncodeConstants; |
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
import com.fr.workspace.WorkContext; |
|
|
|
|
import com.fr.workspace.engine.exception.DriverUnExistException; |
|
|
|
|
import org.jetbrains.annotations.NotNull; |
|
|
|
|
import com.fr.workspace.server.entity.connection.ConnectionBean; |
|
|
|
|
import com.fr.workspace.server.repository.connection.ConnectionRepository; |
|
|
|
|
|
|
|
|
|
import javax.swing.JDialog; |
|
|
|
@ -479,6 +475,9 @@ public abstract class DatabaseConnectionPane<E extends com.fr.data.impl.Connecti
|
|
|
|
|
uiLabel.setIcon(new LazyIcon("error", 20)); |
|
|
|
|
message.setText(Toolkit.i18nText("Fine-Design_Basic_Connection_Failed")); |
|
|
|
|
Connection database = DatabaseConnectionPane.this.updateBean(); |
|
|
|
|
if (e.getCause() instanceof DriverUnExistException) { |
|
|
|
|
((DriverUnExistException) e.getCause()).setThrowable(new ClassNotFoundException(database.getDriver())); |
|
|
|
|
} |
|
|
|
|
SolutionProcessor select = ExceptionSolutionSelector.get().select(e, database); |
|
|
|
|
String detail = select.getResultException().getDetailMessage(); |
|
|
|
|
String solution = select.getResultException().getSolution(); |
|
|
|
|