Serialization problem with Hazelcast Maps & Locks

46 views
Skip to first unread message

bradhouse

unread,
Jan 6, 2010, 4:43:27 AM1/6/10
to Hazelcast
I'm wondering if this is broken again on 1.7.1.

From:

final IMap<String, Long> counter = Hazelcast.getMap("count");
ILock counterLock = Hazelcast.getLock(counter);

.getLock() causes:

Jan 6, 2010 7:32:14 PM com.hazelcast.impl.ThreadContext toData
SEVERE: com.hazelcast.impl.FactoryImpl
java.io.NotSerializableException: com.hazelcast.impl.FactoryImpl
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:
1156)
at java.io.ObjectOutputStream.defaultWriteFields
(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:
1474)
at java.io.ObjectOutputStream.writeOrdinaryObject
(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:
1150)
at java.io.ObjectOutputStream.defaultWriteFields
(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:
1474)
at java.io.ObjectOutputStream.writeOrdinaryObject
(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:
1150)
at java.io.ObjectOutputStream.writeUnshared(ObjectOutputStream.java:
393)
at com.hazelcast.nio.Serializer$ObjectSerializer.write
(Serializer.java:237)
at com.hazelcast.nio.Serializer.writeObject(Serializer.java:83)
at com.hazelcast.impl.ThreadContext.toData(ThreadContext.java:129)
at com.hazelcast.nio.IOUtil.toData(IOUtil.java:58)
at com.hazelcast.impl.BaseManager$RequestBasedCall.setLocal
(BaseManager.java:594)
at com.hazelcast.impl.ConcurrentMapManager$MPut.txnalPut
(ConcurrentMapManager.java:754)
at com.hazelcast.impl.ConcurrentMapManager$MPut.put
(ConcurrentMapManager.java:725)
at com.hazelcast.impl.FactoryImpl$MProxyImpl$MProxyReal.put
(FactoryImpl.java:1937)
at com.hazelcast.impl.FactoryImpl$MProxyImpl.put(FactoryImpl.java:
1650)
at com.hazelcast.impl.FactoryImpl.createInstanceClusterwide
(FactoryImpl.java:589)
at com.hazelcast.impl.FactoryImpl.getOrCreateProxy(FactoryImpl.java:
327)
at com.hazelcast.impl.FactoryImpl.getLock(FactoryImpl.java:312)
at com.hazelcast.core.Hazelcast.getLock(Hazelcast.java:80)

Talip Ozturk

unread,
Jan 7, 2010, 3:57:57 AM1/7/10
to hazelcast
Possible as of 1.8 we added a test for it so that we don't break it again.
http://code.google.com/p/hazelcast/source/browse/trunk/hazelcast/src/test/java/com/hazelcast/impl/ClusterTest.java#860

1.8 is highly recommended or even wait about a week for 1.8.1 which is
much stronger.

-talip

> --
> You received this message because you are subscribed to the Google Groups "Hazelcast" group.
> To post to this group, send email to haze...@googlegroups.com.
> To unsubscribe from this group, send email to hazelcast+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/hazelcast?hl=en.
>
>
>
>

Reply all
Reply to author
Forward
0 new messages