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

Jasper Reports very slow on first call to each report


balizeiro_1
Go to solution Solved by balizeiro_1,

Recommended Posts

Started using Jasper Reports (version 5.6.1) and I'm getting a very long delay when calling for the first time a report (around 15 seconds). The other calls execute very fast

 

JasperFillManager.fillReport("C:/TestReport.jasper", new HashMap<String, Object>());[/code]

 

This is my test report. As you can see it's a very simple report just with a Static Text

 

<?xml version="1.0" encoding="UTF-8"?><!-- Created with Jaspersoft Studio version 5.6.2.final using JasperReports Library version 5.6.1  --><!-- 2014-11-07T18:15:19 --><jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="report2" pageWidth="1000" pageHeight="842" whenNoDataType="AllSectionsNoDetail" columnWidth="960" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="c19b229f-4d8a-4c81-ae10-d9fc8c37b34a">    <property name="ireport.zoom" value="0.75"/>    <property name="ireport.x" value="0"/>    <property name="ireport.y" value="0"/>    <property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>    <title>        <band height="79" splitType="Stretch">            <staticText>                <reportElement x="160" y="24" width="100" height="30" uuid="692f5b61-7f48-42d7-b93f-a273f7c99890"/>                <text><![CDATA[This is a test]]></text>            </staticText>        </band>    </title></jasperReport>[/code]


Any ideas what can be causing this, and how can I solve it?

If I try previewing the report on jaspersoft studio it renders it very fast too.

Link to comment
Share on other sites

  • Replies 1
  • 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...