Hide Forgot
Description of problem: infinispan-remote uber jar contains 2x different shaded versions of javassist /protostream.javassist /javassist Version-Release number of selected component (if applicable): 6.4.0.CR4 Shaded /javassist should be removed as it cause collisions with javassist bundled into weblogic modules what is related to infinispan cdi and now is shaded inside infinispan-remote uber jar Caused by: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.ClassCastException: org.infinispan.cdi.InfinispanExtension$Proxy$_$$_WeldClientProxy cannot be cast to javassist.util.proxy.ProxyObject at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2234) at com.google.common.cache.LocalCache.get(LocalCache.java:3965) at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3969) at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4829) at org.jboss.weld.util.cache.LoadingCacheUtils.getCacheValue(LoadingCacheUtils.java:71) ... 40 more Caused by: java.lang.ClassCastException: org.infinispan.cdi.InfinispanExtension$Proxy$_$$_WeldClientProxy cannot be cast to javassist.util.proxy.ProxyObject at org.jboss.weld.bean.proxy.ProxyFactory.create(ProxyFactory.java:249) at org.jboss.weld.bean.proxy.ClientProxyFactory.create(ClientProxyFactory.java:105) at org.jboss.weld.bean.proxy.ClientProxyProvider.createClientProxy(ClientProxyProvider.java:87) at org.jboss.weld.bean.proxy.ClientProxyProvider.access$000(ClientProxyProvider.java:43) at org.jboss.weld.bean.proxy.ClientProxyProvider$1.load(ClientProxyProvider.java:53) at org.jboss.weld.bean.proxy.ClientProxyProvider$1.load(ClientProxyProvider.java:46) at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3568) at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2350) at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2313) at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2228) ... 44 more /javassist should be removed from infinispan-remote uber jar
The workaround is to use the separate jar files for HR client and its dependencies. This is the list of dependencies to be used as a workaround: org.jboss.logging/jboss-logging org.jboss.marshalling/jboss-marshalling-osgi org.infinispan/infinispan-commons org.infinispan/infinispan-client-hotrod commons-pool/commons-pool org.infinispan/infinispan-remote-query-client org.infinispan/infinispan-query-dsl org.infinispan.protostream/protostream All these dependencies can be found in the JDG Maven repository.
This affects only WebLogic. It works fine with EAP.
Adrian Nistor <anistor> updated the status of jira ISPN-5192 to Coding In Progress