- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在配置 SymmetricDS 3.6.12 的两个实例。服务器实例在 Glassfish 3 服务器中工作,使用 8181 端口作为 https。客户端实例作为服务运行(在 jetty 中),https 端口为 31417。这两个实例已配置并正在运行。客户端的 sym_tables 已使用来自服务器的数据进行更新,但是我想要同步的表都不起作用。我在服务器中收到此错误:
2014-11-25 23:34:31,493 WARN [ERPServer] [FileSyncService] [erpserver-file_push-1] Could not communicate with node 'PDV:19742872000153:19742872000153' at https://fe80:0:0:0:0:5efe:c0a8:18f%net10:31417/sync/19742872000153 because of unexpected error
java.net.MalformedURLException: Stream handler unavailable due to: For input string: "0:0:0:0:5efe:c0a8:18f%net10:31417"
at java.net.URL.<init>(URL.java:619)
at java.net.URL.<init>(URL.java:482)
at java.net.URL.<init>(URL.java:431)
at org.jumpmind.symmetric.transport.http.HttpTransportManager.getFilePushTransport(HttpTransportManager.java:217)
at org.jumpmind.symmetric.service.impl.FileSyncService.pushFilesToNode(FileSyncService.java:606)
at org.jumpmind.symmetric.service.impl.FileSyncService.execute(FileSyncService.java:593)
at org.jumpmind.symmetric.service.impl.NodeCommunicationService$2.run(NodeCommunicationService.java:307)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.IllegalStateException: Stream handler unavailable due to: For input string: "0:0:0:0:5efe:c0a8:18f%net10:31417"
at org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:431)
at java.net.URL.<init>(URL.java:614)
... 9 more
更多信息
服务器是这样配置的:
engine.name=ERPServer
group.id=ERP
external.id=19742872000153ERP
registration.url=
sync.url=https://$(ipAddress):8181/symmetric_ds/sync/$(engineName)
客户端是这样配置的:
engine.name=19742872000153
group.id=PDV
external.id=19742872000153
registration.url=https://192.168.1.150:8181/symmetric_ds/sync/ERPServer
sync.url=https://$(ipAddress):31417/sync/$(engineName)
我已检查客户端使用的 IPv6 (fe80:0:0:0:0:5efe:c0a8:18f%net10) 并验证它是否是有效的 IP。查看这部分错误消息:
java.net.MalformedURLException: Stream handler unavailable due to: For input string: "0:0:0:0:5efe:c0a8:18f%net10:31417"
我们可以看到该 url 没有 IP 的第一部分 (fe80),而是在 url 中显示了端口 (31417)。这是 SymmetricDS 的错误吗?我可以做些什么来解决这个问题吗?
最佳答案
注册网址是硬编码的:
registration.url=https://192.168.1.150:8181/symmetric_ds/sync/ERPServer
这就是客户端成功注册的原因。问题在于 ipAddress
变量替换。检查为什么在客户端将其替换为 fe80:0:0:0:0:5efe:c0a8:18f%net10
并将其修复。
关于java - SymmetricDS MalformedURLException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27138987/
我目前正在使用 SymmetricDS 3.8.27。我有一个逗号分隔的文件,其中包含数据库表的数据。是否可以使用 SymmetricDS 将该数据从 CSV 文件复制到 MySql 数据库表中?如果
我有一个运行 SymmetricDS 的 3 服务器。假设我的节点 1 是主节点,节点 2.node 3 是子节点。 当一些数据被插入到节点 2 时,它被同步到节点 1,类似地,节点 3 的数据正在与
我正在尝试使用 SymmetricDS pro v 3.7.23 配置一个复制的备份数据库 我使用 2 个文件:master.properties 用于主数据库: "external.id=serve
我感觉有点傻,我搜索答案并没有发现其他人遇到这个问题。 假设我有 NodeHQ、Node1 和 Node2。我已经创建了触发器来在 3 个之间同步 TableA,如下所示: Node1 NodeHQ
我已使用 Azure SQL 在 Azure Windows Server 2016 上为主数据库和从数据库设置了 SymmetricDS 节点。我现在想要在高可用性模式下设置 SymmetricDS
我需要为 SymmetricDS 创建一种新方言,以将数据从 MySQl/MSSql/Oracle 复制到新数据库(现在没有方言)。这个数据库有特定的sql。我已阅读http://www.symmet
我们正在尝试使用 SymmetricDS 将我们的 Microsoft SQL Server 模式复制到 MySQL 服务器, 我让它运行并且工作正常,但我需要采取的下一步是将 SymmetricDS
我们有一个 corp 节点和许多用于文件同步的存储节点。我们有从每个商店节点到公司节点的同步文件。不同店铺的源码目录不同。 我们可以使用 bean shell 脚本或任何扩展来动态更改文件触发器的基本
我正在使用对称 DS toll 进行数据库同步。每当我将一些字段插入主节点时,它应该流向从节点。 我检查了 sym_data 表,数据正在创建,但从属节点中没有更新数据,也没有存在错误的传出批处理。
我需要将数据从oracle迁移并同步到mysql。另外,我想要在同步和迁移期间进行数据转换,因为 mysql 的表设计与 oracle 不同。 我正在尝试使用 symmetryds 来实现我的目标,但
我有两个数据库:oracle 和 postgres。 SymmetricDS 在两个方向上同步表。似乎一切正常。但是我需要一个基于触发器的逻辑来“即时”更正插入/更新的行。此触发器必须位于 oracl
我将 SymmetricDS 与许多商店节点和一个公司节点一起使用。 我必须在存储节点中的表与公司节点中的表之间进行转换同步,并使用 sym_transform_table 和 sym_transfo
我需要编写代码,使用 SymmetricDS 并在按下按钮时同步两个数据库。 IE。我需要按下按钮,它显示它正在同步,然后当没有更多变化时它会说“一切正常”并让我继续操作。 除了确定一切都已同步的方法
我正在配置 SymmetricDS 3.6.12 的两个实例。服务器实例在 Glassfish 3 服务器中工作,使用 8181 端口作为 https。客户端实例作为服务运行(在 jetty 中),h
嗯,我正在尝试将数据从内存中的 DB1 迁移到我的 DB2。为此,我使用 SymmetricDS,其配置方式是,当 SymmetricDS 启动时,它将执行从 DB1 到 DB2 的初始加载。此外,每
我正在测试 SymmetricDS,我对应该使用哪种方法来同步某些特定的表有一些疑问。我有两个应用程序,第一个是 ERP,第二个是 PDV。有些表可以同步到所有 PDV 数据库,但是,在某些表中,行应
我正在尝试使用 SymmetricDS 为一个中心节点和许多客户端实现多主机双向同步。客户端仅与中央节点(星形拓扑)通信。我在处理主键冲突时遇到问题。 例如数据库包含带有列 id、name 的表“pe
INFO [client-001-job-3] o.j.s.s.impl.DataLoaderService - Using registration URL of http://localhost
我一直在尝试与 SymmetricDS 进行条件同步。问题是,无论我做什么,它都会忽略应该有条件同步的表,而只会无条件同步表。 所以我想,我错误地使用了这些条件。我在当前版本的用户指南中找不到此 Ma
我一直在从事一个涉及使用对称 ds 同步两个数据库的小项目。我的数据库之一是 mysql,另一个是 h2。我希望我的程序在单击时更新 h2 数据库。但是,更新函数会生成类似以下内容的错误: org.h
我是一名优秀的程序员,十分优秀!