Combination View Flat View Tree View
Threads [ Previous | Next ]
suresh vadlamudi
Liferay6.1.20 GA2 EE Shard issue
October 1, 2012 4:56 AM

suresh vadlamudi

Rank: Junior Member

Posts: 33

Join Date: September 7, 2010

Recent Posts

Hi All,

I am trying to upgrade liferay6.1.10 EE GA1 to liferay6.1.20 EE GA2 .As i don't want to loose the existing data..i am pointing GA2 to existing GA1 database.When i make the GA2 up..i am finding the following issue.

Caused by: com.liferay.portal.NoSuchShardException: No Shard exists with the key {classNameId=10021, classPK=0}
at com.liferay.portal.service.persistence.ShardPersistenceImpl.findByC_C(
at sun.reflect.GeneratedMethodAccessor104.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(

Does any have any idea ...why this occures

Cristian Petrula
RE: Liferay6.1.20 GA2 EE Shard issue
October 2, 2013 11:50 PM

Cristian Petrula

Rank: Junior Member

Posts: 29

Join Date: August 26, 2013

Recent Posts


I am using liferay 6.1 GA3 and I also have an issue with cache and sharding. I have noticed that in method encodeLocalCacheKey ShardUtil.getCurrentShardName() always gets the same shard name (default). And because I have the same id-s for some layouts in each shard it generates the same key. And that's not ok.