| Summary: | PDF error generation with BIRT 3.7.1 ReportEngine | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Missing name <jjpeyronel> |
| Component: | BIRT | Assignee: | Yu Chen <yChen> |
| Status: | RESOLVED NOT_ECLIPSE | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | jouyang, r.tom |
| Version: | 3.7.1 | ||
| Target Milestone: | 3.7.2 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
This is a dependance problem with another package Sorry Thank you for your help. Please, can you tell me, how did you solve this problem? I've looked for package contening com.lowagie.text.pdf.BaseFont in Eclipse interface and I've removed the package which is not a direct dependances of BIRT. Thank you, for your reply. When I remove this Package, I will get a ClassNotFoundException. Did you changed anything else? |
Build Identifier: org.eclipse.birt.runtime_3.7.1.v20110913-1734.jar Hi, I'am working on a project which integrate BIRT EngineReport version 3.7.1. With a simple report I can generate an HTML report But when I want to generate a PDF report with the same design. I get an exception : java.lang.NoSuchMethodError: com.lowagie.text.pdf.BaseFont.charExists(I)Z at org.eclipse.birt.report.engine.layout.pdf.font.FontHandler.getMappedFont(FontHandler.java:219) at org.eclipse.birt.report.engine.layout.pdf.font.FontHandler.selectFont(FontHandler.java:162) at org.eclipse.birt.report.engine.layout.pdf.font.FontSplitter.buildChunk(FontSplitter.java:98) at org.eclipse.birt.report.engine.layout.pdf.font.FontSplitter.getNext(FontSplitter.java:189) at org.eclipse.birt.report.engine.layout.pdf.text.ChunkGenerator.getNext(ChunkGenerator.java:104) at org.eclipse.birt.report.engine.nLayout.area.impl.TextCompositor.getNextTextArea(TextCompositor.java:189) at org.eclipse.birt.report.engine.nLayout.area.impl.TextCompositor.getNextArea(TextCompositor.java:127) at org.eclipse.birt.report.engine.nLayout.area.impl.TextAreaLayout.layoutChildren(TextAreaLayout.java:182) at org.eclipse.birt.report.engine.nLayout.area.impl.TextAreaLayout.layout(TextAreaLayout.java:173) at org.eclipse.birt.report.engine.nLayout.area.impl.BlockTextArea.layout(BlockTextArea.java:71) at org.eclipse.birt.report.engine.nLayout.LayoutEngine.startContent(LayoutEngine.java:538) at org.eclipse.birt.report.engine.emitter.ContentEmitterAdapter.startText(ContentEmitterAdapter.java:147) at org.eclipse.birt.report.engine.emitter.ContentEmitterAdapter.startLabel(ContentEmitterAdapter.java:153) at org.eclipse.birt.report.engine.emitter.ContentEmitterUtil.startContent(ContentEmitterUtil.java:65) at org.eclipse.birt.report.engine.nLayout.LayoutEngine.visitContent(LayoutEngine.java:693) at org.eclipse.birt.report.engine.nLayout.LayoutEngine.visitChildren(LayoutEngine.java:717) at org.eclipse.birt.report.engine.nLayout.RegionLayoutEngine.layout(RegionLayoutEngine.java:31) at org.eclipse.birt.report.engine.nLayout.area.impl.PageArea.layoutHeader(PageArea.java:446) at org.eclipse.birt.report.engine.nLayout.area.impl.PageArea.initialize(PageArea.java:248) at org.eclipse.birt.report.engine.nLayout.area.impl.RootArea.createNewPage(RootArea.java:147) at org.eclipse.birt.report.engine.nLayout.area.impl.RootArea.initialize(RootArea.java:138) at org.eclipse.birt.report.engine.nLayout.LayoutEngine.setContainer(LayoutEngine.java:366) at org.eclipse.birt.report.engine.nLayout.LayoutEngine._startContainer(LayoutEngine.java:453) This happen when a Text appear in the report. With a blanck report, with no text, I can generate a blanck PDF before I have : 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory loadFontMappingConfig INFO: load font config in jar:file:/C:/Documents%20and%20Settings/jjpeyronel/.m2/repository/eu/cashsystemes/birt/org.eclipse.birt.runtime_3.7.1.v20110913-1734.jar/1.0.0/org.eclipse.birt.runtime_3.7.1.v20110913-1734.jar-1.0.0.jar!/fontsConfig.xml cost 16ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /usr/openwin/lib/locale/ja/X11/fonts/TT cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /usr/openwin/lib/locale/iso_8859_13/X11/fonts/TrueType cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /usr/openwin/lib/locale/ru.ansi-1251/X11/fonts/TrueType cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /usr/openwin/lib/locale/iso_8859_15/X11/fonts/TrueType cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in d:/windows/fonts cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in C:/windows/fonts cost:203ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /usr/X11R6/lib/X11/fonts/truetype cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /usr/openwin/lib/locale/ar/X11/fonts/TrueType cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in e:/WINNT/fonts cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in C:/WINNT/fonts cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /usr/openwin/lib/locale/iso_8859_2/X11/fonts/TrueType cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /usr/X11R6/lib/X11/fonts/tt cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /usr/openwin/lib/locale/th_TH/X11/fonts/TrueType cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /usr/openwin/lib/locale/iso_8859_8/X11/fonts/TrueType cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /usr/openwin/lib/locale/iso_8859_7/X11/fonts/TrueType cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /usr/X11R6/lib/X11/fonts/TTF cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /usr/openwin/lib/X11/fonts/TrueType cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /usr/share/fonts/truetype cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in f:/WINNT/fonts cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /usr/openwin/lib/locale/ko.UTF-8/X11/fonts/TrueType cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in g:/WINNT/fonts cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /usr/openwin/lib/locale/iso_8859_5/X11/fonts/TrueType cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in f:/windows/fonts cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in d:/WINNT/fonts cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /usr/share/fonts/ko/TrueType cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /usr/openwin/lib/locale/zh_TW/X11/fonts/TrueType cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in e:/windows/fonts cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /usr/share/fonts/zh_TW/TrueType cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /usr/share/fonts/ja/TrueType cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /usr/openwin/lib/locale/zh_CN.GB18030/X11/fonts/TrueType cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /usr/share/fonts/default/TrueType cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /usr/X/lib/X11/fonts/TrueType cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /usr/openwin/lib/locale/euro_fonts/X11/fonts/TrueType cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /usr/openwin/lib/locale/hi_IN.UTF-8/X11/fonts/TrueType cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /usr/openwin/lib/locale/zh.GBK/X11/fonts/TrueType cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /usr/X11R6/lib/X11/fonts/OTF cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /usr/openwin/lib/locale/iso_8859_9/X11/fonts/TrueType cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /usr/X11R6/lib/X11/fonts/TrueType cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /usr/openwin/lib/locale/zh_TW.BIG5/X11/fonts/TT cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /usr/openwin/lib/locale/ko/X11/fonts/TrueType cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /usr/openwin/lib/locale/zh_HK.BIG5HK/X11/fonts/TT cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /usr/openwin/lib/locale/KOI8-R/X11/fonts/TrueType cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /usr/openwin/lib/locale/zh/X11/fonts/TrueType cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in /usr/share/fonts/zh_CN/TrueType cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory$2 run INFO: register fonts in g:/windows/fonts cost:0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory loadFontMappingConfig INFO: load font config in jar:file:/C:/Documents%20and%20Settings/XXX/.m2/repository/eu/cashsystemes/birt/org.eclipse.birt.runtime_3.7.1.v20110913-1734.jar/1.0.0/org.eclipse.birt.runtime_3.7.1.v20110913-1734.jar-1.0.0.jar!/fontsConfig_win32.xml cost 0ms 12 oct. 2011 18:48:53 org.eclipse.birt.report.engine.layout.pdf.font.FontMappingManagerFactory loadFontMappingConfig INFO: load font config in jar:file:/C:/Documents%20and%20Settings/XXX/.m2/repository/eu/cashsystemes/birt/org.eclipse.birt.runtime_3.7.1.v20110913-1734.jar/1.0.0/org.eclipse.birt.runtime_3.7.1.v20110913-1734.jar-1.0.0.jar!/fontsConfig_pdf.xml cost 0ms 12 oct. 2011 18:48:54 org.eclipse.birt.report.engine.api.impl.RunAndRenderTask doRun Reproducible: Always Steps to Reproduce: IReportRunnable design = null; ReportEngine engine = null; EngineConfig config = new EngineConfig(); engine = new ReportEngine(config); L.debug("Obtention du rapportDesign fourni par le moteur"); design = engine.openReportDesign(RapportBIRT); L.debug("Création de la tâche responsable du rendu"); IRunAndRenderTask task = engine.createRunAndRenderTask(design); L.debug("Obtention des options pour le rapport"); PDFRenderOption OptionsLocales = new PDFRenderOption(); OptionsLocales.setOutputFormat(PDFRenderOption.OUTPUT_FORMAT_PDF); OptionsLocales.setOutputFileName("TEST.PDF"); L.debug("Affectation des options au rapport"); task.setRenderOption(OptionsLocales); L.debug("Transfert du rapport vers l'OutputStream"); options.setOutputStream(bos); try { L.debug("Lancement de la génération du rapport"); task.run(); } finally { /* la fermeture de la tâche est une obligation si on veut continuer à générer des rapports même si ils ont échoué*/ L.debug("Fermeture de la tâche spécialisée"); task.close(); }