Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Xinsheng Robert Chen
unicast for cache replication in Liferay portal cluster
October 6, 2011 10:58 AM
Answer

Xinsheng Robert Chen

Rank: Junior Member

Posts: 42

Join Date: March 30, 2010

Recent Posts

Hi,

I am clustering two nodes of Liferay portal 6.0 SP1 in the out-of-the-box JBoss 5.1.0 bundle. I use JGroup to do unicasting for cache replication between the two nodes. I starts node1 and see the following exceptions in the log file:

2011-10-05 19:40:16,356 ERROR [STDERR] (Bootstrap Thread for cache com.liferay.portal.model.impl.UserImpl) Exception in thread "Bootstrap Thread for cache com.liferay.portal.model.impl.UserImpl"
2011-10-05 19:40:16,469 ERROR [STDERR] (Bootstrap Thread for cache com.liferay.portal.model.impl.UserImpl) java.lang.ClassCastException: org.jgroups.util.UUID cannot be cast to org.jgroups.stack.IpAddress
2011-10-05 19:40:16,469 ERROR [STDERR] (Bootstrap Thread for cache com.liferay.portal.model.impl.UserImpl) at net.sf.ehcache.distribution.jgroups.JGroupsBootstrapCacheLoader.doLoad(JGroupsBootstrapCacheLoader.java:139)
2011-10-05 19:40:16,469 ERROR [STDERR] (Bootstrap Thread for cache com.liferay.portal.model.impl.UserImpl) at net.sf.ehcache.distribution.jgroups.JGroupsBootstrapCacheLoader$BootstrapThread.run(JGroupsBootstrapCacheLoader.java:108)
2011-10-05 19:40:16,779 ERROR [STDERR] (Bootstrap Thread for cache org.hibernate.cache.UpdateTimestampsCache) Exception in thread "Bootstrap Thread for cache org.hibernate.cache.UpdateTimestampsCache"
2011-10-05 19:40:16,779 ERROR [STDERR] (Bootstrap Thread for cache org.hibernate.cache.UpdateTimestampsCache) java.lang.ClassCastException: org.jgroups.util.UUID cannot be cast to org.jgroups.stack.IpAddress
2011-10-05 19:40:16,779 ERROR [STDERR] (Bootstrap Thread for cache org.hibernate.cache.UpdateTimestampsCache) at net.sf.ehcache.distribution.jgroups.JGroupsBootstrapCacheLoader.doLoad(JGroupsBootstrapCacheLoader.java:139)
2011-10-05 19:40:16,779 ERROR [STDERR] (Bootstrap Thread for cache org.hibernate.cache.UpdateTimestampsCache) at net.sf.ehcache.distribution.jgroups.JGroupsBootstrapCacheLoader$BootstrapThread.run(JGroupsBootstrapCacheLoader.java:108)
2011-10-05 19:40:16,879 ERROR [STDERR] (Bootstrap Thread for cache com.liferay.portal.model.impl.TeamImpl) Exception in thread "Bootstrap Thread for cache com.liferay.portal.model.impl.TeamImpl"
2011-10-05 19:40:16,879 ERROR [STDERR] (Bootstrap Thread for cache com.liferay.portal.model.impl.TeamImpl) java.lang.ClassCastException: org.jgroups.util.UUID cannot be cast to org.jgroups.stack.IpAddress
2011-10-05 19:40:16,879 ERROR [STDERR] (Bootstrap Thread for cache com.liferay.portal.model.impl.TeamImpl) at net.sf.ehcache.distribution.jgroups.JGroupsBootstrapCacheLoader.doLoad(JGroupsBootstrapCacheLoader.java:139)
2011-10-05 19:40:16,880 ERROR [STDERR] (Bootstrap Thread for cache com.liferay.portal.model.impl.TeamImpl) at net.sf.ehcache.distribution.jgroups.JGroupsBootstrapCacheLoader$BootstrapThread.run(JGroupsBootstrapCacheLoader.java:108)

I would appreciate any help!
Xinsheng Robert Chen
RE: unicast for cache replication in Liferay portal cluster
October 9, 2011 9:02 AM
Answer

Xinsheng Robert Chen

Rank: Junior Member

Posts: 42

Join Date: March 30, 2010

Recent Posts

Hi,

Please allow me to answer my own question.

After I replace the ehcache.jar, ehcache-jgroupsreplication.jar and jgroups.jar in the "ROOT.war/WEB-INF/lib/" folder with the following JAR files, the issue was gone.

ehcache-core-2.4.5.jar
ehcache-jgroupsreplication-1.4.jar
jgroups-2.12.1.Final.jar

I have also learned from this post:

http://www.liferay.com/community/forums/-/message_boards/message/6469358