[
https://issues.jboss.org/browse/JGRP-2365?page=com.atlassian.jira.plugin....
]
Bela Ban commented on JGRP-2365:
--------------------------------
I assumed that the bottom-most protocol (used for finding out the IP version of the
running stack) is always a _transport_. This may not be true for fork stacks.
I changed this to be optional, based on the type of the bottom-most protocol.
Class cast exception when upgrading from 4.0.20 to 4.1.0 or 4.1.1
-----------------------------------------------------------------
Key: JGRP-2365
URL:
https://issues.jboss.org/browse/JGRP-2365
Project: JGroups
Issue Type: Bug
Affects Versions: 4.1.0, 4.1.1
Reporter: Bernd Laengerich
Assignee: Bela Ban
Priority: Minor
Fix For: 4.1.2
Attachments: fork-stacks.xml, tcp_fork.xml
Updating from 4.0.20 to 4.1.1 I get
"java.lang.ClassCastException: org.jgroups.protocols.CENTRAL_LOCK cannot be cast to
org.jgroups.protocols.TP"
when creating a JChannel using the same config as before. My config is [^tcp_fork.xml]
attached to this issue. The stack trace:
{noformat}
java.lang.ClassCastException: org.jgroups.protocols.CENTRAL_LOCK cannot be cast to
org.jgroups.protocols.TP
at
org.jgroups.stack.Configurator.createProtocolsAndInitializeAttrs(Configurator.java:110)
~[jgroups-4.1.1.Final.jar:4.1.1.Final]
at org.jgroups.protocols.FORK.createForkStacks(FORK.java:273)
~[jgroups-4.1.1.Final.jar:4.1.1.Final]
at org.jgroups.protocols.FORK.createForkStacks(FORK.java:265)
~[jgroups-4.1.1.Final.jar:4.1.1.Final]
at org.jgroups.protocols.FORK.init(FORK.java:100)
~[jgroups-4.1.1.Final.jar:4.1.1.Final]
at org.jgroups.stack.ProtocolStack.initProtocolStack(ProtocolStack.java:857)
~[jgroups-4.1.1.Final.jar:4.1.1.Final]
at org.jgroups.stack.ProtocolStack.setup(ProtocolStack.java:480)
~[jgroups-4.1.1.Final.jar:4.1.1.Final]
at org.jgroups.JChannel.init(JChannel.java:952) ~[jgroups-4.1.1.Final.jar:4.1.1.Final]
at org.jgroups.JChannel.<init>(JChannel.java:125)
~[jgroups-4.1.1.Final.jar:4.1.1.Final]
at org.jgroups.JChannel.<init>(JChannel.java:107)
~[jgroups-4.1.1.Final.jar:4.1.1.Final]
at
com.acceptis.accept.jgroups.config.JGroupsConfigurator.setConfiguration(JGroupsConfigurator.java:86)
[main/:?]
at
com.acceptis.framework.locking.impl.test.JGroupsLockManagerTest.setUp(JGroupsLockManagerTest.java:40)
[test/:?]
{noformat}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)