Windows 7,在使用 JGroups 的時候提示錯誤:
java.lang.RuntimeException: the type of the stack (IPv6) and the user supplied addresses (IPv4) don't match: /xxx.xxx.xxx.xxx.
在操作系統中禁用 IPv6 是沒用的,這個需要在 JVM 中禁用 IPv6 特性,加入以下參數即可:
-Djava.net.preferIPv4Stack=true
|
|||
Windows 7,在使用 JGroups 的時候提示錯誤: java.lang.RuntimeException: the type of the stack (IPv6) and the user supplied addresses (IPv4) don't match: /xxx.xxx.xxx.xxx. 在操作系統中禁用 IPv6 是沒用的,這個需要在 JVM 中禁用 IPv6 特性,加入以下參數即可: -Djava.net.preferIPv4Stack=true |
|||