留言板

Cluster link

CM Siau,修改在12 年前。

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
Julio Varela Gómez,修改在11 年前。

RE: Cluster link

Regular Member 帖子: 130 加入日期: 08-1-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