需要帮助将 Squirrel SQL Client 4.0.0 连接到 IBM DB2

Need help connecting Squirrel SQL Client 4.0.0 to IBM DB2

我在尝试连接到数据库时需要帮助来取消此堆栈跟踪:

java.net.SocketException: Invalid argument: create
    at java.base/java.net.Socket.createImpl(Unknown Source)
    at java.base/java.net.Socket.connect(Unknown Source)
    at com.ibm.db2.jcc.t4.x.run(x.java:49)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at com.ibm.db2.jcc.t4.a0.a(a0.java:436)
    at com.ibm.db2.jcc.t4.a0.<init>(a0.java:96)
    at com.ibm.db2.jcc.t4.a.b(a.java:366)
    at com.ibm.db2.jcc.t4.b.newAgent_(b.java:2164)
    at com.ibm.db2.jcc.am.Connection.initConnection(Connection.java:839)
    at com.ibm.db2.jcc.am.Connection.<init>(Connection.java:784)
    at com.ibm.db2.jcc.t4.b.<init>(b.java:350)
    at com.ibm.db2.jcc.DB2SimpleDataSource.getConnection(DB2SimpleDataSource.java:233)
    at com.ibm.db2.jcc.DB2SimpleDataSource.getConnection(DB2SimpleDataSource.java:200)
    at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:471)
    at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:113)
    at net.sourceforge.squirrel_sql.fw.sql.SQLDriverManager.getConnection(SQLDriverManager.java:147)
    at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.executeConnect(OpenConnectionCommand.java:148)
    at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.lambda$execute[=11=](OpenConnectionCommand.java:93)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.base/java.lang.Thread.run(Unknown Source)

我尽我所能尝试使用谷歌搜索,但无法弄清楚是什么原因造成的。尝试更改 file/folder 权限以移除任何写保护。也尝试了 IBM 的 11.5 版新驱动程序,但同样的错误仍然存​​在。 (db2jcc.jar 和 db2jcc4.jar)

该连接在依赖于 Java 1.7 的旧版本 Squirrel 上工作正常。版本 4.0.0 使用 Java 9 运行,启动正常,但无法连接到数据库。

截至 2019 年 9 月 Db2 for LUW 11.5 ships with and lists among supported software Java 8,这意味着 Java 9 不受官方支持,不应使用。