DV "java.util.ArrayList cannot be cast to java.lang.String" error when querying ODATA

Solution Verified - Updated -

Issue

  • We are currently facing a class cast exception error (as below) when querying ODATA source:
11:12:02,491 ERROR [org.teiid.CONNECTOR] (Worker0_QueryProcessorQueue0) Connector worker process failed for atomic-request=dxADYNormgyu.0.0.0: java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.lang.String
                at org.teiid.translator.odata.BaseQueryExecution.executeWithReturnEntity(BaseQueryExecution.java:123)
                at org.teiid.translator.odata.ODataQueryExecution.execute(ODataQueryExecution.java:108)
                at org.teiid.dqp.internal.datamgr.ConnectorWorkItem.execute(ConnectorWorkItem.java:254)
                at org.teiid.dqp.internal.process.DataTierTupleSource.getResults(DataTierTupleSource.java:444)
                at org.teiid.dqp.internal.process.DataTierTupleSource$1.call(DataTierTupleSource.java:157)
                at org.teiid.dqp.internal.process.DataTierTupleSource$1.call(DataTierTupleSource.java:154)
                at java.util.concurrent.FutureTask.run(Unknown Source) [rt.jar:1.7.0_51]
                at org.teiid.dqp.internal.process.FutureWork.run(FutureWork.java:58)
                at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:269)
                at org.teiid.dqp.internal.process.ThreadReuseExecutor$RunnableWrapper.run(ThreadReuseExecutor.java:119)
                at org.teiid.dqp.internal.process.ThreadReuseExecutor$3.run(ThreadReuseExecutor.java:214)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_51]
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_51]
                at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_51]

Environment

  • Red Hat JBoss Data Virtualization (DV) 6.0 pre GA

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content