Re: [Dev] NPE - Error occurred while running CacheCleanupTask

2013-07-29 Thread Afkham Azeez
Seems like a null value has been placed in the cache. Anyway, I have now
handled that condition as well.

Azeez


On Mon, Jul 29, 2013 at 6:56 PM, Nirodha Pramod  wrote:

> Hi Azeez,
>
> In the cluster setup we see the following NPE when Cache Cleanup Task is
> running.
>
> TID: [0] [AS] [2013-07-29 18:16:45,285] ERROR
> {org.wso2.carbon.caching.impl.CacheCleanupTask} -  Error occurred while
> running CacheCleanupTask {org.wso2.carbon.caching.impl.CacheCleanupTask}
> java.lang.NullPointerException
> at org.wso2.carbon.caching.impl.CacheImpl.expire(CacheImpl.java:684)
>  at
> org.wso2.carbon.caching.impl.CacheImpl.runCacheExpiry(CacheImpl.java:800)
>  at
> org.wso2.carbon.caching.impl.CacheCleanupTask.run(CacheCleanupTask.java:61)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>  at
> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
>  at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
>  at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>  at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>  at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> at java.lang.Thread.run(Thread.java:722)
>
>
> See the below JIRA,
>
> https://wso2.org/jira/browse/CARBON-14232
>
> - Nirodha
>
>
>
>
>
> --
> *
> *
> *Nirodha Gallage*
> Senior Software Engineer, QA.
> WSO2 Inc.: http://wso2.com/
> Mobile: +94716429078
>



-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* **
email: **az...@wso2.com* * cell: +94 77 3320919
blog: **http://blog.afkham.org* *
twitter: **http://twitter.com/afkham_azeez*
*
linked-in: **http://lk.linkedin.com/in/afkhamazeez*
*
*
*Lean . Enterprise . Middleware*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] NPE - Error occurred while running CacheCleanupTask

2013-08-07 Thread Chamara Ariyarathne
This happened in the 6th IS build.

On Mon, Jul 29, 2013 at 7:01 PM, Afkham Azeez  wrote:

> Seems like a null value has been placed in the cache. Anyway, I have now
> handled that condition as well.
>
> Azeez
>
>
> On Mon, Jul 29, 2013 at 6:56 PM, Nirodha Pramod  wrote:
>
>> Hi Azeez,
>>
>> In the cluster setup we see the following NPE when Cache Cleanup Task is
>> running.
>>
>> TID: [0] [AS] [2013-07-29 18:16:45,285] ERROR
>> {org.wso2.carbon.caching.impl.CacheCleanupTask} -  Error occurred while
>> running CacheCleanupTask {org.wso2.carbon.caching.impl.CacheCleanupTask}
>> java.lang.NullPointerException
>> at org.wso2.carbon.caching.impl.CacheImpl.expire(CacheImpl.java:684)
>>  at
>> org.wso2.carbon.caching.impl.CacheImpl.runCacheExpiry(CacheImpl.java:800)
>>  at
>> org.wso2.carbon.caching.impl.CacheCleanupTask.run(CacheCleanupTask.java:61)
>> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>  at
>> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
>>  at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
>> at
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
>>  at
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>>  at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>>  at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>> at java.lang.Thread.run(Thread.java:722)
>>
>>
>> See the below JIRA,
>>
>> https://wso2.org/jira/browse/CARBON-14232
>>
>> - Nirodha
>>
>>
>>
>>
>>
>> --
>> *
>> *
>> *Nirodha Gallage*
>> Senior Software Engineer, QA.
>> WSO2 Inc.: http://wso2.com/
>> Mobile: +94716429078
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * **
> email: **az...@wso2.com* * cell: +94 77 3320919
> blog: **http://blog.afkham.org* *
> twitter: **http://twitter.com/afkham_azeez*
> *
> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
> *
> *
> *Lean . Enterprise . Middleware*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Chamara Ariyarathne*
Senior Software Engineer - QA;
WSO2 Inc; http://www.wso2.com/.
Mobile; *+94772786766*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] NPE - Error occurred while running CacheCleanupTask

2013-08-07 Thread Chamara Ariyarathne
On Wed, Aug 7, 2013 at 1:01 PM, Chamara Ariyarathne wrote:

> This happened in the 6th IS build.
>

