Bonjour à tous,
j'essaie d'avoir un fichier pdf à partir de .rptdesign, j'ai la version birt-runtime-2_3_0, j'ai rajouter dans le fichier birt-runtime-2_3_0/ReportEngine/genReport.sh cette ligne là
et j'ai rajouter le fichier jar de connector mysql "mysql-connector-java-5.0.8-bin.jar" dans
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 export BIRT_HOME="path/birt-runtime-2_3_0";
en gros pour un fichier de test ou y pas accès à la base de donnée j'arrive avec la commande
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 path/birt-runtime-2_3_0/ReportEngine/plugins/org.eclipse.birt.report.data.oda.jdbc_2.3.0.v20080610/drivers
mais si je fais la même chose avec un fichier qui tape dans la base de donnée sa ne marche pas et j'ai un message d'erreur suivant
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 sudo sh genReport.sh --format pdf test.rptdesign
voilà voilà ..
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47 genReport.sh: 38: [: /path/birt-runtime-2_3_0: unexpected operator févr. 13, 2013 4:25:06 PM org.eclipse.birt.report.engine.api.impl.ReportEngineHelper openReportDesign SEVERE: invalid design file file:/path/birt-runtime-2_3_0/ReportEngine/WIN_Vivendi.rptdesign févr. 13, 2013 4:25:06 PM org.eclipse.birt.report.engine.api.ReportRunner runAndRenderReport SEVERE: The design file file:/path/birt-runtime-2_3_0/ReportEngine/WIN_Vivendi.rptdesign has error and can not be run. org.eclipse.birt.report.engine.api.EngineException: The design file file:/path/birt-runtime-2_3_0/ReportEngine/WIN_Vivendi.rptdesign has error and can not be run. at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDesign(ReportEngineHelper.java:256) at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDesign(ReportEngineHelper.java:191) at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDesign(ReportEngineHelper.java:125) at org.eclipse.birt.report.engine.api.impl.ReportEngine.openReportDesign(ReportEngine.java:285) at org.eclipse.birt.report.engine.api.ReportRunner.runAndRenderReport(ReportRunner.java:189) at org.eclipse.birt.report.engine.api.ReportRunner.execute(ReportRunner.java:162) at org.eclipse.birt.report.engine.api.ReportRunner.main(ReportRunner.java:117) Caused by: Error.DesignFileException.INVALID_XML - 1 errors found! 1.) ( line = 0, tag = null) org.eclipse.birt.report.model.parser.DesignParserException (code = Error.DesignParserException.UNSUPPORTED_VERSION, message : The report file of version "3.2.23" is invalid for it is greater than the latest supported one.) at org.eclipse.birt.report.model.parser.ModuleReader.readModule(ModuleReader.java:117) at org.eclipse.birt.report.model.parser.DesignReader.read(DesignReader.java:90) at org.eclipse.birt.report.model.core.DesignSession.openDesign(DesignSession.java:316) at org.eclipse.birt.report.model.api.SessionHandle.openDesign(SessionHandle.java:292) at org.eclipse.birt.report.engine.parser.ReportParser.getDesignHandle(ReportParser.java:158) at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.openReportDesign(ReportEngineHelper.java:251) ... 6 more Caused by: org.eclipse.birt.report.model.util.XMLParserException: Line Number:0 Error Code:Error.XMLParserException.EXCEPTION Exception:org.eclipse.birt.report.model.parser.DesignParserException: The report file of version "3.2.23" is invalid for it is greater than the latest supported one. Message:A generic exception occurred. org.eclipse.birt.report.model.parser.DesignParserException: The report file of version "3.2.23" is invalid for it is greater than the latest supported one. at org.eclipse.birt.report.model.parser.ModuleState.parseAttrs(ModuleState.java:110) at org.eclipse.birt.report.model.parser.ModuleParserHandler.startElement(ModuleParserHandler.java:198) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:506) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:745) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1323) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDriver.scanRootElementHook(XMLDocumentScannerImpl.java:1277) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3065) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:881) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:607) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:489) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:835) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1210) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:568) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:302) at org.eclipse.birt.report.model.parser.ModuleReader.readModule(ModuleReader.java:95) ... 11 more Caused by: org.eclipse.birt.report.model.parser.DesignParserException: The report file of version "3.2.23" is invalid for it is greater than the latest supported one. at org.eclipse.birt.report.model.parser.ModuleState.parseAttrs(ModuleState.java:107) ... 27 more
Partager