gpt4 book ai didi

java - 未启动用于MySQL的IBM CDC

转载 作者:行者123 更新时间:2023-12-01 16:22:11 27 4
gpt4 key购买 nike

我正在尝试将AS400的IBM数据复制设置为MySQL。对于目标MySQL,现在是最新的MySQL 8.0.20社区服务器。我已经很好地测试了JDBC连接。但是,CDC实例永远不会启动(通过测试从8.0.9rc到8.0.20的MySQL Jdbc连接)。在Windows中,实例已添加但未启动。已完成一些操作,但是无法在RHEL中添加实例。但是,日志错误消息是完全相同的。


IBM InfoSphere CDC访问服务器(11.4.0.2-11016)
适用于MySQL的IBM InfoSphere Data Replication(11.4.0.2-5548)
备注:两个RHEL / Windows 2016测试环境都面临相同的结果


仅对于8.0.9rc到8.0.11,可能会尝试连接返回的错误。


格式错误的数据库URL,无法解析主要URL部分。


由于1.8的JRE / JDK提供了IBM,因此我已经为设置设置了正确的JAVA_HOME,PATH。有什么线索吗?我用以下方法尝试了连接字符串:(在Windows / Linux Access Server和IIDR上)


jdbc:mysql://127.0.0.1:3306 / testdb
jdbc:mysql://127.0.0.1:3306 / testdb?useSSL = false
jdbc:mysql://127.0.0.1:3306 / testdb?useUnicode = true&characterEncoding = utf-8&useSSL = false
jdbc:mysql://127.0.0.1:3306 / testdb?useUnicode = true&characterEncoding = utf-8&useSSL = false&serverTimezone = GMT


实际上,它提供了相同的结果。我尝试使用jdbc:mysql://127.0.0.1:3306 / testdb&useSSL = false输入错误

然后,它可以返回语法错误。有人有任何线索吗?它与JDBC VS Java版本兼容性问题有关吗?

