Bug 1011502

Summary: CNF exception when getting data through infinispan-cache translator
Product: [JBoss] JBoss Data Virtualization 6 Reporter: Filip Elias <felias>
Component: TeiidAssignee: Van Halbert <vhalbert>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: atangrin, felias, ldimaggi, vhalbert
Target Milestone: CR2   
Target Release: 6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Release Note
Doc Text:
When using the infinispan-cache translator to access a remote 6.1 hot rod cache, users will need to update the module. In org.jboss.teiid.resource-adapter.infinispan/main/module.xml, add dependency <module name="org.jboss.marshalling"/>.
Story Points: ---
Clone Of: Environment:
JBoss DV ER2
Last Closed: 2014-02-06 15:37:16 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:
Attachments:
Description Flags
configuration of resource adapter
none
VDB
none
The whole exception none

Description Filip Elias 2013-09-24 12:42:49 UTC
Created attachment 802207 [details]
configuration of resource adapter

When getting data through infinispan-cache translator using remote hot rod access, DV will throw "...ClassNotFoundException: org.infinispan.client.hotrod.impl.transport.tcp.TcpTransportFactory". 

My configuration file and VDB are in the attachment.

Workaround:
Add "<module name="org.infinispan.client.hotrod"/>" as a dependency into module "org.jboss.teiid".

Comment 1 Filip Elias 2013-09-24 12:43:48 UTC
Created attachment 802208 [details]
VDB

Comment 2 Filip Elias 2013-09-24 12:45:47 UTC
Created attachment 802209 [details]
The whole exception

Comment 3 JBoss JIRA Server 2013-10-01 14:26:57 UTC
Van Halbert <vhalbert> made a comment on jira TEIID-2673

Moved the call to create the cache container from within the inner class method getConnection(), to the logic prior to creating the BasicConnectionFactory, so that its created on the connection pool class loader, and not on the translator class loader.

Comment 4 JBoss JIRA Server 2013-10-01 16:48:07 UTC
Steven Hawkins <shawkins> made a comment on jira TEIID-2673

merged into 8.4.x and 8.6

Comment 12 JBoss JIRA Server 2013-10-11 18:59:02 UTC
Van Halbert <vhalbert> made a comment on jira TEIID-2673

Can this closed?  The fix has been committed to both branches.

Comment 13 JBoss JIRA Server 2013-10-11 19:02:57 UTC
Steven Hawkins <shawkins> made a comment on jira TEIID-2673

Who is that a question for?  If you've tested it, I'd say go ahead and resolve it.

Comment 14 JBoss JIRA Server 2013-10-11 19:08:02 UTC
Van Halbert <vhalbert> updated the status of jira TEIID-2673 to Resolved

Comment 15 JBoss JIRA Server 2013-10-11 19:08:02 UTC
Van Halbert <vhalbert> made a comment on jira TEIID-2673

Created and tested the fix on the 8.4.1 branch and pushed the changes upstream to 8.6.

Comment 17 JBoss JIRA Server 2013-12-05 20:51:52 UTC
Steven Hawkins <shawkins> updated the status of jira TEIID-2673 to Closed

Comment 18 Filip Elias 2014-01-03 14:17:31 UTC
DV6 still throws exception when getting data through infinispan-cache translator using remote hot rod access. 

Exception:
Throwable while attempting to get a new connection: null: java.lang.NoClassDefFoundError: org/jboss/marshalling/ClassResolver

Workaround: 
Add dependency <module name="org.jboss.marshalling"/> into org.jboss.teiid.resource-adapter.infinispan module.

Tested on DV6 CR1 and JDG 6.1.

Comment 19 JBoss JIRA Server 2014-01-03 19:17:38 UTC
Van Halbert <vhalbert> updated the status of jira TEIID-2673 to Reopened

Comment 20 JBoss JIRA Server 2014-01-03 19:17:45 UTC
Van Halbert <vhalbert> updated the status of jira TEIID-2673 to Coding In Progress

Comment 21 JBoss JIRA Server 2014-01-06 21:04:43 UTC
Van Halbert <vhalbert> updated the status of jira TEIID-2673 to Resolved

Comment 22 Filip Elias 2014-01-17 11:27:49 UTC
Verified on DV 6 CR2

Comment 23 JBoss JIRA Server 2014-04-22 18:24:11 UTC
Steven Hawkins <shawkins> updated the status of jira TEIID-2673 to Closed