Failed to read jrxml file into a template

Hi everyone,
Is there a bug I don't know about where you can't upload jrxml files into templates? I can't upload this file into a new template regardless of what I try.

I have attempted to upload this jrxml file and others into a new template on multiple instances of browsers on different machines. I get a red box "Error" saying "Failed to read [filename].jrxml"

I've attached to see if anyone else has any suggestions.

Cheers,
Matt C

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Failed to read jrxml file

I can upload it without issue in 1.4

I assume you are using fiefox, is there more info in the error console in firefox?

Matt Y.

Fail to upload template

Hi Matt,

Thanks for the info and for trying it out. Its a report for someone else so hopefully they can still use it.

Sadly no errors in Firefox console and IE gets same issue.

 

Error message definitely looks like it has come from echo.

Hope not a local issue for me :(

Cheers,

Matt

 

Fail to upload template

Hi Matt,

 

FYI .. I have just tried to upload the file and I get the same error message in Firefox so I suspect it is not local?

 

Cheers Des

PS I was attempting to upload into version 1.3 when I got the error.

Fail to upload template

Hi Matt,

I have been doing some digging and it looks like the problem might be with the file.  In the Apache Stdout log the following error

message appears i.e.

[ERROR,Digester,http-8080-Processor25] Parse Error at line 65 column 79: Element type "topPen" must be declared.
[ERROR,ErrorHelper,http-8080-Processor25] Failed to read estimationreport 10 05 06.jrxml
 

I played around with the file in iReport and noticed that the top horizontal line in the detail area is named Line-3 while the lines in the page

footer are named Line - 2 and Line -4 so I renamed Line -3 to Line-1 and it loaded??  Not sure I understand what I did or what caused

error but I can email you the file which worked if you want.

Cheers

Des

 

Re: Fail to upload template

Thanks Des, That was the hint I needed. It is a ireport version issue. The document had been saved with in a version 2.x format. The line or box element in 2.0 uses; lineColor="#000000"/> lineColor="#000000"/> lineColor="#000000"/> lineColor="#000000"/>

The 1.x version uses leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>

OpenVPMS can only handle version 1.x ireport documents. I saved the original document with compatability set to version 1.3 and it uploaded no problems. Have tested document and works fine.

Many thanks Des. Just fixing the SQL now :)

Matt C

On Thu, 13 May 2010 07:45:17 +0000 (UTC), des.thornton@westnet.com.au

wrote:

> Hi Matt, > I have been doing some digging and it looks like the problem might be with

> the file.  In the Apache Stdout log the following error > message appears i.e. > [ERROR,Digester,http-8080-Processor25] Parse Error at line 65 column 79: > Element type "topPen" must be declared. > [ERROR,ErrorHelper,http-8080-Processor25] Failed to read estimationreport > 10 05 06.jrxml >   > I played around with the file in iReport and noticed that the top > horizontal line in the detail area is named Line-3 while the lines in the > page > footer are named Line - 2 and Line -4 so I renamed Line -3 to Line-1 and it

> loaded??  Not sure I understand what I did or what caused > error but I can email you the file which worked if you want. > Cheers > Des >   > _______________________________________________ > OpenVPMS User Mailing List > users@lists.openvpms.org > To unsubscribe or change your subscription visit: > http://lists.openvpms.org/listinfo/users > Posts from this mailing list can be viewed online and replied to in the > OpenVPMS User's forum- http://tinyurl.com/openvfu >

_______________________________________________ OpenVPMS User Mailing List users@lists.openvpms.org To unsubscribe or change your subscription visit: http://lists.openvpms.org/listinfo/users Posts from this mailing list can be viewed online and replied to in the OpenVPMS User's forum- http://tinyurl.com/openvfu

Re: Fail to upload template

//W3C//DTD HTML 4.01 Transitional//EN"> Both OpenVPMS and iReport use a reporting tool called jasperreports. OpenVPMS 1.4 uses jasperreports 3.6.0. This should be able to read reports generated by iReport 1.x-3.x. Not sure what 1.4 snapshot you are running, but it may have an earlier release of jasperreports, which would cause the problem you are seeing. -Tim mpcosta wrote:

