[
https://issues.jboss.org/browse/TEIID-3316?page=com.atlassian.jira.plugin...
]
Ivan Chan commented on TEIID-3316:
----------------------------------
Unfortunately, I got the same null pointer exception using Teiid 8.10 CR2 version again
MongoDB 2.4.8 with the step in comment 3. (But works for MongoDB 2.6.6) Thanks for
looking into this issue.
Caused by: java.lang.NullPointerException
at
org.teiid.translator.mongodb.MongoDBQueryExecution.close(MongoDBQueryExecution.java:149)
at
org.teiid.translator.mongodb.MongoDBQueryExecution.cancel(MongoDBQueryExecution.java:155)
at
org.teiid.dqp.internal.datamgr.ConnectorWorkItem.cancel(ConnectorWorkItem.java:193)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.teiid.dqp.internal.datamgr.ConnectorManager$1.invoke(ConnectorManager.java:209)
at $Proxy183.cancel(Unknown Source)
at
org.teiid.dqp.internal.process.DataTierTupleSource.fullyCloseSource(DataTierTupleSource.java:323)
at
org.teiid.dqp.internal.process.DataTierTupleSource.exceptionOccurred(DataTierTupleSource.java:378)
at
org.teiid.dqp.internal.process.DataTierTupleSource.nextTuple(DataTierTupleSource.java:154)
at
org.teiid.query.processor.relational.AccessNode.nextBatchDirect(AccessNode.java:369)
at
org.teiid.query.processor.relational.RelationalNode.nextBatch(RelationalNode.java:278)
at
org.teiid.query.processor.relational.RelationalPlan.nextBatch(RelationalPlan.java:145)
at
org.teiid.query.processor.QueryProcessor.nextBatchDirect(QueryProcessor.java:151)
at org.teiid.query.processor.QueryProcessor.nextBatch(QueryProcessor.java:114)
at
org.teiid.query.processor.BatchCollector.collectTuples(BatchCollector.java:164)
at
org.teiid.query.processor.BatchCollector.collectTuples(BatchCollector.java:146)
at
org.teiid.dqp.internal.process.RequestWorkItem.processMore(RequestWorkItem.java:455)
at
org.teiid.dqp.internal.process.RequestWorkItem.process(RequestWorkItem.java:337)
MongoDB: Getting "unrecognized field \"cursor" when
connecting to MongoDB 2.4.8 using Teiid 8.9.1
--------------------------------------------------------------------------------------------------
Key: TEIID-3316
URL:
https://issues.jboss.org/browse/TEIID-3316
Project: Teiid
Issue Type: Bug
Components: Misc. Connectors
Affects Versions: 8.9.1
Environment: Teiid 8.9.1 with MongoDB shell version: 2.4.8 using MongoDB Driver
mongo-java-driver-2.12.3.jar
Reporter: Ivan Chan
Assignee: Ramesh Reddy
Fix For: 8.10
I am getting the following erroe when connecting to MongoDB using Teiid 8.9.1:
Caused by: com.mongodb.CommandFailureException: { "serverUsed" :
"donetsk:27017" , "ok" : 0.0 , "errmsg" : "unrecognized
field \"cursor"}
at com.mongodb.CommandResult.getException(CommandResult.java:76)
at com.mongodb.CommandResult.throwOnError(CommandResult.java:131)
at com.mongodb.DBCollectionImpl.aggregate(DBCollectionImpl.java:100)
at com.mongodb.DBCollection.aggregate(DBCollection.java:1571)
at
org.teiid.translator.mongodb.MongoDBQueryExecution.execute(MongoDBQueryExecution.java:111)
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)