TID: [0] [IS] [2013-08-07 07:29:37,949] ERROR
{org.wso2.carbon.caching.impl.CacheCleanupTask} -  Error occurred while
running CacheCleanupTask {org.wso2.carbon.caching.impl.CacheCleanupTask}
com.hazelcast.core.OperationTimeoutException: [CONCURRENT_MAP_REMOVE] Redo
threshold[90] exceeded! Last redo cause: REDO_MEMBER_UNKNOWN, Name:
c:$cache.$domain[carbon.super]AUTHORIZATION_CACHE_MANAGER#AUTHORIZATION_CACHE
 at
com.hazelcast.impl.BaseManager$ResponseQueueCall.getRedoAwareResult(BaseManager.java:636)
at
com.hazelcast.impl.BaseManager$ResponseQueueCall.getResult(BaseManager.java:623)
 at
com.hazelcast.impl.BaseManager$RequestBasedCall.getResultAsObject(BaseManager.java:454)
at
com.hazelcast.impl.BaseManager$ResponseQueueCall.getResultAsObject(BaseManager.java:544)
 at
com.hazelcast.impl.BaseManager$RequestBasedCall.getResultAsObject(BaseManager.java:450)
at
com.hazelcast.impl.BaseManager$ResponseQueueCall.getResultAsObject(BaseManager.java:544)
 at
com.hazelcast.impl.ConcurrentMapManager$MRemove.txnalRemove(ConcurrentMapManager.java:1303)
at
com.hazelcast.impl.ConcurrentMapManager$MRemove.remove(ConcurrentMapManager.java:1241)
 at com.hazelcast.impl.MProxyImpl$MProxyReal.remove(MProxyImpl.java:793)
at com.hazelcast.impl.MProxyImpl.remove(MProxyImpl.java:185)
 at org.wso2.carbon.caching.impl.CacheImpl.expire(CacheImpl.java:680)
at org.wso2.carbon.caching.impl.CacheImpl.runCacheExpiry(CacheImpl.java:802)
 at
org.wso2.carbon.caching.impl.CacheCleanupTask.run(CacheCleanupTask.java:61)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
 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:180)
 at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
 at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)


>
> On Mon, Jul 29, 2013 at 7:01 PM, Afkham Azeez  wrote:
>
>> Seems like a null value has been placed in the cache. Anyway, I have now
>> handled that condition as well.
>>
>> Azeez
>>
>>
>> On Mon, Jul 29, 2013 at 6:56 PM, Nirodha Pramod  wrote:
>>
>>> Hi Azeez,
>>>
>>> In the cluster setup we see the following NPE when Cache Cleanup Task is
>>> running.
>>>
>>> TID: [0] [AS] [2013-07-29 18:16:45,285] ERROR
>>> {org.wso2.carbon.caching.impl.CacheCleanupTask} -  Error occurred while
>>> running CacheCleanupTask {org.wso2.carbon.caching.impl.CacheCleanupTask}
>>> java.lang.NullPointerException
>>> at org.wso2.carbon.caching.impl.CacheImpl.expire(CacheImpl.java:684)
>>>  at
>>> org.wso2.carbon.caching.impl.CacheImpl.runCacheExpiry(CacheImpl.java:800)
>>>  at
>>> org.wso2.carbon.caching.impl.CacheCleanupTask.run(CacheCleanupTask.java:61)
>>> at
>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>  at
>>> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
>>>  at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
>>> at
>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
>>>  at
>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>>>  at
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>>>  at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>>> at java.lang.Thread.run(Thread.java:722)
>>>
>>>
>>> See the below JIRA,
>>>
>>> https://wso2.org/jira/browse/CARBON-14232
>>>
>>> - Nirodha
>>>
>>>
>>>
>>>
>>>
>>> --
>>> *
>>> *
>>> *Nirodha Gallage*
>>> Senior Software Engineer, QA.
>>> WSO2 Inc.: http://wso2.com/
>>> Mobile: +94716429078
>>>
>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * **
>> email: **az...@wso2.com* * cell: +94 77 3320919
>> blog: **http://blog.afkham.org* *
>> twitter: **http://twitter.com/afkham_azeez*
>> *
>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>> *
>> *
>> *Lean . Enterprise . Middleware*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Chamara Ariyarathne*
> Senior Software Engineer - QA;
> WSO2 Inc; http://www.wso2.com/.
> Mobile; *+94772786766*
>



-- 
*Chamara Ari

Re: [Dev] NPE - Error occurred while running CacheCleanupTask

2013-08-07 Thread Afkham Azeez
Are the two Hazelcast properties set?


