[ 
https://issues.apache.org/jira/browse/GEODE-2452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16056070#comment-16056070
 ] 

Fred Krone commented on GEODE-2452:
-----------------------------------

For better or worse...currently with CACHING_PROXY it's assumed you want to 
operate on the LocalRegion.  So in this case this method should attempt to 
invalidate the LocalRegion.

In order to refresh the local cache from the server on the next read through.





> invalidateRegion on a CACHING_PROXY region throws NPE
> -----------------------------------------------------
>
>                 Key: GEODE-2452
>                 URL: https://issues.apache.org/jira/browse/GEODE-2452
>             Project: Geode
>          Issue Type: Sub-task
>          Components: regions
>            Reporter: Swapnil Bawaskar
>              Labels: storage_2
>
> Calling invalidateRegion on a CACHING_PROXY threw the following Exception:
> {noformat}
> Exception in thread "main" java.lang.NullPointerException
>       at 
> org.apache.geode.cache.client.internal.InvalidateOp$InvalidateOpImpl.<init>(InvalidateOp.java:67)
>       at 
> org.apache.geode.cache.client.internal.InvalidateOp.execute(InvalidateOp.java:47)
>       at 
> org.apache.geode.cache.client.internal.ServerRegionProxy.invalidate(ServerRegionProxy.java:221)
>       at 
> org.apache.geode.internal.cache.LocalRegion.serverInvalidate(LocalRegion.java:3149)
>       at 
> org.apache.geode.internal.cache.AbstractRegionMap.invalidate(AbstractRegionMap.java:2134)
>       at 
> org.apache.geode.internal.cache.LocalRegionDataView.invalidateExistingEntry(LocalRegionDataView.java:67)
>       at 
> org.apache.geode.internal.cache.LocalRegion.basicInvalidate(LocalRegion.java:5223)
>       at 
> org.apache.geode.internal.cache.LocalRegion.basicInvalidate(LocalRegion.java:5187)
>       at 
> org.apache.geode.internal.cache.LocalRegion.invalidateAllEntries(LocalRegion.java:8045)
>       at 
> org.apache.geode.internal.cache.LocalRegion.basicInvalidateRegion(LocalRegion.java:7398)
>       at 
> org.apache.geode.internal.cache.LocalRegion.invalidateRegion(LocalRegion.java:1647)
>       at 
> org.apache.geode.internal.cache.AbstractRegion.invalidateRegion(AbstractRegion.java:342)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to