Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
CM Siau
Cluster link
November 16, 2011 10:04 PM
Answer

CM Siau

Rank: New Member

Posts: 12

Join Date: November 16, 2011

Recent Posts

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 !
Julio Varela Gómez
RE: Cluster link
January 31, 2013 9:31 AM
Answer

Julio Varela Gómez

Rank: Regular Member

Posts: 124

Join Date: January 14, 2008

Recent Posts

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