Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1222809

Summary: Fix classloading issue when JDG modules are installed into EAP for HR client tests
Product: [JBoss] JBoss Data Grid 6 Reporter: Vitalii Chepeliuk <vchepeli>
Component: TestSuiteAssignee: Martin Gencur <mgencur>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Gencur <mgencur>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.5.0CC: dstahl, jdg-bugs, jmarkos, ttarrant
Target Milestone: CR1   
Target Release: 6.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-23 12:25:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vitalii Chepeliuk 2015-05-19 08:33:58 UTC
Description of problem: 
3 tests failed in internal testsuite when HR client is deployed into EAP and JDG modules are used
com.jboss.datagrid.test.hotrod.HotRodRemoteCacheIT.testCustomEventsDynamic
com.jboss.datagrid.test.hotrod.HotRodRemoteCacheIT.testPutGetCustomObject
com.jboss.datagrid.test.hotrod.HotRodRemoteCacheIT.testCustomEvents

Caused by: java.lang.ClassNotFoundException: org.infinispan.server.test.client.hotrod.CustomEvent from [Module "org.infinispan.commons:jdg-6.5" from local module loader @71e8de2f (finder: local module finder @6f531a15 (roots: /mnt/hudson_workspace/workspace/jdg-func-remote-client-in-different-containers/be9e94da/eap-server/jboss-eap-6.3/modules,/mnt/hudson_workspace/workspace/jdg-func-remote-client-in-different-containers/be9e94da/eap-server/jboss-eap-6.3/modules/system/layers/base))]
	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.5.Final-redhat-1]
	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.5.Final-redhat-1]
	at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.5.Final-redhat-1]
	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.5.Final-redhat-1]
	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.5.Final-redhat-1]
	at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_75]
	at java.lang.Class.forName(Class.java:274) [rt.jar:1.7.0_75]
	at org.jboss.marshalling.AbstractClassResolver.loadClass(AbstractClassResolver.java:131) [jboss-marshalling-1.4.10.Final-redhat-1.jar:1.4.10.Final-redhat-1]
	at org.jboss.marshalling.AbstractClassResolver.resolveClass(AbstractClassResolver.java:112) [jboss-marshalling-1.4.10.Final-redhat-1.jar:1.4.10.Final-redhat-1]
	at org.jboss.marshalling.river.RiverUnmarshaller.doReadClassDescriptor(RiverUnmarshaller.java:948)
	at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1255)
	at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:276)
	at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)
	at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:41) [jboss-marshalling-1.4.10.Final-redhat-1.jar:1.4.10.Final-redhat-1]
	at org.infinispan.commons.marshall.jboss.AbstractJBossMarshaller.objectFromObjectStream(AbstractJBossMarshaller.java:135) [infinispan-commons-6.3.0.ER4-redhat-1.jar:6.3.0.ER4-redhat-1]
	at org.infinispan.commons.marshall.jboss.AbstractJBossMarshaller.objectFromByteBuffer(AbstractJBossMarshaller.java:113) [infinispan-commons-6.3.0.ER4-redhat-1.jar:6.3.0.ER4-redhat-1]
	at org.infinispan.commons.marshall.AbstractMarshaller.objectFromByteBuffer(AbstractMarshaller.java:82) [infinispan-commons-6.3.0.ER4-redhat-1.jar:6.3.0.ER4-redhat-1]
	at org.infinispan.client.hotrod.marshall.MarshallerUtil.bytes2obj(MarshallerUtil.java:29) [infinispan-client-hotrod-6.3.0.ER4-redhat-1.jar:6.3.0.ER4-redhat-1]
	... 8 more

Version-Release number of selected component (if applicable): 6.5.0.ER4

Actual results:

Expected results:

Additional info:
This is EAP APP classloading issue

JENKINS JOB: https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/JDG/view/FUNC/job/jdg-func-remote-client-in-different-containers/lastCompletedBuild/jdk=java17_default,label=RHEL6&&x86_64&&mem4G/testReport/

Comment 2 Vitalii Chepeliuk 2015-05-19 15:21:32 UTC
PR sent: https://github.com/infinispan/jdg/pull/657

Comment 3 Jakub Markos 2015-06-04 12:00:42 UTC
Passed with CR1.