Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hazelcast 2.6.5 throws NullPointerException if the MapStore.load() method return null during IMap.getAll() execution #1605

patriziomunzi opened this issue Jan 22, 2014 · 3 comments


None yet
2 participants
Copy link

commented Jan 22, 2014

Here's the stacktrace:

    at com.hazelcast.impl.base.KeyValue.getValue(
    at com.hazelcast.impl.ConcurrentMapManager.getAll(
    at com.hazelcast.impl.MProxyImpl$MProxyReal.getAll(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at com.hazelcast.impl.MProxyImpl$DynamicInvoker.invoke(
    at com.sun.proxy.$Proxy15.getAll(Unknown Source)
    at com.hazelcast.impl.MProxyImpl.getAll(
    at com.hazelcast.cache.HazelcastCacheWrapper.init(
    at com.hypertv.gaming.cache.util.HTGamingUserActionListCacheUtil.init(
    at com.hypertv.gaming.InitializationListener.init(
    at com.hypertv.gaming.InitializationListener.contextInitialized(
    at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(
    at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(
    at org.eclipse.jetty.server.handler.ContextHandler.startContext(
    at org.eclipse.jetty.servlet.ServletContextHandler.startContext(
    at org.eclipse.jetty.webapp.WebAppContext.startContext(
    at org.eclipse.jetty.server.handler.ContextHandler.doStart(
    at org.eclipse.jetty.webapp.WebAppContext.doStart(
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(
    at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(
    at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(
    at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(
    at org.eclipse.jetty.deploy.DeploymentManager.addApp(
    at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileChanged(
    at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileChanged(
    at org.eclipse.jetty.util.Scanner.reportChange(
    at org.eclipse.jetty.util.Scanner.reportDifferences(
    at org.eclipse.jetty.util.Scanner.scan(
    at org.eclipse.jetty.util.Scanner$
    at java.util.TimerThread.mainLoop(

@ghost ghost assigned gurbuzali Jan 23, 2014


This comment has been minimized.

Copy link

commented Jan 23, 2014

can you post your MapStore implementation?
normally for getAll operation MapStore.loadAll method should be called.


This comment has been minimized.

Copy link

commented Jan 23, 2014

sorry you're right the problem happens when the map returned from the MapStore.loadAll() as an entry with value = null;
I mean this:

public Map loadAll(Collection keys) {
entries.put(key, null);
return entries;

Patrizio Munzi
mobile: +39 393 7195164
skype: patrizio.munzi

On 23 Jan 2014, at 10:32, Ali wrote:

can you post you MapStore implementation?
normally for getAll operation MapStore.loadAll method should be called.

Reply to this email directly or view it on GitHub.


This comment has been minimized.

Copy link

commented Jan 23, 2014

well then the npe is normal because we do not accept null value.
I am closing the issue then

@gurbuzali gurbuzali closed this Jan 23, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.