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

JasperReports very slow when loading JasperPrint file


martins.tuga

Recommended Posts

I'm loading JasperPrint file and it's taking about 2 seconds to load a 60KB file.

My code is:

String jpXML = .....;[/code]
InputStream is = new ByteArrayInputStream(jpXML.getBytes("UTF-8")); [/code]
JasperPrint jp2 = JRPrintXmlLoader.load(is); //This is taking 2 seconds[/code]

Does anybody know how to speedup this? The problem seems to be in the XML Digester...

Thanks

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

PROBLEM SOLVED!!
 
The JasperPrint load felt from 2000 miliseconds to 10 miliseconds.
 
I've just updated this dependency from:
 
 <dependency>[/code]
    <groupId>xerces</groupId>[/code]
    <artifactId>xercesImpl</artifactId> [/code]
    <version>2.10.0</version>[/code]
</dependency>[/code]
 
 
 
To
 
 <dependency>[/code]
    <groupId>xerces</groupId>[/code]
    <artifactId>xercesImpl</artifactId> [/code]
    <version>2.11.0</version>[/code]
</dependency>[/code]
 
 
So there might be some performance issue with the version 2.10.0 of this lib.
Link to comment
Share on other sites

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