Skip to main content



      Home
Home » Archived » BIRT » openReportDesign fails in 2.0.0 (final)
openReportDesign fails in 2.0.0 (final) [message #117555] Thu, 26 January 2006 10:20 Go to next message
Eclipse UserFriend
Originally posted by: mlorenz.nc.rr.com

I am using the 2.0.0 (final) code. A report that worked under 1.0.1 is now
getting a NullPointerException:

java.lang.NullPointerException
at
org.eclipse.birt.report.engine.api.ReportEngine.openReportDe sign(ReportEngine.java:219)
at com.labcorp.cels.pla.domain.reporting.Report.generate(Report .java:75)
at com.labcorp.cels.pla.domain.organization.LabCorp.main(LabCor p.java:151)

The line in my code is:

report = ENGINE.openReportDesign( getDesignFilepath() );

The file for the path is the same as before, the file is there, and using
an XML editor it appears to be well-formed. I can open it in the designer
and everything looks fine.

Is this a bug in the BIRT code? I went into the ReportEngine.java source
code to attempt to identify what is failing with a NullPointerException. I
believe it is during this line (the full method follows):

return helper.openReportDesign( designName );

Can someone from the BIRT team give me some idea what might be wrong? I
assume the "helper" is null, but I don't know why or how to fix it. I can
provide my .rptdesign file and my Java source if needed.

================== method source ===========
/**
* opens a report design file and creates a report design runnable. From the
* ReportRunnable object, embedded images and parameter definitions can be
* retrieved. Constructing an engine task requires a report design runnable
* object.
* * @param designName
* the full path of the report design file
* @return a report design runnable object
* @throws EngineException
* throwed when the input file does not exist, or the file is
* invalid
*/
public IReportRunnable openReportDesign( String designName )
throws EngineException
{
return helper.openReportDesign( designName );
}
Re: openReportDesign fails in 2.0.0 (final) [message #118026 is a reply to message #117555] Thu, 26 January 2006 15:46 Go to previous message
Eclipse UserFriend
Originally posted by: mlorenz.nc.rr.com

Found out what the problem was. The tables on the report were too wide.
Even
if I said 100% or blank or anything else, they went over the right side.
Once
I reduced the Master page margins so they fit, the NullPointerException
went
away.

This *is* a BIRT bug (# 124719).
Previous Topic:RunReport error
Next Topic:"The selected driver cannot parse the given url" error...
Goto Forum:
  


Current Time: Fri Apr 25 19:12:38 EDT 2025

Powered by FUDForum. Page generated in 0.07119 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top