我正在写以下问题:我将多个数据并行导入到PostgreSQL数据库中。从简单的Java应用程序进行导入,并使用postgresql驱动程序。
导入是在不同的数据库表上执行的。如果没有强制实施SSL,则一切正常。强制实施SSL后,仅对某些应用程序才继续导入,但会引发其他异常:
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:210) ~[na:1.8.0_152]
at java.net.SocketInputStream.read(SocketInputStream.java:141) ~[na:1.8.0_152]
at sun.security.ssl.InputRecord.readFully(InputRecord.java:465) ~[na:1.8.0_152]
at sun.security.ssl.InputRecord.read(InputRecord.java:503) ~[na:1.8.0_152]
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:983) ~[na:1.8.0_152]
at sun.security.ssl.SSLSocketImpl.waitForClose(SSLSocketImpl.java:1779) ~[na:1.8.0_152]
at sun.security.ssl.HandshakeOutStream.flush(HandshakeOutStream.java:124) ~[na:1.8.0_152]
at sun.security.ssl.Handshaker.kickstart(Handshaker.java:1067) ~[na:1.8.0_152]
at sun.security.ssl.SSLSocketImpl.kickstartHandshake(SSLSocketImpl.java:1497) ~[na:1.8.0_152]
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1361) ~[na:1.8.0_152]
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413) ~[na:1.8.0_152]
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397) ~[na:1.8.0_152]
at org.postgresql.ssl.MakeSSL.convert(MakeSSL.java:40) ~[postgresql-42.2.5.jar:42.2.5]
... 103 common frames omitted
PostgreSQL数据库是Azure PostgreSQL服务。
我不知道应该寻找什么,原因是什么-它是一些配置参数吗?谢谢您的回答。