type="cite">Thanks Des, That was the hint I needed. It is a ireport version issue. The document had been saved with in a version 2.x format. The line or box element in 2.0 uses; <box><topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/><leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/><bottomPen lineWidth="0.0" lineColor="#000000"/><rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/></box> The 1.x version uses <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> OpenVPMS can only handle version 1.x ireport documents. I saved the original document with compatability set to version 1.3 and it uploaded no problems. Have tested document and works fine. Many thanks Des. Just fixing the SQL now :) Matt C On Thu, 13 May 2010 07:45:17 +0000 (UTC), des.thornton@westnet.com.au wrote:
Hi Matt, I have been doing some digging and it looks like the problem might be
with
the file.  In the Apache Stdout log the following error message appears i.e. [ERROR,Digester,http-8080-Processor25] Parse Error at line 65 column 79: Element type "topPen" must be declared. [ERROR,ErrorHelper,http-8080-Processor25] Failed to read estimationreport 10 05 06.jrxml   I played around with the file in iReport and noticed that the top horizontal line in the detail area is named Line-3 while the lines in the page footer are named Line - 2 and Line -4 so I renamed Line -3 to Line-1 and
it
loaded??  Not sure I understand what I did or what caused error but I can email you the file which worked if you want. Cheers Des  

Re: Fail to upload template

Righto. Cheers Tim.

 

On Thu, 13 May 2010 21:00:56 +1000, wrote:

Both OpenVPMS and iReport use a reporting tool called jasperreports. OpenVPMS 1.4 uses jasperreports 3.6.0. This should be able to read reports generated by iReport 1.x-3.x.

Not sure what 1.4 snapshot you are running, but it may have an earlier release of jasperreports, which would cause the problem you are seeing.

-Tim

mpcosta wrote:

Thanks Des,That was the hint I needed. It is a ireport version issue. The document hadbeen saved with in a version 2.x format. The line or box element in 2.0uses;The 1.x version usesOpenVPMS can only handle version 1.x ireport documents. I saved theoriginal document with compatability set to version 1.3 and it uploaded noproblems. Have tested document and works fine.Many thanks Des. Just fixing the SQL now :)Matt COn Thu, 13 May 2010 07:45:17 +0000 (UTC), des.thornton@westnet.com.auwrote:
Hi Matt,I have been doing some digging and it looks like the problem might be
with
the file.  In the Apache Stdout log the following error message appears i.e.[ERROR,Digester,http-8080-Processor25] Parse Error at line 65 column 79:Element type "topPen" must be declared.[ERROR,ErrorHelper,http-8080-Processor25] Failed to read estimationreport10 05 06.jrxml I played around with the file in iReport and noticed that the tophorizontal line in the detail area is named Line-3 while the lines in thepage footer are named Line - 2 and Line -4 so I renamed Line -3 to Line-1 and
it
loaded??  Not sure I understand what I did or what caused error but I can email you the file which worked if you want.CheersDes 

Re: Fail to upload template

Hi Des, Thanks for trying. I'm on 1.4 snapshot so not specifically a 1.3 issue either. Matt C

On Thu, 13 May 2010 07:03:43 +0000 (UTC), des.thornton@westnet.com.au

wrote:

> Hi Matt, >   > FYI .. I have just tried to upload the file and I get the same error > message in Firefox so I suspect it is not local? >   > Cheers Des > PS I was attempting to upload into version 1.3 when I got the error. > _______________________________________________ > OpenVPMS User Mailing List > users@lists.openvpms.org > To unsubscribe or change your subscription visit: > http://lists.openvpms.org/listinfo/users > Posts from this mailing list can be viewed online and replied to in the > OpenVPMS User's forum- http://tinyurl.com/openvfu >

_______________________________________________ OpenVPMS User Mailing List users@lists.openvpms.org To unsubscribe or change your subscription visit: http://lists.openvpms.org/listinfo/users Posts from this mailing list can be viewed online and replied to in the OpenVPMS User's forum- http://tinyurl.com/openvfu

Syndicate content