Jump to content
Changes to the Jaspersoft community edition download ×

How to closeCursor object in Jasper report


AnnMary.Thomas

Recommended Posts

I have a query which returns 8 fields to generate the report. In this the first 7 fields are of various data types String, Big Decimal etc. But the last field returns Resultset object. (java.sql.Resultset). Within this cursor object I have 10 values which I am displaying in the report. Now the problem is I m calling next() method in one of the fields on this cursor object and displaying the data. Now the issue is as I am retreiving almost 200 records and each record has cursor object, Im running into problems like Opn Cursor Exceed error, as Im not closing these cursors. How can we close these cursor object? Or is ther an alternate approach for this?

 

ireport 4.0

jasper 4.6

 

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...