Jump to content

Report truncated when saving to repository


ktrinad

Recommended Posts

By: Maurizio D. - mdecolle

Report truncated when saving to repository

2006-05-29 02:46

I saved an existing (and working) report to the repository but when I try to execute it I get an error message about some problem with the jrxml structure : "JRException: XML document structures must start and end within the same entity"

I tried then to open the same report usign iReport and the plugin. The layout was completely messed up, or better inexistent. I then saved the report to the file system and the jrxml file resulting was corrupted.

It looks like a problem related to the size of the source file, simple reports work fine and removing some features fix the problem even with big ones, but the problem is that there is no consistent behaviour in which feature to remove to obtain a working report.

Any suggestion would be greately appreciated.

Thanks

 

 

By: Sherman Wood - sgwood

RE: Report truncated when saving to repositor

2006-05-30 10:21

 

We store the JRXML, images, JARs etc as a MySQL LONGBLOB, so your report should not get truncated. What size of report are you having problems with?

 

 

Sherman

JasperSoft

 

 

By: Maurizio D. - mdecolle

RE: Report truncated when saving to repository

2006-05-30 23:29

The original reports isn't that big, compared to what a LONGBLOB field can handle, just 68Kb. What I get when I extract it from the repository is this :

 

<?xml version="1.0" encoding="UTF-8" ?>

<!-- Created with iReport - A designer for JasperReports -->

<!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">

<jasperReport

name="M00STVF1__1148895469546"

columnCount="1"

printOrder="Vertical"

orientation="Portrait"

pageWidth="0"

pageHeight="0"

columnWidth="535"

columnSpacing="0"

leftMargin="20"

rightMargin="20"

topMargin="30"

bottomMargin="30"

whenNoDataType="NoPages"

isTitleNewPage="false"

isSummaryNewPage="false">

<property name="ireport.scriptlethandling" value="2" />

<property name="ireport.encoding" value="UTF-8" />

<import value="java.util.*" />

<import value="net.sf.jasperreports.engine.*" />

<import value="net.sf.jasperreports.engine.data.*" />

 

 

<background>

<band height="0" isSplitAllowed="true" >

</band>

</background>

<title>

<band height="0" isSplitAllowed="true" >

</band>

</title>

<pageHeader>

<band height="0" isSplitAllowed="true" >

</band>

</pageHeader>

<columnHeader>

<band height="0" isSplitAllowed="true" >

</band>

</columnHeader>

<detail>

<band height="0" isSplitAllowed="true" >

</band>

</detail>

<columnFooter>

<band height="0" isSplitAllowed="true" >

</band>

</columnFooter>

<pageFooter>

<band height="0" isSplitAllowed="true" >

</band>

</pageFooter>

<summary>

<band height="0" isSplitAllowed="true" >

</band>

</summary>

</jasperReport>

 

nothing more.

This report uses a subreport (11 kb) that is stored and treated correctly and an image (a bmp file) which is just 170 Kb in size.

Thanks for your help, feel free to ask me whatever you feel necessary to solve this problem.

 

 

By: Sherman Wood - sgwood

RE: Report truncated when saving to repositor

2006-05-31 05:28

 

How did you load the report into the server? Via the iReport plugin or through the Web screens?

 

 

Sherman

JasperSoft

 

 

By: Maurizio D. - mdecolle

RE: Report truncated when saving to repository

2006-05-31 06:30

I've tried both ways with the same result

 

 

By: Sherman Wood - sgwood

RE: Report truncated when saving to repositor

2006-06-02 03:49

 

Could you log a bug in Tracker and include your JRXML?

 

 

Thanks,

 

Sherman

JasperSoft

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