Details
-
Bug
-
Resolution: Done
-
Blocker
-
3.6.8
-
None
Description
org.jgroups.util.Util class tries to locate jg-messages bundle using the TCCL, not its own class loader. In a Java SE environment, this typically doesn't matter, because the class loaders are the same, but in EAP, this means that jg-messages is sought by the class loader of the application rather than the class loader of JGroups module, which is obviously wrong. This is the offending line: https://github.com/belaban/JGroups/blob/master/src/org/jgroups/util/Util.java#L93
The call to getBundle fails with a MissingResourceException (see http://docs.oracle.com/javase/6/docs/api/java/util/ResourceBundle.html#getBundle%28java.lang.String,%20java.util.Locale,%20java.lang.ClassLoader%29) and because this code is in a static initializer, the Util class becomes unusable.
This causes Hibernate applications with 2LC infinispan clustering backend to not work.
Attachments
Issue Links
- blocks
-
JBEAP-4660 JGRP-2035 Revert "pmd:UseProperClassLoader - Use Proper Class Loader"
- Closed
- is cloned by
-
JBEAP-3978 Util class tries to locate resource bundles using TCCL, which fails
- Closed
- is incorporated by
-
JBEAP-3984 Upgrade JGroups to 3.6.9.Final
- Closed
- relates to
-
ENTESB-5570 Upgrade jgroups version (TCCL issue)
- Closed