[
https://issues.jboss.org/browse/JGRP-1893?page=com.atlassian.jira.plugin....
]
Borisa Zivkovic commented on JGRP-1893:
---------------------------------------
I am getting same exception (Windows 8, Hotspot (build 1.7.0_51-b13), JGroups
3.5.1.Final
Nov 02, 2014 3:01:59 PM org.jgroups.logging.JDKLogImpl error
SEVERE: failed setting ip_ttl
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jgroups.protocols.UDP.setTimeToLive(UDP.java:339)
at org.jgroups.protocols.UDP.createSockets(UDP.java:368)
at org.jgroups.protocols.UDP.start(UDP.java:270)
at org.jgroups.stack.ProtocolStack.startStack(ProtocolStack.java:966)
at org.jgroups.JChannel.startStack(JChannel.java:889)
at org.jgroups.JChannel._preConnect(JChannel.java:547)
at org.jgroups.JChannel.connect(JChannel.java:282)
at org.jgroups.JChannel.connect(JChannel.java:273)
I am using udp.xml from jgroups-3.5.1.Fina.jar
ENCRYPT: Thread safety issues during key changes
------------------------------------------------
Key: JGRP-1893
URL:
https://issues.jboss.org/browse/JGRP-1893
Project: JGroups
Issue Type: Bug
Reporter: Tero Leppikangas
Assignee: Bela Ban
For symmetric encryption, ENCRYPT has members with shared state: secret key, version and
ciphers. In order for to provide consistent state between different threads accessing
these members, they should be synchronized.
I have implemented one solution by wrapping the state in separate object which can be
found here:
https://github.com/tepitebson/JGroups/tree/ENCRYPT_Thread_safety
I also have replaced the WeakHashMap holding the previous keys with Cache in google's
guava library so my solution probably is not suitable for an official solution.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)