hi there

im new in jasper-reports. I try to use the engine together with ireport but
i have some problems with it:

i can compile a sample-report without problems useing "ant compile". but if
i open it with ireport do some very little changes ant resave it, its no
possible to compile it anymore. java raises the following error-stack:

      [jrc] Compiling 1 report design files.
      [jrc] File :
/home/bayo/jasper/jasperreports-3.0.1/demo/samples/shapes/ShapesReport.jrxml
... FAILED.
      [jrc] Error compiling report design :
/home/bayo/jasper/jasperreports-3.0.1/demo/samples/shapes/ShapesReport.jrxml
      [jrc] net.sf.jasperreports.engine.JRException: No report compiler set
for language : null
      [jrc]     at
net.sf.jasperreports.engine.JasperCompileManager.getCompiler(JasperCompileManager.java:508)
      [jrc]     at
net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:219)
      [jrc]     at
net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:135)
      [jrc]     at
net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:117)
      [jrc]     at
net.sf.jasperreports.ant.JRAntCompileTask.compile(JRAntCompileTask.java:413)
      [jrc]     at
net.sf.jasperreports.ant.JRAntCompileTask.execute(JRAntCompileTask.java:259)
      [jrc]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
      [jrc]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
      [jrc]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [jrc]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [jrc]     at java.lang.reflect.Method.invoke(Method.java:597)
      [jrc]     at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
      [jrc]     at org.apache.tools.ant.Task.perform(Task.java:348)
      [jrc]     at org.apache.tools.ant.Target.execute(Target.java:357)
      [jrc]     at org.apache.tools.ant.Target.performTasks(Target.java:385)
      [jrc]     at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
      [jrc]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1298)
      [jrc]     at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
      [jrc]     at
org.apache.tools.ant.Project.executeTargets(Project.java:1181)
      [jrc]     at org.apache.tools.ant.Main.runBuild(Main.java:698)
      [jrc]     at org.apache.tools.ant.Main.startAnt(Main.java:199)
      [jrc]     at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
      [jrc]     at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

The problem are a few lines. Before my changes it locks like this:

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

<jasperReport name="ShapesReport" pageWidth="595" pageHeight="842"
whenNoDataType="AllSectionsNoDetail" columnWidth="555" leftMargin="20"
rightMargin="20" topMargin="30" bottomMargin="30">

there three lines will be replaces through this one:

<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="ShapesReport" pageWidth="595" pageHeight="842"
whenNoDataType="AllSectionsNoDetail" columnWidth="555" leftMargin="20"
rightMargin="20" topMargin="30" bottomMargin="30">

Then its not possible to compile the report anymore. i know, its a very
basic question bit i cant find a solution for it. I have the same problem if
i create a totally new report, same error stack.

Does someone have some experiences with these withing.

Thanx for you efforts! greetings, dominic


-- 
View this message in context: 
http://www.nabble.com/ireport-produces-error-message-tp19853220p19853220.html
Sent from the jasperreports-questions mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions

Reply via email to