Jump to content
We've recently updated our Privacy Statement, available here ×

Problem With Custom Data Source


learningjasper

Recommended Posts

Hi.

In my report i need some custom fields. For example we can take the column "week". In my database the values are in integer format. I need feth them from the DB and parse them as <nth week of MONTH_NAME YEAR>. for that i have a set of custom formatter methods which takes the resultset as input and parse them to the desired formats. As a result i get a List<Map<String, Object>>. and then i pass this List to the JRDataSource. Everything works fine for small reports. But when the report becomes large (around 1 million records)  it runs for quite a long time and then throws "out of memory" exception while filling the report.

Am i doing anything wrong? Or is there any work around for this? I have already tried virtualizer and increased the JVM memory.

Thanks n Regards.

Ansh.

 

 

Code:


Post Edited by learningjasper at 07/29/2010 07:12
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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