diff --git a/designer-base/src/main/java/com/fr/design/data/datapane/connect/JDBCDefPane.java b/designer-base/src/main/java/com/fr/design/data/datapane/connect/JDBCDefPane.java index 4646d4da8d..c02a85c30f 100644 --- a/designer-base/src/main/java/com/fr/design/data/datapane/connect/JDBCDefPane.java +++ b/designer-base/src/main/java/com/fr/design/data/datapane/connect/JDBCDefPane.java @@ -22,11 +22,13 @@ import com.fr.design.utils.BrowseUtils; import com.fr.file.filter.ChooseFileFilter; import com.fr.general.CloudCenter; import com.fr.general.ComparatorUtils; +import com.fr.log.FineLoggerFactory; import com.fr.stable.ArrayUtils; import com.fr.stable.EncodeConstants; import com.fr.stable.StringUtils; import com.fr.third.guava.collect.HashBiMap; import com.fr.workspace.WorkContext; +import com.fr.workspace.server.repository.connection.ConnectionRepository; import javax.swing.JFileChooser; import javax.swing.JPanel; @@ -331,7 +333,13 @@ public class JDBCDefPane extends JPanel { } private void initMap() { - Map driverLoaders = DriverLoaderConfig.getInstance().getDriverLoaders(); + Map driverLoaders = null; + try { + driverLoaders = ConnectionRepository.getInstance().getDriverLoaders(); + } catch (Exception e) { + FineLoggerFactory.getLogger().error(e.getMessage(), e); + driverLoaders = new HashMap<>(); + } nameAndRepresent = getDriverLoaderAndRepresent(driverLoaders); }