This content has been marked as final.
Show 5 replies
-
1. Re: NullPointerException for KeyAffinityService
mircea.markus May 28, 2014 12:09 PM (in response to smohanan)I would say that the cache instance you pass to KeyAffinityServiceFactory.newLocalKeyAffinityService is null.
BTW, when posting please also include Infinispan version you're using.
-
2. Re: Re: NullPointerException for KeyAffinityService
smohanan May 28, 2014 12:27 PM (in response to mircea.markus)I'm sorry, I am using Infinispan version 5.1.6. I tested for that by using the following 2 lines:
if(cache.equals(null)) {System.out.println("cache is null");}
But that did not print out anything.
-
3. Re: Re: NullPointerException for KeyAffinityService
mircea.markus May 28, 2014 12:32 PM (in response to smohanan)that's a super old version, please upgrade to a newer one, e.g. 6.0.0.Final.
-
4. Re: NullPointerException for KeyAffinityService
vbchin2 May 28, 2014 6:08 PM (in response to smohanan)Seems like a dupe of this post: http://stackoverflow.com/questions/23916400/nullpointerexception-for-keyaffinityservice
I have posted my comments there. Please take a look!
-
5. Re: Re: NullPointerException for KeyAffinityService
smohanan May 30, 2014 12:32 PM (in response to vbchin2)I had posted that also as I am sure there are more people on stack overflow so I can reach a wider base on knowledge. However your comments there helped me, so thank you very much!!