Jump to content
JasperReports Library 7.0 is now available ×

getConnection() causes a OutOfMemoryError


Recommended Posts

By: genri como - gcomo01

getConnection() causes a OutOfMemoryError

2003-03-20 17:40

I have a report and a subreport.For the subreport,

I am using a Map to pass as a parameter a Connection for the connectionExpression(the value of that I get through DriverManager.getConnection()).Whenever is executed,it causes a OutOfMemoryError exception.Anybody has experienced a similar situation.

thanks

Genri !

 

 

 

 

By: Teodor Danciu - teodord

RE: getConnection() causes a OutOfMemoryError

2003-03-21 00:50

 

Hi,

 

If there are many records in the datasource,

use the -Xmx switch in the command line to

allow the JVM to use more memory when you

launch java.exe.

 

I hope this helps.

Teodor

 

 

 

 

 

By: genri como - gcomo01

RE: getConnection() causes a OutOfMemoryError

2003-03-21 05:40

The report and the subreport work fine separately.The problem occurs whenever they are put together.The records returned are not that many (range of 10s and dealing with a small test DB).Could it be a jdbc driver problem..thanks

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