[
https://jira.jboss.org/jira/browse/TEIID-461?page=com.atlassian.jira.plug...
]
Ramesh Reddy closed TEIID-461.
------------------------------
Fix Version/s: 6.1.0
Resolution: Done
There were two interfaces MetadataService and IndexSelectorSource, both were supplying
metadata data to the engine. However the engine only knew the service by the
MetadataService not the other, but the implementation class, implemented both the
interfaces. However, in server there is proxy wrapped around every service, that proxy
only knew about the MetadataService not the IndexSelectorService thus the class cast.
Moving into one interface fixed the issue.
ClassCastException Executing Request on Teiid (Retrieving WSDL from
Web Service VDB)
------------------------------------------------------------------------------------
Key: TEIID-461
URL:
https://jira.jboss.org/jira/browse/TEIID-461
Project: Teiid
Issue Type: Bug
Components: Server
Affects Versions: 6.0.0
Reporter: Ted Jones
Assignee: Steven Hawkins
Fix For: 6.1.0
Attempting to retrieve the WSDL from a Web Service VDB, I received the following
exception;
Apr 03, 2009 13:48:35.785
[Worker0_RuntimeMetadataService<tejones-laptop|MMProcess|1121>0|0] ERROR
<CONNECTOR|0> Connector worker process failed for
atomic-request=6c7905d2-7a40-47d0-ab1b-2bb64ea79717.0.3.0
java.lang.ClassCastException: $Proxy37 cannot be cast to
com.metamatrix.dqp.service.metadata.IndexSelectorSource
at
com.metamatrix.connector.metadata.IndexConnector.getMetadataObjectSource(IndexConnector.java:49)
at
com.metamatrix.connector.metadata.adapter.ObjectConnection.getMetadataObjectSource(ObjectConnection.java:67)
at
com.metamatrix.connector.metadata.adapter.ObjectConnection.createProcedureExecution(ObjectConnection.java:63)
at org.teiid.connector.basic.BasicConnection.createExecution(BasicConnection.java:57)
at
org.teiid.dqp.internal.datamgr.impl.ConnectorWorkItem.createExecution(ConnectorWorkItem.java:310)
at
org.teiid.dqp.internal.datamgr.impl.SynchConnectorWorkItem.createExecution(SynchConnectorWorkItem.java:100)
at
org.teiid.dqp.internal.datamgr.impl.ConnectorWorkItem.process(ConnectorWorkItem.java:151)
at org.teiid.dqp.internal.process.AbstractWorkItem.run(AbstractWorkItem.java:44)
at
org.teiid.dqp.internal.datamgr.impl.SynchConnectorWorkItem.run(SynchConnectorWorkItem.java:69)
at
com.metamatrix.common.queue.WorkerPoolFactory$StatsCapturingSharedThreadPoolExecutor$1.run(WorkerPoolFactory.java:211)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
Apr 03, 2009 13:48:35.799 [Worker1_QueryProcessorQueue1|0] ERROR <DQP|0> Unexpected
exception for request 6c7905d2-7a40-47d0-ab1b-2bb64ea79717.0
[MetaMatrixComponentException]$Proxy37 cannot be cast to
com.metamatrix.dqp.service.metadata.IndexSelectorSource
1 [ClassCastException]$Proxy37 cannot be cast to
com.metamatrix.dqp.service.metadata.IndexSelectorSource
at
org.teiid.dqp.internal.process.DataTierTupleSource.switchBatch(DataTierTupleSource.java:128)
at
org.teiid.dqp.internal.process.DataTierTupleSource.nextTuple(DataTierTupleSource.java:89)
at
com.metamatrix.query.processor.relational.AccessNode.nextBatchDirect(AccessNode.java:127)
at
com.metamatrix.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:247)
at
com.metamatrix.query.processor.relational.ProjectNode.nextBatchDirect(ProjectNode.java:173)
at
com.metamatrix.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:247)
at
com.metamatrix.query.processor.relational.ProjectNode.nextBatchDirect(ProjectNode.java:173)
at
com.metamatrix.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:247)
at
com.metamatrix.query.processor.relational.RelationalPlan.nextBatch(RelationalPlan.java:109)
at com.metamatrix.query.processor.QueryProcessor.process(QueryProcessor.java:151)
at com.metamatrix.query.processor.proc.ProcedurePlan.getResults(ProcedurePlan.java:297)
at
com.metamatrix.query.processor.proc.ProcedureEnvironment.executePlan(ProcedureEnvironment.java:130)
at
com.metamatrix.query.processor.proc.ExecSqlInstruction.process(ExecSqlInstruction.java:93)
at
com.metamatrix.query.processor.proc.ProcedurePlan.processProcedure(ProcedurePlan.java:282)
at com.metamatrix.query.processor.proc.ProcedurePlan.nextBatch(ProcedurePlan.java:221)
at
com.metamatrix.query.processor.relational.PlanExecutionNode.nextBatchDirect(PlanExecutionNode.java:106)
at
com.metamatrix.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:247)
at
com.metamatrix.query.processor.relational.ProjectNode.nextBatchDirect(ProjectNode.java:173)
at
com.metamatrix.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:247)
at
com.metamatrix.query.processor.relational.RelationalPlan.nextBatch(RelationalPlan.java:109)
at com.metamatrix.query.processor.QueryProcessor.process(QueryProcessor.java:151)
at org.teiid.dqp.internal.process.RequestWorkItem.processMore(RequestWorkItem.java:265)
at org.teiid.dqp.internal.process.RequestWorkItem.process(RequestWorkItem.java:211)
at org.teiid.dqp.internal.process.AbstractWorkItem.run(AbstractWorkItem.java:44)
at
com.metamatrix.common.queue.WorkerPoolFactory$StatsCapturingSharedThreadPoolExecutor$1.run(WorkerPoolFactory.java:211)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassCastException: $Proxy37 cannot be cast to
com.metamatrix.dqp.service.metadata.IndexSelectorSource
at
com.metamatrix.connector.metadata.IndexConnector.getMetadataObjectSource(IndexConnector.java:49)
at
com.metamatrix.connector.metadata.adapter.ObjectConnection.getMetadataObjectSource(ObjectConnection.java:67)
at
com.metamatrix.connector.metadata.adapter.ObjectConnection.createProcedureExecution(ObjectConnection.java:63)
at org.teiid.connector.basic.BasicConnection.createExecution(BasicConnection.java:57)
at
org.teiid.dqp.internal.datamgr.impl.ConnectorWorkItem.createExecution(ConnectorWorkItem.java:310)
at
org.teiid.dqp.internal.datamgr.impl.SynchConnectorWorkItem.createExecution(SynchConnectorWorkItem.java:100)
at
org.teiid.dqp.internal.datamgr.impl.ConnectorWorkItem.process(ConnectorWorkItem.java:151)
at org.teiid.dqp.internal.process.AbstractWorkItem.run(AbstractWorkItem.java:44)
at
org.teiid.dqp.internal.datamgr.impl.SynchConnectorWorkItem.run(SynchConnectorWorkItem.java:69)
... 4 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira