[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Exception while executing query on Distributed EHCache  XML
Forum Index -> Ehcache
Author Message
dmandapa

neo

Joined: 06/17/2013 06:56:50
Messages: 2
Offline

Hi All,



while running search query on a distributed EHCache (say CACHE) , sometimes getting below xception. Here Keys will be like 123_sdfsdfksdfsdf .And Query is

CACHE.createQuery().addCriteria(Query.KEY.ilike(123_*)).includeValues().end();

java.lang.NullPointerException
at com.tc.object.ClientObjectManagerImpl.lookupExistingObjectID(ClientObjectManagerImpl.java:415)
at com.tc.object.TCObjectServerMapImpl.updateLocalCacheIfNecessary(TCObjectServerMapImpl.java:301)
at com.tc.object.TCObjectServerMapImpl.getAllValuesForKeyFromServer(TCObjectServerMapImpl.java:520)
at com.tc.object.TCObjectServerMapImpl.getAllValuesUnlocked(TCObjectServerMapImpl.java:356)
at com.terracotta.toolkit.collections.ConcurrentDistributedServerMapDsoArray.unlockedGetAll(ConcurrentDistributedServerMapDsoArray.java:210)
at org.terracotta.collections.ConcurrentDistributedMap.unlockedGetAll(ConcurrentDistributedMap.java:231)
at org.terracotta.cache.TerracottaDistributedCache.getNonExpiredEntries(TerracottaDistributedCache.java:284)
at org.terracotta.cache.TerracottaDistributedCache.getNonExpiredEntriesUnlocked(TerracottaDistributedCache.java:165)
at org.terracotta.cache.TerracottaDistributedCache.unlockedGetAllTimestampedValue(TerracottaDistributedCache.java:659)
at org.terracotta.modules.ehcache.search.ClusteredResultsList.faultBatch(ClusteredResultsList.java:85)
at org.terracotta.modules.ehcache.search.ClusteredResultsList.faultIfNecessary(ClusteredResultsList.java:70)
at org.terracotta.modules.ehcache.search.ClusteredResultsList.indexAccessed(ClusteredResultsList.java:51)
at org.terracotta.modules.ehcache.search.ClusteredResultsList.access$000(ClusteredResultsList.java:18)
at org.terracotta.modules.ehcache.search.ClusteredResultsList$Itr.next(ClusteredResultsList.java:208)
at org.terracotta.modules.ehcache.search.ClusteredResultsList$Itr.next(ClusteredResultsList.java:190)
at java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1010)
at com.subscription.impl.SearchUtility.executeAndGetSessionKeys(SearchUtility.java:61)
at com.subscription.impl.ServiceIdUserSubscriptionImpl.getMyPartitionUsers(ServiceIdUserSubscriptionImpl.java:95)
at com.jmx.ServiceMonitor.getPartitionedUserCount(ServiceMonitor.java:23)
at com.tasks.cleanup.ServiceHealthChecker.logCacheStats(ServiceHealthChecker.java:146)
at com.tasks.cleanup.ServiceHealthChecker.run(ServiceHealthChecker.java:87)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)



Any clue on above xception ?
ssubbiah

jedi

Joined: 05/24/2006 14:25:22
Messages: 117
Location: Saravanan Subbiah
Offline

What is the version of the software you are using ? Can u add the logs of the failure ?

Saravanan Subbiah
Terracotta Engineer
twu

journeyman

Joined: 10/18/2011 12:48:09
Messages: 21
Offline

Also, can you post the ehcache.xml you're using? Specifically, I want to check if the cache being searched is strong consistency. I believe this corresponds to a known issue that's been fixed with terracotta 3.7.3 and above, just want to confirm the details to make sure.
dmandapa

neo

Joined: 06/17/2013 06:56:50
Messages: 2
Offline

Here is the ehcache.xml


<cache name="IdVsEntries" eternal="true" statistics="false" maxBytesLocalHeap="16M" >
<persistence strategy="distributed"/>
<searchable />
<terracotta consistency="strong" />
</cache>
twu

journeyman

Joined: 10/18/2011 12:48:09
Messages: 21
Offline

The settings xml seems consistent with the known issue. Can you confirm the version of terracotta and ehcache you're using and/or retry with a later version to see if the fix works for you?
 
Forum Index -> Ehcache
Go to:   
Powered by JForum 2.1.7 © JForum Team