[jboss-jira] [JBoss JIRA] (JGRP-2211) UUID not serializable
Chris LastName (JIRA)
issues at jboss.org
Thu Aug 17 11:54:00 EDT 2017
[ https://issues.jboss.org/browse/JGRP-2211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13450914#comment-13450914 ]
Chris LastName commented on JGRP-2211:
--------------------------------------
Details:
I created a ReplicatedHashMap<Address, SomeCustomClass>. I would then put the address and an instance in it and then the error happens. I now put the address as "channel.getAddressAsString()" and changed the map to ReplicatedHashMap<String, SomeCustomClass>, which then works (for me at least).
I guess it's not intended to put an Address as keys in maps.
> UUID not serializable
> ---------------------
>
> Key: JGRP-2211
> URL: https://issues.jboss.org/browse/JGRP-2211
> Project: JGroups
> Issue Type: Bug
> Affects Versions: 4.0.5
> Reporter: Chris LastName
> Assignee: Bela Ban
> Priority: Minor
>
> Caused by: java.lang.RuntimeException: java.io.NotSerializableException: org.jgroups.util.UUID
> at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:574)
> at org.jgroups.JChannel.up(JChannel.java:797)
> at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:891)
> at org.jgroups.protocols.pbcast.STATE_TRANSFER.getStateFromApplication(STATE_TRANSFER.java:328)
> at org.jgroups.protocols.pbcast.STATE_TRANSFER.handleStateReq(STATE_TRANSFER.java:313)
> at org.jgroups.protocols.pbcast.STATE_TRANSFER.handle(STATE_TRANSFER.java:284)
> at org.jgroups.protocols.pbcast.STATE_TRANSFER.handle(STATE_TRANSFER.java:31)
> at org.jgroups.util.ProcessingQueue.process(ProcessingQueue.java:54)
> at org.jgroups.util.ProcessingQueue.add(ProcessingQueue.java:35)
> at org.jgroups.protocols.pbcast.STATE_TRANSFER.up(STATE_TRANSFER.java:132)
> at org.jgroups.protocols.FRAG2.up(FRAG2.java:177)
> ...
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list