【发布时间】:2020-02-24 10:24:36
【问题描述】:
我正在尝试使用
运行 liquibase 更新命令liquibase --driver="com.ibm.db2.jcc.DB2Driver" --changeLogFile="masterchangelog.xml " --url="jdbc:db2://localhost:60001/SMDINTDB:retrieveMessageFromServerOnGetMessage=true;sslConnection=true;" --username="" --password="" --classpath=/home/db2inst1/sqllib/java/db2jcc4.jar validate
但我收到以下错误。谁能帮我解决这个问题?如何指定证书的位置?
Unexpected error running Liquibase: com.ibm.db2.jcc.am.DisconnectNonTransientConnectionException: [jcc][t4][2030][11211][4.26.14] A communication error occurred during operations on the connection's underlying socket, socket input stream,
or socket output stream. Error location: Reply.fill() - socketInputStream.read (-1). Message: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target. ERRORCODE=-4499, SQLSTATE=08001
【问题讨论】:
-
信息不足。您是否连接到 Db2-LUW 本地(或 Db2-warehouse-on-cloud)?编辑您的问题以指定您将哪个 jre 用于 liquibase,以及您是否为 SSL 配置了该 jre。
标签: jdbc db2 liquibase liquibase-hibernate db2-woc