On Wed, Aug 7, 2013 at 1:02 PM, Chamara Ariyarathne wrote:

>
>
> On Wed, Aug 7, 2013 at 1:01 PM, Chamara Ariyarathne wrote:
>
>> This happened in the 6th IS build.
>>
>
> TID: [0] [IS] [2013-08-07 07:29:37,949] ERROR
> {org.wso2.carbon.caching.impl.CacheCleanupTask} -  Error occurred while
> running CacheCleanupTask {org.wso2.carbon.caching.impl.CacheCleanupTask}
> com.hazelcast.core.OperationTimeoutException: [CONCURRENT_MAP_REMOVE] Redo
> threshold[90] exceeded! Last redo cause: REDO_MEMBER_UNKNOWN, Name:
> c:$cache.$domain[carbon.super]AUTHORIZATION_CACHE_MANAGER#AUTHORIZATION_CACHE
>  at
> com.hazelcast.impl.BaseManager$ResponseQueueCall.getRedoAwareResult(BaseManager.java:636)
> at
> com.hazelcast.impl.BaseManager$ResponseQueueCall.getResult(BaseManager.java:623)
>  at
> com.hazelcast.impl.BaseManager$RequestBasedCall.getResultAsObject(BaseManager.java:454)
> at
> com.hazelcast.impl.BaseManager$ResponseQueueCall.getResultAsObject(BaseManager.java:544)
>  at
> com.hazelcast.impl.BaseManager$RequestBasedCall.getResultAsObject(BaseManager.java:450)
> at
> com.hazelcast.impl.BaseManager$ResponseQueueCall.getResultAsObject(BaseManager.java:544)
>  at
> com.hazelcast.impl.ConcurrentMapManager$MRemove.txnalRemove(ConcurrentMapManager.java:1303)
> at
> com.hazelcast.impl.ConcurrentMapManager$MRemove.remove(ConcurrentMapManager.java:1241)
>  at com.hazelcast.impl.MProxyImpl$MProxyReal.remove(MProxyImpl.java:793)
> at com.hazelcast.impl.MProxyImpl.remove(MProxyImpl.java:185)
>  at org.wso2.carbon.caching.impl.CacheImpl.expire(CacheImpl.java:680)
> at
> org.wso2.carbon.caching.impl.CacheImpl.runCacheExpiry(CacheImpl.java:802)
>  at
> org.wso2.carbon.caching.impl.CacheCleanupTask.run(CacheCleanupTask.java:61)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
>  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:180)
>  at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
>  at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
> at java.lang.Thread.run(Thread.java:662)
>
>
>>
>> On Mon, Jul 29, 2013 at 7:01 PM, Afkham Azeez  wrote:
>>
>>> Seems like a null value has been placed in the cache. Anyway, I have now
>>> handled that condition as well.
>>>
>>> Azeez
>>>
>>>
>>> On Mon, Jul 29, 2013 at 6:56 PM, Nirodha Pramod wrote:
>>>
 Hi Azeez,

 In the cluster setup we see the following NPE when Cache Cleanup Task
 is running.

 TID: [0] [AS] [2013-07-29 18:16:45,285] ERROR
 {org.wso2.carbon.caching.impl.CacheCleanupTask} -  Error occurred while
 running CacheCleanupTask {org.wso2.carbon.caching.impl.CacheCleanupTask}
 java.lang.NullPointerException
 at org.wso2.carbon.caching.impl.CacheImpl.expire(CacheImpl.java:684)
  at
 org.wso2.carbon.caching.impl.CacheImpl.runCacheExpiry(CacheImpl.java:800)
  at
 org.wso2.carbon.caching.impl.CacheCleanupTask.run(CacheCleanupTask.java:61)
 at
 java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
  at
 java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
  at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
  at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
  at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
  at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
 at java.lang.Thread.run(Thread.java:722)


 See the below JIRA,

 https://wso2.org/jira/browse/CARBON-14232

 - Nirodha





 --
 *
 *
 *Nirodha Gallage*
 Senior Software Engineer, QA.
 WSO2 Inc.: http://wso2.com/
 Mobile: +94716429078

>>>
>>>
>>>
>>> --
>>> *Afkham Azeez*
>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> * **
>>> email: **az...@wso2.com* * cell: +94 77 3320919
>>> blog: **http://blog.afkham.org* *
>>> twitter: **http://twitter.com/afkham_azeez*
>>> *
>>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>>> *
>>> *
>>> *Lean . Enterprise . Middleware*
>>>
>>>