Hazelcast ClassNotFoundException for replicated maps

六月ゝ 毕业季﹏ 提交于 2020-01-17 11:16:48

问题


I have an issue with hazelcast v 3.6.2. Here is and replicatedmap config in hazelcast.xml for

<replicatedmap name="default">
<in-memory-format>BINARY</in-memory-format>
</replicatedmap>

Here is a slice of code which rises an classnotfound exception:

    ReplicatedMap<Object, Object> r1 = getHazelCastInstance().getReplicatedMap("DDD");
    TokenDef tf = new TokenDef();
    tf.setLanguage("en");
    tf.setTokenId("RRRR");
    tf.setSiebelPassword("RRR");
    r1.put("eeee",tf);
    r1.remove("eeee"); //!!! CLASS NOT FOUND EXCEPTION

Very strange that it puts token without an exception, but raises on the remove string. It works if I use simple IMap instead of replicated map. Could anyone explain where is difference ?

Thank you in advance.

来源:https://stackoverflow.com/questions/36846408/hazelcast-classnotfoundexception-for-replicated-maps

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!