MongoDB set cursor timeout

<span style="font-size:12px;">As our database grew this error was thrown. After a short investigation it seems as we hit the standard timeout of the mongo cursor (see <a href="http://docs.mongodb.org/manual/core/cursors/">http://docs.mongodb.org/manual/core/cursors/</a>)
Now i would need to set such a "NoCursorTimeout" also in my jasper reports. Is there a possibility to do this?
</span>
Caused by: com.mongodb.MongoException$CursorNotFound: cursor 0 not found on server xxxxxxxxxxxxxxxxxxxx
	at com.mongodb.DBApiLayer$Result.init(DBApiLayer.java:394) ~[mongo-java-driver-2.10.1.jar:na]
	at com.mongodb.DBApiLayer$Result._advance(DBApiLayer.java:454) ~[mongo-java-driver-2.10.1.jar:na]
	at com.mongodb.DBApiLayer$Result.hasNext(DBApiLayer.java:421) ~[mongo-java-driver-2.10.1.jar:na]
	at com.mongodb.DBCursor._hasNext(DBCursor.java:464) ~[mongo-java-driver-2.10.1.jar:na]
	at com.mongodb.DBCursor.hasNext(DBCursor.java:484) ~[mongo-java-driver-2.10.1.jar:na]
	at com.jaspersoft.mongodb.MongoDbDataSource.next(MongoDbDataSource.java:140) ~[com.jaspersoft.studio.data.mongodb-5.1.0.soluvas1.jar:na]
	at net.sf.jasperreports.engine.fill.JRFillDataset.advanceDataSource(JRFillDataset.java:1380) ~[jasperreports-5.0.4.jar:5.0.4]
	at net.sf.jasperreports.engine.fill.JRFillDataset.next(JRFillDataset.java:1229) ~[jasperreports-5.0.4.jar:5.0.4]
	at net.sf.jasperreports.engine.fill.JRFillDataset.next(JRFillDataset.java:1208) ~[jasperreports-5.0.4.jar:5.0.4]
	at net.sf.jasperreports.engine.fill.JRBaseFiller.next(JRBaseFiller.java:1554) ~[jasperreports-5.0.4.jar:5.0.4]
	at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:153) ~[jasperreports-5.0.4.jar:5.0.4]
	at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:909) ~[jasperreports-5.0.4.jar:5.0.4]
	at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:822) ~[jasperreports-5.0.4.jar:5.0.4]
	at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:61) ~[jasperreports-5.0.4.jar:5.0.4]
	at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:446) ~[jasperreports-5.0.4.jar:5.0.4]
	at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:276) ~[jasperreports-5.0.4.jar:5.0.4]
witoupra's picture
Joined: Oct 9 2014 - 3:42am
Last seen: 7 years 7 months ago

0 Answers:

No answers yet
Feedback