掲示板

Cluster link

12年前 に CM Siau によって更新されました。

Cluster link

New Member 投稿: 12 参加年月日: 11/11/17 最新の投稿
Hi Sir/Mdm,

When i added cluster link=true and cluster.link.autodetect.address=dbip:dbport, the apps has exception:

17:05:21,203 INFO [ClusterBase:157] Autodetecting JGroups outgoing IP address and interface for dbip:dbport
17:05:21,207 INFO [ClusterBase:173] Setting JGroups outgoing IP address to app's server ip and interface to eth0
17:05:21,486 ERROR [ClusterExecutorImpl:296] org.jgroups.ChannelException: unable to setup the protocol stack
org.jgroups.ChannelException: unable to setup the protocol stack
at org.jgroups.JChannel.init(JChannel.java:1706)
at org.jgroups.JChannel.<init>(JChannel.java:243)
at org.jgroups.JChannel.<init>(JChannel.java:226)
at com.liferay.portal.cluster.ClusterBase.createJChannel(ClusterBase.java:104)
at com.liferay.portal.cluster.ClusterExecutorImpl.initChannels(ClusterExecutorImpl.java:292)
at com.liferay.portal.cluster.ClusterBase.afterPropertiesSet(ClusterBase.java:83)
at com.liferay.portal.cluster.ClusterExecutorImpl.afterPropertiesSet(ClusterExecutorImpl.java:73)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1544)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)

Do the multicast ip need to add route or any reason can cause this? Anyone can help? Thank you so much !
thumbnail
11年前 に Julio Varela Gómez によって更新されました。

RE: Cluster link

Regular Member 投稿: 130 参加年月日: 08/01/14 最新の投稿
It seems that the jvm using IPv6 stack by default but the bind address is IPv4 type.

Add the following property on server startup

-Djava.net.preferIPv4Stack=true