Home » Archived » BIRT » The design file XXX has error and can not be run.
The design file XXX has error and can not be run. [message #222828] |
Wed, 07 March 2007 10:52  |
Eclipse User |
|
|
|
Originally posted by: michael.mattan.getronics.com
This is a multi-part message in MIME format.
------=_NextPart_000_000A_01C760D9.0202B4D0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
can somebody help me with this problem?
I want to run my report from a standalone Java application, I therefore =
use the code as shown in the "Simple RunAndRender Task Example" on the =
Eclipse website.
When I have a report with just a single text-field on it, I can run this =
report without any problem through my Java application, but from the =
moment I start specifying a Data Source, the error below is thrown.
Is there anybody who has any idea what I am doing wrong and what I could =
do to solve this problem?
kind regards,
Michael
The error thrown:
org.eclipse.birt.report.engine.api.EngineException: The design file =
file:/C:/Test.rptdesign has error and can not be run.
at =
org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesi=
gn(ReportEngineHelper.java:248)
at =
org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesi=
gn(ReportEngineHelper.java:191)
at =
org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesi=
gn(ReportEngineHelper.java:125)
at =
org.eclipse.birt.report.engine.api.impl.ReportEngine.openRep ortDesign(Rep=
ortEngine.java:225)
at =
com.getronics.gim.reporting.ReportGenerator.generateReport(R eportGenerato=
r.java:59)
at com.getronics.alcatel.main.ReportTest.main(ReportTest.java:1 2)
Caused by: Error.DesignFileException.INVALID_XML - 1 errors found!=20
1.) ( line =3D 8) org.xml.sax.SAXParseException (message : =
java.lang.NullPointerException)
at =
org.eclipse.birt.report.model.parser.ModuleReader.readModule (ModuleReader=
..java:112)
at =
org.eclipse.birt.report.model.parser.DesignReader.read(Desig nReader.java:=
90)
at =
org.eclipse.birt.report.model.core.DesignSession.openDesign( DesignSession=
..java:278)
at =
org.eclipse.birt.report.model.api.SessionHandle.openDesign(S essionHandle.=
java:291)
at =
org.eclipse.birt.report.engine.parser.ReportParser.getDesign Handle(Report=
Parser.java:160)
at =
org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesi=
gn(ReportEngineHelper.java:243)
.... 5 more
------=_NextPart_000_000A_01C760D9.0202B4D0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.6000.16414" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>can somebody help me with this=20
problem?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I want to run my report from a =
standalone Java=20
application, I therefore use the code as shown in the "Simple =
RunAndRender Task=20
Example" on the Eclipse website.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>When I have a report with just a single =
text-field=20
on it, I can run this report without any problem through my Java =
application,=20
but from the moment I start specifying a Data Source, the error below is =
thrown.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Is there anybody who has any idea what =
I am doing=20
wrong and what I could do to solve this problem?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>kind regards,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Michael</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial size=3D2>The =
error=20
thrown:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial =
size=3D2>org.eclipse.birt.report.engine.api.EngineException:=20
The design file file:/C:/Test.rptdesign has error and can not be=20
run.<BR> at=20
org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesi=
gn(ReportEngineHelper.java:248)<BR> =20
at=20
org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesi=
gn(ReportEngineHelper.java:191)<BR> =20
at=20
org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesi=
gn(ReportEngineHelper.java:125)<BR> =20
at=20
org.eclipse.birt.report.engine.api.impl.ReportEngine.openRep ortDesign(Rep=
ortEngine.java:225)<BR> =20
at=20
com.getronics.gim.reporting.ReportGenerator.generateReport(R eportGenerato=
r.java:59)<BR> =20
at =
com.getronics.alcatel.main.ReportTest.main(ReportTest.java:1 2) </FONT></DI=
V>
<DIV>
<P align=3Dleft><FONT face=3DArial size=3D2>Caused by:=20
Error.DesignFileException.INVALID_XML - 1 errors found! <BR>1.) ( line =
=3D 8)=20
org.xml.sax.SAXParseException (message :=20
java.lang.NullPointerException)<BR> at=20
org.eclipse.birt.report.model.parser.ModuleReader.readModule (ModuleReader=
..java:112)<BR> =20
at=20
org.eclipse.birt.report.model.parser.DesignReader.read(Desig nReader.java:=
90)<BR> =20
at=20
org.eclipse.birt.report.model.core.DesignSession.openDesign( DesignSession=
..java:278)<BR> =20
at=20
org.eclipse.birt.report.model.api.SessionHandle.openDesign(S essionHandle.=
java:291)<BR> =20
at=20
org.eclipse.birt.report.engine.parser.ReportParser.getDesign Handle(Report=
Parser.java:160)<BR> =20
at=20
org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesi=
gn(ReportEngineHelper.java:243)<BR>...=20
5 more</FONT></P></DIV></BODY></HTML>
------=_NextPart_000_000A_01C760D9.0202B4D0--
|
|
|
Re: The design file XXX has error and can not be run. [message #222853 is a reply to message #222828] |
Wed, 07 March 2007 12:00   |
Eclipse User |
|
|
|
Hi,
From the stack trace, it looks like the report design file is not a
valid xml file. Are you designing the report using the GUI designer?
Please re-check the report design file. If you don't find any problems
there, it may help to mail the report design file to the list.
Thanks,
Deepa
Michael Mattan wrote:
> Hi,
>
> can somebody help me with this problem?
> I want to run my report from a standalone Java application, I therefore
> use the code as shown in the "Simple RunAndRender Task Example" on the
> Eclipse website.
>
> When I have a report with just a single text-field on it, I can run this
> report without any problem through my Java application, but from the
> moment I start specifying a Data Source, the error below is thrown.
>
> Is there anybody who has any idea what I am doing wrong and what I could
> do to solve this problem?
>
> kind regards,
> Michael
>
>
> The error thrown:
>
> org.eclipse.birt.report.engine.api.EngineException: The design file
> file:/C:/Test.rptdesign has error and can not be run.
> at
> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:248)
> at
> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:191)
> at
> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:125)
> at
> org.eclipse.birt.report.engine.api.impl.ReportEngine.openRep ortDesign(ReportEngine.java:225)
> at
> com.getronics.gim.reporting.ReportGenerator.generateReport(R eportGenerator.java:59)
> at com.getronics.alcatel.main.ReportTest.main(ReportTest.java:1 2)
>
> Caused by: Error.DesignFileException.INVALID_XML - 1 errors found!
> 1.) ( line = 8) org.xml.sax.SAXParseException (message :
> java.lang.NullPointerException)
> at
> org.eclipse.birt.report.model.parser.ModuleReader.readModule (ModuleReader.java:112)
> at
> org.eclipse.birt.report.model.parser.DesignReader.read(Desig nReader.java:90)
> at
> org.eclipse.birt.report.model.core.DesignSession.openDesign( DesignSession.java:278)
> at
> org.eclipse.birt.report.model.api.SessionHandle.openDesign(S essionHandle.java:291)
> at
> org.eclipse.birt.report.engine.parser.ReportParser.getDesign Handle(ReportParser.java:160)
> at
> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:243)
> ... 5 more
>
|
|
|
Re: The design file XXX has error and can not be run. [message #222907 is a reply to message #222853] |
Wed, 07 March 2007 13:43   |
Eclipse User |
|
|
|
Originally posted by: michael.mattan.getronics.com
Hi,
I used the designer to design the report. When I run it from eclipse by
using the Report Viewer of the Report Designer plugin, everything is ok.
In attachment I've added my report design file... There is not much in it,
just a basic data source connection to a mysql-database. When I remove this
data source, the report gets converted to an html also when I run it from my
Java application. So I think the problem is somewhere that I have forgotten
something for the generation of the report, but I can't think of what I
would have forgotten.
Michael
"Deepa Remesh" <dremesh@gmail.com> wrote in message
news:<esmr45$rnm$1@utils.eclipse.org>...
> Hi,
>
> From the stack trace, it looks like the report design file is not a
> valid xml file. Are you designing the report using the GUI designer?
>
> Please re-check the report design file. If you don't find any problems
> there, it may help to mail the report design file to the list.
>
> Thanks,
> Deepa
>
>
> Michael Mattan wrote:
> > Hi,
> >
> > can somebody help me with this problem?
> > I want to run my report from a standalone Java application, I
> > therefore use the code as shown in the "Simple RunAndRender Task
> > Example" on the Eclipse website.
> >
> > When I have a report with just a single text-field on it, I can run
> > this report without any problem through my Java application, but
> > from the moment I start specifying a Data Source, the error below is
> > thrown.
> >
> > Is there anybody who has any idea what I am doing wrong and what I
> > could do to solve this problem?
> >
> > kind regards,
> > Michael
> >
> >
> > The error thrown:
> >
> > org.eclipse.birt.report.engine.api.EngineException: The design file
> > file:/C:/Test.rptdesign has error and can not be run.
> > at
> > org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:248)
> > at
> > org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:191)
> > at
> > org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:125)
> > at
> > org.eclipse.birt.report.engine.api.impl.ReportEngine.openRep ortDesign(ReportEngine.java:225)
> > at
> > com.getronics.gim.reporting.ReportGenerator.generateReport(R eportGenerator.java:59)
> > at
> > com.getronics.alcatel.main.ReportTest.main(ReportTest.java:1 2)
> >
> > Caused by: Error.DesignFileException.INVALID_XML - 1 errors found!
> > 1.) ( line = 8) org.xml.sax.SAXParseException (message :
> > java.lang.NullPointerException)
> > at
> > org.eclipse.birt.report.model.parser.ModuleReader.readModule (ModuleReader.java:112)
> > at
> > org.eclipse.birt.report.model.parser.DesignReader.read(Desig nReader.java:90)
> > at
> > org.eclipse.birt.report.model.core.DesignSession.openDesign( DesignSession.java:278)
> > at
> > org.eclipse.birt.report.model.api.SessionHandle.openDesign(S essionHandle.java:291)
> > at
> > org.eclipse.birt.report.engine.parser.ReportParser.getDesign Handle(ReportParser.java:160)
> > at
> > org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penRepor
> > tDesign(ReportEngineHelper.java:243)
> > ... 5 more
> >
|
|
|
Re: The design file XXX has error and can not be run. [message #222938 is a reply to message #222907] |
Wed, 07 March 2007 14:40   |
Eclipse User |
|
|
|
Hi Michael,
It does not look like a problem in the design file. The file you
attached is valid and I can preview the report within Eclipse designer
as well as using a java program. The only other thing I can think of is
if there could be a mismatch in the versions of BIRT you use inside
Eclipse and the runtime used in your java application. Some things to
check for:
* Classpath setting. Refer to the genReport.bat file (e.g,
C:\birt-runtime-2_1_1\ReportEngine\genReport.bat) in your BIRT runtime
download to see how to set the classpath. It should include all the jars
from the BIRT runtime ReportEngine\lib folder.
* Mismatch in setting engine home inside the java program. It should be
set to the same version as the jars in the classpath.
e.g, setEngineHome( "C:/deepa/birt-runtime-2_1_1/ReportEngine" );
Thanks,
Deepa
Michael Mattan wrote:
> Hi,
>
> I used the designer to design the report. When I run it from eclipse by
> using the Report Viewer of the Report Designer plugin, everything is ok.
>
> In attachment I've added my report design file... There is not much in it,
> just a basic data source connection to a mysql-database. When I remove this
> data source, the report gets converted to an html also when I run it from my
> Java application. So I think the problem is somewhere that I have forgotten
> something for the generation of the report, but I can't think of what I
> would have forgotten.
>
> Michael
>
>
>
> "Deepa Remesh" <dremesh@gmail.com> wrote in message
> news:<esmr45$rnm$1@utils.eclipse.org>...
>
>> Hi,
>
>
>> From the stack trace, it looks like the report design file is not a
>
>> valid xml file. Are you designing the report using the GUI designer?
>
>
>> Please re-check the report design file. If you don't find any problems
>
>> there, it may help to mail the report design file to the list.
>
>
>> Thanks,
>
>> Deepa
>
>
>
>> Michael Mattan wrote:
>
>>> Hi,
>
>
>>> can somebody help me with this problem?
>
>>> I want to run my report from a standalone Java application, I
>
>>> therefore use the code as shown in the "Simple RunAndRender Task
>
>>> Example" on the Eclipse website.
>
>
>>> When I have a report with just a single text-field on it, I can run
>
>>> this report without any problem through my Java application, but
>
>>> from the moment I start specifying a Data Source, the error below is
>>> thrown.
>
>
>>> Is there anybody who has any idea what I am doing wrong and what I
>
>>> could do to solve this problem?
>
>
>>> kind regards,
>
>>> Michael
>
>
>
>>> The error thrown:
>
>
>>> org.eclipse.birt.report.engine.api.EngineException: The design file
>
>>> file:/C:/Test.rptdesign has error and can not be run.
>
>>> at
>
>>> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:248)
>
>>> at
>
>>> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:191)
>
>>> at
>
>>> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:125)
>
>>> at
>
>>> org.eclipse.birt.report.engine.api.impl.ReportEngine.openRep ortDesign(ReportEngine.java:225)
>
>>> at
>
>>> com.getronics.gim.reporting.ReportGenerator.generateReport(R eportGenerator.java:59)
>
>>> at
>
>>> com.getronics.alcatel.main.ReportTest.main(ReportTest.java:1 2)
>
>
>>> Caused by: Error.DesignFileException.INVALID_XML - 1 errors found!
>
>>> 1.) ( line = 8) org.xml.sax.SAXParseException (message :
>
>>> java.lang.NullPointerException)
>
>>> at
>
>>> org.eclipse.birt.report.model.parser.ModuleReader.readModule (ModuleReader.java:112)
>
>>> at
>
>>> org.eclipse.birt.report.model.parser.DesignReader.read(Desig nReader.java:90)
>
>>> at
>
>>> org.eclipse.birt.report.model.core.DesignSession.openDesign( DesignSession.java:278)
>
>>> at
>
>>> org.eclipse.birt.report.model.api.SessionHandle.openDesign(S essionHandle.java:291)
>
>>> at
>
>>> org.eclipse.birt.report.engine.parser.ReportParser.getDesign Handle(ReportParser.java:160)
>
>>> at
>
>>> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penRepor
>
>>> tDesign(ReportEngineHelper.java:243)
>
>>> ... 5 more
>
>
>
|
|
|
Re: The design file XXX has error and can not be run. [message #222946 is a reply to message #222938] |
Wed, 07 March 2007 15:33   |
Eclipse User |
|
|
|
Originally posted by: michael.mattan.getronics.com
Hi,
I reinstalled the eclipse plugin, reinstalled the runtime and made sure that
all the jars of the ReportEngine/lib folder are in my classpath... it still
gives me the same problem :-(
Also the engineHome path is ok, so I really don't have a clue where the
problem could be...
If I run the report from within my java application by using
Runtime.getRuntime().exec("genReport.bat test.rptdesign") than the report
has been generated successfully... so the runtime is working but I can't
access it through the API, which is quite bizarre... especially because it
only does not work when a data source is specified. Without data source, it
works fine through the API...
Michael
"Deepa Remesh" <dremesh@gmail.com> wrote in message
news:esn4fv$ru9$1@utils.eclipse.org...
> Hi Michael,
>
> It does not look like a problem in the design file. The file you attached
> is valid and I can preview the report within Eclipse designer as well as
> using a java program. The only other thing I can think of is if there
> could be a mismatch in the versions of BIRT you use inside Eclipse and the
> runtime used in your java application. Some things to check for:
>
> * Classpath setting. Refer to the genReport.bat file (e.g,
> C:\birt-runtime-2_1_1\ReportEngine\genReport.bat) in your BIRT runtime
> download to see how to set the classpath. It should include all the jars
> from the BIRT runtime ReportEngine\lib folder.
>
> * Mismatch in setting engine home inside the java program. It should be
> set to the same version as the jars in the classpath.
> e.g, setEngineHome( "C:/deepa/birt-runtime-2_1_1/ReportEngine" );
>
> Thanks,
> Deepa
>
> Michael Mattan wrote:
>> Hi,
>>
>> I used the designer to design the report. When I run it from eclipse by
>> using the Report Viewer of the Report Designer plugin, everything is ok.
>>
>> In attachment I've added my report design file... There is not much in
>> it, just a basic data source connection to a mysql-database. When I
>> remove this data source, the report gets converted to an html also when I
>> run it from my Java application. So I think the problem is somewhere that
>> I have forgotten something for the generation of the report, but I can't
>> think of what I would have forgotten.
>>
>> Michael
>>
>>
>>
>> "Deepa Remesh" <dremesh@gmail.com> wrote in message
>> news:<esmr45$rnm$1@utils.eclipse.org>...
>>
>>> Hi,
>>
>>
>>> From the stack trace, it looks like the report design file is not a
>>
>>> valid xml file. Are you designing the report using the GUI designer?
>>
>>
>>> Please re-check the report design file. If you don't find any problems
>>
>>> there, it may help to mail the report design file to the list.
>>
>>
>>> Thanks,
>>
>>> Deepa
>>
>>
>>
>>> Michael Mattan wrote:
>>
>>>> Hi,
>>
>>
>>>> can somebody help me with this problem?
>>
>>>> I want to run my report from a standalone Java application, I
>>
>>>> therefore use the code as shown in the "Simple RunAndRender Task
>>
>>>> Example" on the Eclipse website.
>>
>>
>>>> When I have a report with just a single text-field on it, I can run
>>
>>>> this report without any problem through my Java application, but
>>
>>>> from the moment I start specifying a Data Source, the error below is
>>>> thrown.
>>
>>
>>>> Is there anybody who has any idea what I am doing wrong and what I
>>
>>>> could do to solve this problem?
>>
>>
>>>> kind regards,
>>
>>>> Michael
>>
>>
>>
>>>> The error thrown:
>>
>>
>>>> org.eclipse.birt.report.engine.api.EngineException: The design file
>>
>>>> file:/C:/Test.rptdesign has error and can not be run.
>>
>>>> at
>>
>>>> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:248)
>>
>>>> at
>>
>>>> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:191)
>>
>>>> at
>>
>>>> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:125)
>>
>>>> at
>>
>>>> org.eclipse.birt.report.engine.api.impl.ReportEngine.openRep ortDesign(ReportEngine.java:225)
>>
>>>> at
>>
>>>> com.getronics.gim.reporting.ReportGenerator.generateReport(R eportGenerator.java:59)
>>
>>>> at
>>
>>>> com.getronics.alcatel.main.ReportTest.main(ReportTest.java:1 2)
>>
>>
>>>> Caused by: Error.DesignFileException.INVALID_XML - 1 errors found!
>>
>>>> 1.) ( line = 8) org.xml.sax.SAXParseException (message :
>>
>>>> java.lang.NullPointerException)
>>
>>>> at
>>
>>>> org.eclipse.birt.report.model.parser.ModuleReader.readModule (ModuleReader.java:112)
>>
>>>> at
>>
>>>> org.eclipse.birt.report.model.parser.DesignReader.read(Desig nReader.java:90)
>>
>>>> at
>>
>>>> org.eclipse.birt.report.model.core.DesignSession.openDesign( DesignSession.java:278)
>>
>>>> at
>>
>>>> org.eclipse.birt.report.model.api.SessionHandle.openDesign(S essionHandle.java:291)
>>
>>>> at
>>
>>>> org.eclipse.birt.report.engine.parser.ReportParser.getDesign Handle(ReportParser.java:160)
>>
>>>> at
>>
>>>> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penRepor
>>
>>>> tDesign(ReportEngineHelper.java:243)
>>
>>>> ... 5 more
>>
>>
|
|
|
Re: The design file XXX has error and can not be run. [message #223253 is a reply to message #222946] |
Thu, 08 March 2007 12:10   |
Eclipse User |
|
|
|
Hi,
I am not sure what is different in your environment as the report works
for me in a Java application too.
One more thing you can check is if you have any additional jars in your
classpath. You should only include the jars in the ReportEngine/lib
folder. Do not add any jars from the ReportEngine/plugins folder.
Deepa
Michael Mattan wrote:
> Hi,
>
> I reinstalled the eclipse plugin, reinstalled the runtime and made sure that
> all the jars of the ReportEngine/lib folder are in my classpath... it still
> gives me the same problem :-(
>
> Also the engineHome path is ok, so I really don't have a clue where the
> problem could be...
>
> If I run the report from within my java application by using
> Runtime.getRuntime().exec("genReport.bat test.rptdesign") than the report
> has been generated successfully... so the runtime is working but I can't
> access it through the API, which is quite bizarre... especially because it
> only does not work when a data source is specified. Without data source, it
> works fine through the API...
>
> Michael
>
>
>
>
> "Deepa Remesh" <dremesh@gmail.com> wrote in message
> news:esn4fv$ru9$1@utils.eclipse.org...
>> Hi Michael,
>>
>> It does not look like a problem in the design file. The file you attached
>> is valid and I can preview the report within Eclipse designer as well as
>> using a java program. The only other thing I can think of is if there
>> could be a mismatch in the versions of BIRT you use inside Eclipse and the
>> runtime used in your java application. Some things to check for:
>>
>> * Classpath setting. Refer to the genReport.bat file (e.g,
>> C:\birt-runtime-2_1_1\ReportEngine\genReport.bat) in your BIRT runtime
>> download to see how to set the classpath. It should include all the jars
>> from the BIRT runtime ReportEngine\lib folder.
>>
>> * Mismatch in setting engine home inside the java program. It should be
>> set to the same version as the jars in the classpath.
>> e.g, setEngineHome( "C:/deepa/birt-runtime-2_1_1/ReportEngine" );
>>
>> Thanks,
>> Deepa
>>
>> Michael Mattan wrote:
>>> Hi,
>>>
>>> I used the designer to design the report. When I run it from eclipse by
>>> using the Report Viewer of the Report Designer plugin, everything is ok.
>>>
>>> In attachment I've added my report design file... There is not much in
>>> it, just a basic data source connection to a mysql-database. When I
>>> remove this data source, the report gets converted to an html also when I
>>> run it from my Java application. So I think the problem is somewhere that
>>> I have forgotten something for the generation of the report, but I can't
>>> think of what I would have forgotten.
>>>
>>> Michael
>>>
>>>
>>>
>>> "Deepa Remesh" <dremesh@gmail.com> wrote in message
>>> news:<esmr45$rnm$1@utils.eclipse.org>...
>>>
>>>> Hi,
>>>
>>>> From the stack trace, it looks like the report design file is not a
>>>> valid xml file. Are you designing the report using the GUI designer?
>>>
>>>> Please re-check the report design file. If you don't find any problems
>>>> there, it may help to mail the report design file to the list.
>>>
>>>> Thanks,
>>>> Deepa
>>>
>>>
>>>> Michael Mattan wrote:
>>>>> Hi,
>>>
>>>>> can somebody help me with this problem?
>>>>> I want to run my report from a standalone Java application, I
>>>>> therefore use the code as shown in the "Simple RunAndRender Task
>>>>> Example" on the Eclipse website.
>>>
>>>>> When I have a report with just a single text-field on it, I can run
>>>>> this report without any problem through my Java application, but
>>>>> from the moment I start specifying a Data Source, the error below is
>>>>> thrown.
>>>
>>>>> Is there anybody who has any idea what I am doing wrong and what I
>>>>> could do to solve this problem?
>>>
>>>>> kind regards,
>>>>> Michael
>>>
>>>
>>>>> The error thrown:
>>>
>>>>> org.eclipse.birt.report.engine.api.EngineException: The design file
>>>>> file:/C:/Test.rptdesign has error and can not be run.
>>>>> at
>>>>> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:248)
>>>>> at
>>>>> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:191)
>>>>> at
>>>>> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:125)
>>>>> at
>>>>> org.eclipse.birt.report.engine.api.impl.ReportEngine.openRep ortDesign(ReportEngine.java:225)
>>>>> at
>>>>> com.getronics.gim.reporting.ReportGenerator.generateReport(R eportGenerator.java:59)
>>>>> at
>>>>> com.getronics.alcatel.main.ReportTest.main(ReportTest.java:1 2)
>>>
>>>>> Caused by: Error.DesignFileException.INVALID_XML - 1 errors found!
>>>>> 1.) ( line = 8) org.xml.sax.SAXParseException (message :
>>>>> java.lang.NullPointerException)
>>>>> at
>>>>> org.eclipse.birt.report.model.parser.ModuleReader.readModule (ModuleReader.java:112)
>>>>> at
>>>>> org.eclipse.birt.report.model.parser.DesignReader.read(Desig nReader.java:90)
>>>>> at
>>>>> org.eclipse.birt.report.model.core.DesignSession.openDesign( DesignSession.java:278)
>>>>> at
>>>>> org.eclipse.birt.report.model.api.SessionHandle.openDesign(S essionHandle.java:291)
>>>>> at
>>>>> org.eclipse.birt.report.engine.parser.ReportParser.getDesign Handle(ReportParser.java:160)
>>>>> at
>>>>> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penRepor
>>>>> tDesign(ReportEngineHelper.java:243)
>>>>> ... 5 more
>>>
>
|
|
| |
Re: The design file XXX has error and can not be run. [message #223383 is a reply to message #223343] |
Thu, 08 March 2007 16:32  |
Eclipse User |
|
|
|
Originally posted by: michael.mattan.getronics.com
"Sunitha Kambhampati" <ksunithaghm@gmail.com> wrote in message
news:espord$n5r$1@utils.eclipse.org...
> Michael Mattan wrote:
>> Hi,
>>
>> I used the designer to design the report. When I run it from eclipse by
>> using the Report Viewer of the Report Designer plugin, everything is ok.
>>
>> In attachment I've added my report design file... There is not much in
>> it, just a basic data source connection to a mysql-database. When I
>> remove this data source, the report gets converted to an html also when I
>> run it from my Java application. So I think the problem is somewhere that
>> I have forgotten something for the generation of the report, but I can't
>> think of what I would have forgotten.
>
> I agree with all that Deepa has already suggested in earlier posts.
>
> Did you add the mysql jdbc jars to the plugin directory
> C:\BIRT\birt-runtime-2_1_1\ReportEngine\plugins\org.eclipse. birt.report.data.oda.jdbc_2.1.1.v20060922-1058\drivers
>
> Can you copypaste what jars are in your buildpath?
>
> What version of runtime are you using?
> Because in some milestones of 2.2 , the ReportEngine/lib has more jars and
> some of them need not be included in classpath.
> Some discussion on the jars that should not be included is in
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=169714#c6
Apparantly that was the problem, I ran through all the jars that I included
in the classpath and there were some included that shouldn't be there. I
removed them from my classpath and the problem is fixed!!!
Thank you Sunitha and Deepa for giving me the right directions to solve my
problem!
BIRT seems to be a sensitive product, but once everything is ok, it turns
out to be wonderful :-)
regards,
Michael
|
|
|
Goto Forum:
Current Time: Sun May 11 03:06:07 EDT 2025
Powered by FUDForum. Page generated in 0.03489 seconds
|