Skip to main content



      Home
Home » Archived » BIRT » [2nd chance] My First Report and my first error
[2nd chance] My First Report and my first error [message #162714] Thu, 18 May 2006 19:51 Go to next message
Eclipse UserFriend
Originally posted by: mdupuy.hotmail.com

so here is my code :

//Engine Configuration - set and get temp dir, BIRT home, Servlet context
EngineConfig config = new EngineConfig();
config.setEngineHome( "C:/eclipse/birt-runtime-2_0_1/Report Engine" );

//Create the report engine
ReportEngine engine = new ReportEngine( config );


// Open the report design.

IReportRunnable runnable = null;

//Open a report design - use design to modify design, retrieve embedded
images etc.

try {
runnable = engine.openReportDesign( "c:/new_report.rptdesign" );
System.out.println("test");
IRunAndRenderTask task = engine.createRunAndRenderTask( runnable );
IRenderOption options;
options = new RenderOptionBase();
options.setOutputFormat( "pdf");
options.setOutputFileName("test");
task.setRenderOption( options );
} catch (EngineException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
And i got this error :
19 mai 2006 01:44:50 org.eclipse.birt.core.util.BirtTimer logTimeTaken
INFO: Engine startup takes 375 Milliseconds.
19 mai 2006 01:44:51 org.eclipse.birt.report.model.parser.ModuleReader
readModule
GRAVE: Line Number:1 Error Code:Error.XMLParserException.SAX_ERROR
Exception:org.xml.sax.SAXParseException: Erreur de conversion de caractère
: "Unconvertible UTF-8 character beginning with 0x83" (le numéro de ligne
peut être trop bas). Message:SAX a détecté une erreur au niveau de la
syntaxe XML de base du fichier.
19 mai 2006 01:44:51
org.eclipse.birt.report.engine.api.impl.ReportEngineHelper openReportDesign
GRAVE: invalid design file c:\new_report.rptdesign
org.eclipse.birt.report.engine.api.EngineException: Le fichier modèle
c:/new_report.rptdesign comporte une erreur et ne peut pas être exécuté.
at
org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:110)
at
org.eclipse.birt.report.engine.api.ReportEngine.openReportDe sign(ReportEngine.java:219)
at
promoteur.ActRelConstructeur$1.widgetSelected(ActRelConstruc teur.java:107)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:925)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3287)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2907)
at
org.eclipse.ve.internal.java.vce.launcher.remotevm.SWTLaunch er.runEventLoop(SWTLauncher.java:497)
at
org.eclipse.ve.internal.java.vce.launcher.remotevm.SWTLaunch er.runControl(SWTLauncher.java:415)
at
org.eclipse.ve.internal.java.vce.launcher.remotevm.SWTLaunch er.launch(SWTLauncher.java:162)
at
org.eclipse.ve.internal.java.vce.launcher.remotevm.JavaBeans Launcher.main(JavaBeansLauncher.java:70)
Caused by: Error.DesignFileException.INVALID_XML - 2 errors found!
1.) ( line = 1, tag = null)
org.eclipse.birt.report.model.util.XMLParserException (code =
Error.XMLParserException.SAX_ERROR, message : Line Number:1 Error
Code:Error.XMLParserException.SAX_ERROR
Exception:org.xml.sax.SAXParseException: Erreur de conversion de caractère
: "Unconvertible UTF-8 character beginning with 0x83" (le numéro de ligne
peut être trop bas). Message:SAX a détecté une erreur au niveau de la
syntaxe XML de base du fichier. )
2.) ( line = 1) org.xml.sax.SAXParseException (message : Erreur de
conversion de caractère : "Unconvertible UTF-8 character beginning with
0x83" (le numéro de ligne peut être trop bas).)

at
org.eclipse.birt.report.model.parser.ModuleReader.readModule (ModuleReader.java:111)
at
org.eclipse.birt.report.model.parser.ModuleReader.readModule (ModuleReader.java:171)
at
org.eclipse.birt.report.model.parser.DesignReader.read(Desig nReader.java:135)
at
org.eclipse.birt.report.model.core.DesignSession.openDesign( DesignSession.java:177)
at
org.eclipse.birt.report.model.api.SessionHandle.openDesign(S essionHandle.java:133)
at
org.eclipse.birt.report.engine.parser.ReportParser.getDesign Handle(ReportParser.java:93)
at
org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:103)

Pleaseeeeeeeeeeeeeeeee HELP me ... Any idea ???

Thank you
Re: [2nd chance] My First Report and my first error [message #163140 is a reply to message #162714] Fri, 19 May 2006 18:32 Go to previous message
Eclipse UserFriend
Mat,

This looks like a problem with the design file.
Are you using BIRT 2.0.1 to build the report?
Try the sample report in the Report Engine directory.

Jason


"Mat" <mdupuy@hotmail.com> wrote in message
news:dd9941b02ffa7b3687ee4601ceb5e4e9$1@www.eclipse.org...
> so here is my code :
> //Engine Configuration - set and get temp dir, BIRT home, Servlet context
> EngineConfig config = new EngineConfig();
> config.setEngineHome( "C:/eclipse/birt-runtime-2_0_1/Report Engine" );
> //Create the report engine
> ReportEngine engine = new ReportEngine( config );
>
>
> // Open the report design.
>
> IReportRunnable runnable = null;
>
> //Open a report design - use design to modify design, retrieve embedded
> images etc.
> try {
> runnable = engine.openReportDesign( "c:/new_report.rptdesign" );
> System.out.println("test");
> IRunAndRenderTask task = engine.createRunAndRenderTask( runnable );
> IRenderOption options;
> options = new RenderOptionBase();
> options.setOutputFormat( "pdf");
> options.setOutputFileName("test");
> task.setRenderOption( options );
> } catch (EngineException e1) {
> // TODO Auto-generated catch block
> e1.printStackTrace();
> } } And i got this error : 19 mai 2006 01:44:50
> org.eclipse.birt.core.util.BirtTimer logTimeTaken
> INFO: Engine startup takes 375 Milliseconds.
> 19 mai 2006 01:44:51 org.eclipse.birt.report.model.parser.ModuleReader
> readModule
> GRAVE: Line Number:1 Error Code:Error.XMLParserException.SAX_ERROR
> Exception:org.xml.sax.SAXParseException: Erreur de conversion de caract
Previous Topic:How to script HTML constrols (drop-downs, radio buttons)
Next Topic:Export to PDF
Goto Forum:
  


Current Time: Fri Sep 19 15:40:13 EDT 2025

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

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

Back to the top