详细的Java日志消息:
36 2020-06-07 11:21:51.335 main {1} com.datamirror.ts.engine.ReplicationExecutive startup()监视统计信息数据库错误:发生SQL异常。 SQL错误代码为“ 0”。 SQL状态是:08001。错误消息是:|由于潜在的异常而无法加载连接类:com.mysql.cj.core.exceptions.WrongArgumentException:格式错误的数据库URL,未能解析主URL部分。†com.datamirror .ts.monitoragent.statistics.MonitorStatisticsPbException监视统计信息数据库错误:发生SQL异常。 SQL错误代码为“ 0”。 SQL状态是:08001。错误消息是:|由于潜在的异常而无法加载连接类:com.mysql.cj.core.exceptions.WrongArgumentException:数据库URL格式错误,无法解析主要URL部分。在com.datamirror.ts.monitoragent.statistics.MonitorStatisticsDatabase.openConnection(MonitorStatisticsDatabase.java:616)|在com.datamirror.ts.monitoragent.statistics.MonitorStatisticsDatabase。(MonitorStatisticsDatabase.java:129)|在com.datamirror.ts.monitoragent.statistics.MonitoringStatistics.monitorStatsCollectOn(MonitoringStatistics.java:162)|在com.datamirror.ts.monitoragent.statistics.MonitoringStatistics。(MonitoringStatistics.java:145)|在com.datamirror.ts.monitoragent.statistics.MonitoringStatistics.start(MonitoringStatistics.java:177)|在com.datamirror.ts.engine.ReplicationExecutive.init(ReplicationExecutive.java:430)|在com.datamirror.ts.engine.ReplicationExecutive.startup(ReplicationExecutive.java:244)|在com.datamirror.ts.commandlinetools.script.Startup.executeUtility(Startup.java:92)|在com.datamirror.ts.commandlinetools.shared.BaseUtility.entryPoint(BaseUtility.java:267)|在com.datamirror.ts.commandlinetools.script.Startup.main(Startup.java:105)处|由:java.sql.SQLNonTransientConnectionException由于底层异常而无法加载连接类:com.mysql.cj.core.exceptions.WrongArgumentException :格式错误的数据库URL,无法解析主要URL部分。在com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:108)|在com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:95)|在com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:87)|在com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:61)|在com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:71)|在com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:79)|在com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:131)|中在com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:232)|在java.sql.DriverManager.getConnection(DriverManager.java:675)|在java.sql.DriverManager.getConnection(DriverManager.java:258)|在com.datamirror.ts.monitoragent.statistics.MonitorStatisticsDatabase.createConnection(MonitorStatisticsDatabase.java:765)|在com.datamirror.ts.monitoragent.statistics.MonitorStatisticsDatabase.openConnection(MonitorStatisticsDatabase.java:569)|在com.datamirror.ts.monitoragent.statistics.MonitorStatisticsDatabase。(MonitorStatisticsDatabase.java:129)|在com.datamirror.ts.monitoragent.statistics.MonitoringStatistics.monitorStatsCollectOn(MonitoringStatistics.java:162)|在com.datamirror.ts.monitoragent.statistics.MonitoringStatistics。(MonitoringStatistics.java:145)|在com.datamirror.ts.monitoragent.statistics.MonitoringStatistics.start(MonitoringStatistics.java:177)|在com.datamirror.ts.engine.ReplicationExecutive.init(ReplicationExecutive.java:430)|在com.datamirror.ts.engine.ReplicationExecutive.startup(ReplicationExecutive.java:244)|在com.datamirror.ts.commandlinetools.script.Startup.executeUtility(Startup.java:92)|在com.datamirror.ts.commandlinetools.shared.BaseUtility.entryPoint(BaseUtility.java:267)|在com.datamirror.ts.commandlinetools.script.Startup.main(Startup.java:105)处|由以下原因引起:com.mysql.cj.core.exceptions.UnableToConnectException由于底层异常,无法加载连接类:com.mysql.cj .core.exceptions.WrongArgumentException:格式错误的数据库URL,无法解析主URL部分。在sun.reflect.NativeConstructorAccessorImpl.newInstance0(本机方法)|在sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:83)|在sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:57)|在java.lang.reflect.Constructor.newInstance(Constructor.java:437)|在com.mysql.cj.core.exceptions.ExceptionFactory.createException(ExceptionFactory.java:60)|在com.mysql.cj.core.exceptions.ExceptionFactory.createException(ExceptionFactory.java:99)|在com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:232)|在java.sql.DriverManager.getConnection(DriverManager.java:675)|在java.sql.DriverManager.getConnection(DriverManager.java:258)|在com.datamirror.ts.monitoragent.statistics.MonitorStatisticsDatabase.createConnection(MonitorStatisticsDatabase.java:765)|在com.datamirror.ts.monitoragent.statistics.MonitorStatisticsDatabase.openConnection(MonitorStatisticsDatabase.java:569)|在com.datamirror.ts.monitoragent.statistics.MonitorStatisticsDatabase。(MonitorStatisticsDatabase.java:129)|在com.datamirror.ts.monitoragent.statistics.MonitoringStatistics.monitorStatsCollectOn(MonitoringStatistics.java:162)|在com.datamirror.ts.monitoragent.statistics.MonitoringStatistics。(MonitoringStatistics.java:145)|在com.datamirror.ts.monitoragent.statistics.MonitoringStatistics.start(MonitoringStatistics.java:177)|在com.datamirror.ts.engine.ReplicationExecutive.init(ReplicationExecutive.java:430)|在com.datamirror.ts.engine.ReplicationExecutive.startup(ReplicationExecutive.java:244)|在com.datamirror.ts.commandlinetools.script.Startup.executeUtility(Startup.java:92)|在com.datamirror.ts.commandlinetools.shared.BaseUtility.entryPoint(BaseUtility.java:267)|在com.datamirror.ts.commandlinetools.script.Startup.main(Startup.java:105)|由以下原因引起:com.mysql.cj.core.exceptions.WrongArgumentException格式错误的数据库URL,无法解析主URL部分。在sun.reflect.NativeConstructorAccessorImpl.newInstance0(本机方法)|在sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:83)|在sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:57)|在java.lang.reflect.Constructor.newInstance(Constructor.java:437)|在com.mysql.cj.core.exceptions.ExceptionFactory.createException(ExceptionFactory.java:60)|在com.mysql.cj.core.conf.url.ConnectionUrlParser.parseConnectionString(ConnectionUrlParser.java:140)|在com.mysql.cj.core.conf.url.ConnectionUrlParser。(ConnectionUrlParser.java:130)|在com.mysql.cj.core.conf.url.ConnectionUrlParser.parseConnectionString(ConnectionUrlParser.java:119)|在com.mysql.cj.core.conf.url.ConnectionUrl.getConnectionUrlInstance(ConnectionUrl.java:197)|在com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:202)|在java.sql.DriverManager.getConnection(DriverManager.java:675)|在java.sql.DriverManager.getConnection(DriverManager.java:258)|在com.datamirror.ts.monitoragent.statistics.MonitorStatisticsDatabase.createConnection(MonitorStatisticsDatabase.java:765)|在com.datamirror.ts.monitoragent.statistics.MonitorStatisticsDatabase.openConnection(MonitorStatisticsDatabase.java:569)|在com.datamirror.ts.monitoragent.statistics.MonitorStatisticsDatabase。(MonitorStatisticsDatabase.java:129)|在com.datamirror.ts.monitoragent.statistics.MonitoringStatistics.monitorStatsCollectOn(MonitoringStatistics.java:162)|在com.datamirror.ts.monitoragent.statistics.MonitoringStatistics。(MonitoringStatistics.java:145)|在com.datamirror.ts.monitoragent.statistics.MonitoringStatistics.start(MonitoringStatistics.java:177)|在com.datamirror.ts.engine.ReplicationExecutive.init(ReplicationExecutive.java:430)|在com.datamirror.ts.engine.ReplicationExecutive.startup(ReplicationExecutive.java:244)|在com.datamirror.ts.commandlinetools.script.Startup.executeUtility(Startup.java:92)|在com.datamirror.ts.commandlinetools.shared.BaseUtility.entryPoint(BaseUtility.java:267)|在com.datamirror.ts.commandlinetools.script.Startup.main(Startup.java:105)
37 2020-06-07 11:21:51.335 main {1} com.datamirror.ts.util.TsExceptionHandler processUnhandledException()发生未捕获的异常:†java.lang.RuntimeException com.datamirror.ts.monitoragent.statistics.MonitorS

最佳答案

mysql代理跟踪日志中显示的指向URL构造的异常是不合适的,请您看以下示例。

示例:jdbc:mysql://主机名:db_port / db_name?serverTimezone = UTC

https://www.ibm.com/support/knowledgecenter/en/SSTRGZ_11.4.0/com.ibm.cdcdoc.mysql.doc/tasks/addanewinstance_windows.html的知识中心中记录了如何配置的详细步骤。

请找到“社区版”部分提供的步骤,希望这可以解决该问题。

谢谢
苏达山K
IBM IDR CDC

关于java - 未启动用于MySQL的IBM CDC,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62240614/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com