Error when compile a jrxml file created from iReport
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   g_han
Posted On:   Tuesday, August 23, 2005 03:58 PM

Hi I try to use iReport(in window) for the report design and then compile it and fill it in Linux(my test server). It works in window but when I move design file(jrxml) to linux and try to compile it,I got the following error: ghan ~/jasper/zhr # ant compile Buildfile: build.xml compile: [jrc] Compiling 1 report design files. [jrc] log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax). [jrc] log4j:WARN Please initialize the log4j system properly. [jrc] File : /root/jasperreports-1.0.0/demo/samples/zhr/job.jrxml ... FAILED. [jrc] Error compiling report design : /root/jasperreports-1.0.0/   More>>

Hi

I try to use iReport(in window) for the report design and then compile it and fill it in Linux(my test server).
It works in window but when I move design file(jrxml) to linux and try to compile it,I got the following error:


ghan ~/jasper/zhr # ant compile

Buildfile: build.xml


compile:

[jrc] Compiling 1 report design files.

[jrc] log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).

[jrc] log4j:WARN Please initialize the log4j system properly.

[jrc] File :
/root/jasperreports-1.0.0/demo/samples/zhr/job.jrxml ... FAILED.

[jrc] Error compiling report design : /root/jasperreports-1.0.0/demo/samples/zhr/job.jrxml

[jrc] net.sf.jasperreports.engine.JRException: Report design not valid :

[jrc] 1. Warning : Element bottom reaches outside band area : y=0 height=1 band-height=0

[jrc] at net.sf.jasperreports.engine.design.JRJdtCompiler.compileReport(JRJdtCompiler.java:142)

[jrc] at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:106)

[jrc] at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:127)

[jrc] at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:109)

[jrc] at net.sf.jasperreports.ant.JRAntCompileTask.compile(JRAntCompileTask.java:398)
[jrc] at net.sf.jasperreports.ant.JRAntCompileTask.execute(JRAntCompileTask.java:252)
[jrc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[jrc] at org.apache.tools.ant.Task.perform(Task.java:364)
[jrc] at org.apache.tools.ant.Target.execute(Target.java:341)
[jrc] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[jrc] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[jrc] at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
[jrc] at org.apache.tools.ant.Main.runBuild(Main.java:673)
[jrc] at org.apache.tools.ant.Main.startAnt(Main.java:188)
[jrc] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
[jrc] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)


BUILD FAILED

/root/jasperreports-1.0.0/demo/samples/zhr/build.xml:36:
Errors were encountered when compiling report designs.


Total time: 3 seconds


Can anybody help me out?

Thank you very much in advance!

ghan

   <<Less

Re: Error when compile a jrxml file created from iReport

Posted By:   g_han  
Posted On:   Thursday, September 1, 2005 01:08 PM

the jrxml file generated from iReport-0.5.0 is not compatible with jasperreports-1.0.0

use jasperreports-0.6.8


Or before use jasperreports to compile a jrxml file from iReport, make sure no warning message shown when compile it use iReport.
About | Sitemap | Contact