Jump to content
JasperReports 7.0 is now available ×

MongoDB set cursor timeout


witoupra

Recommended Posts

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 http://docs.mongodb.org/manual/core/cursors/)
Now i would need to set such a "NoCursorTimeout" also in my jasper reports. Is there a possibility to do this?

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]

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...