Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Problems with rptlibrary
Problems with rptlibrary [message #190863] Mon, 18 September 2006 16:46 Go to next message
Eclipse UserFriend
Originally posted by: afgomez.parquesoft.com

Hello,
I cant load a library for a ReportDesignHandle.
I did this:

sessionHandle = new DesignEngine(dc).newSessionHandle((ULocale) null);
design = sessionHandle.createDesign();

//In this line, the system throw an exception
design.includeLibrary("template.rptlibrary", "template");

Exception:
Error.DesignFileException.SYNTAX_ERROR - 1 errors found!
1.) org.eclipse.birt.report.model.parser.DesignParserException (code =
Error.DesignParserException.FILE_NOT_FOUND, message : The file
"template.rptlibrary" is not found.)

I tried putting this:
designConfig.setConfigurationVariable("BIRT_RESOURCE_PATH", "C:/jka/birt/");
But it doesnŽt work.

What can i do to solve this problem?

Thanks
Re: Problems with rptlibrary [message #190879 is a reply to message #190863] Mon, 18 September 2006 23:37 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Try it on the design session.

session.setBirtResourcePath( "c"/jka/birt");

Jason

"Andres" <afgomez@parquesoft.com> wrote in message
news:912dee423ce471b0745db73a86c66a55$1@www.eclipse.org...
> Hello,
> I cant load a library for a ReportDesignHandle.
> I did this:
>
> sessionHandle = new DesignEngine(dc).newSessionHandle((ULocale) null);
> design = sessionHandle.createDesign();
>
> //In this line, the system throw an exception
> design.includeLibrary("template.rptlibrary", "template");
>
> Exception:
> Error.DesignFileException.SYNTAX_ERROR - 1 errors found! 1.)
> org.eclipse.birt.report.model.parser.DesignParserException (code =
> Error.DesignParserException.FILE_NOT_FOUND, message : The file
> "template.rptlibrary" is not found.)
>
> I tried putting this:
> designConfig.setConfigurationVariable("BIRT_RESOURCE_PATH", "C:/jka/birt/");
> But it doesn
Re: Problems with rptlibrary [message #191056 is a reply to message #190879] Tue, 19 September 2006 21:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: afgomez.parquesoft.com

Excellent,
The solution works,
Thanks.
Re: Problems with rptlibrary [message #1630992 is a reply to message #191056] Mon, 23 February 2015 14:21 Go to previous messageGo to next message
Mohona Bose is currently offline Mohona BoseFriend
Messages: 1
Registered: February 2015
Junior Member
I have faced same error "Error.DesignFileException.SYNTAX_ERROR - 1 errors found!
1.) org.eclipse.birt.report.model.parser.DesignParserException (code = Error.DesignParserException.FILE_NOT_FOUND, message : The file "resources/Libraries/LGAReportsLibrary.rptlibrary" is not found.)
" as discussed in this forum after running a BIRT report using my library file - LGAReportsLibrary.rptlibrary. They have been developed in Actuate BIRT designer professional
Version: 11.0.4
Build id: 20121023
Could you please write for me the steps that you had followed to fix it.
As I am not very sure how to go about it or where to add the script - session.setBirtResourcePath( "c"/jka/birt");
1. FIrst of all should I make any change in my library? or report should be modified?
2. Should this script be written in the initialize() method of the report (new) or beforefactory() or have you edited the xml of the report anywhere.
Thanks for all your help in advance.
Re: Problems with rptlibrary [message #1652002 is a reply to message #1630992] Thu, 05 March 2015 16:43 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

So, you're getting this error when running a design that uses your library? Are you using BIRT iHub or BIRT iHub F-Type to run your report?

Michael

Developer Evangelist, Silanis
Re: Problems with rptlibrary [message #1694507 is a reply to message #190863] Tue, 05 May 2015 18:43 Go to previous messageGo to next message
Sen Ka is currently offline Sen KaFriend
Messages: 3
Registered: April 2015
Junior Member
Hello,
I am trying to debug the BIRT report with the the downloaded BIRT 4.2.2 source code. I get the same error when it is trying to establish the DB connection. I changed the url to my local path of the report library file but still getting the same error. The fileName is correctly set in the LayoutEngine class.

Error.DesignFileException.SYNTAX_ERROR - 1 errors found!
1.) org.eclipse.birt.report.model.parser.DesignParserException (code = Error.DesignParserException.FILE_NOT_FOUND, message : The file "TestReport.rptlibrary" is not found.)

Help would be really appreciated.

Thanks
Sen
Re: Problems with rptlibrary [message #1694765 is a reply to message #1694507] Thu, 07 May 2015 15:56 Go to previous message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

How re you running your BIRT reports? Viewer, designer, Java?

Michael

Developer Evangelist, Silanis
Previous Topic:Video from Actuate: Aggregation Filter
Next Topic:Inaccuracies in PDF and HTML reports rendering
Goto Forum:
  


Current Time: Sat Apr 20 02:32:49 GMT 2024

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

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

Back to the top