Foren

Cluster link

CM Siau, geändert vor 12 Jahren.

Cluster link

New Member Beiträge: 12 Beitrittsdatum: 17.11.11 Neueste Beiträge
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, geändert vor 11 Jahren.

RE: Cluster link

Regular Member Beiträge: 130 Beitrittsdatum: 14.01.08 Neueste Beiträge
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