Skip to main content



      Home
Home » Archived » BIRT » Export report to pdf fails
Export report to pdf fails [message #176386] Tue, 11 July 2006 03:11 Go to next message
Eclipse UserFriend
Originally posted by: test.suncrusher.de

Hi,

I'm trying to export a report directly to PDF. If no data source is needed - only text - my code is working. With diagram and table I get this error:

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/eclipse/emf/common/util/AbstractEnumerator
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:368)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at org.eclipse.birt.chart.reportitem.ChartReportItemImpl.<clinit >(ChartReportItemImpl.java:78)
at org.eclipse.birt.chart.reportitem.ChartReportItemFactoryImpl .newReportItem(ChartReportItemFactoryImpl.java:47)
at org.eclipse.birt.report.model.extension.PeerExtensibilityPro vider.initializeReportItem(PeerExtensibilityProvider.java:38 4)
at org.eclipse.birt.report.model.elements.ExtendedItem.initiali zeReportItem(ExtendedItem.java:293)
at org.eclipse.birt.report.model.api.validators.ExtensionValida tor.doValidate(ExtensionValidator.java:95)
at org.eclipse.birt.report.model.api.validators.ExtensionValida tor.validate(ExtensionValidator.java:76)
at org.eclipse.birt.report.model.validators.ValidationNode.perf orm(ValidationNode.java:133)
at org.eclipse.birt.report.model.validators.ValidationExecutor. perform(ValidationExecutor.java:76)
at org.eclipse.birt.report.model.core.DesignElement.validateWit hContents(DesignElement.java:2237)
at org.eclipse.birt.report.model.core.DesignElement.validateWit hContents(DesignElement.java:2246)
at org.eclipse.birt.report.model.core.DesignElement.validateWit hContents(DesignElement.java:2246)
at org.eclipse.birt.report.model.core.DesignElement.validateWit hContents(DesignElement.java:2246)
at org.eclipse.birt.report.model.core.DesignElement.validateWit hContents(DesignElement.java:2246)
at org.eclipse.birt.report.model.core.DesignElement.validateWit hContents(DesignElement.java:2246)
at org.eclipse.birt.report.model.core.DesignElement.validateWit hContents(DesignElement.java:2246)
at org.eclipse.birt.report.model.core.Module.semanticCheck(Modu le.java:1333)
at org.eclipse.birt.report.model.parser.ModuleParserHandler.end Document(ModuleParserHandler.java:237)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .endDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm pl.endEntity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.end Entity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.loa d(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.ski pSpaces(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm pl$TrailingMiscDispatcher.dispatch(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(U nknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.eclipse.birt.report.model.parser.ModuleReader.readModule (ModuleReader.java:89)
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:208)
at org.eclipse.birt.report.model.api.SessionHandle.openDesign(S essionHandle.java:173)
at org.eclipse.birt.report.engine.parser.ReportParser.getDesign Handle(ReportParser.java:133)
at org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:102)
at org.eclipse.birt.report.engine.api.impl.ReportEngine.openRep ortDesign(ReportEngine.java:218)
at org.eclipse.birt.report.engine.api.ReportEngine.openReportDe sign(ReportEngine.java:109)
at TimeTest.createPDF(TimeTest.java:49)
at TimeTest.access$0(TimeTest.java:33)
at TimeTest$1.actionPerformed(TimeTest.java:102)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unk nown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknow n Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)


This is my code:

EngineConfig config = new EngineConfig();
config.setEngineHome("C:\\birt-runtime\\ReportEngine");
config.setLogConfig("C:/eclipse/workspace/BIRT_TimeTest/reports ", Level.ALL);
ReportEngine engine = new ReportEngine(config);

try {

// Open a report design - use design to modify design, retrieve
// embedded images etc.
IReportRunnable design = engine.openReportDesign(" C:/eclipse/workspace/BIRT_TimeTest/reports/Timetest_mysql.rp tdesign ");

// Create task to run the report and render the report
IRunAndRenderTask task = engine.createRunAndRenderTask(design);

// Set Render context to handle url and image locataions
PDFRenderContext renderContext = new PDFRenderContext();
//renderContext.setImageDirectory("image");
HashMap contextMap = new HashMap();
contextMap.put(EngineConstants.APPCONTEXT_PDF_RENDER_CONTEXT , renderContext);
task.setAppContext(contextMap);

// Set rendering options - such as file or stream output,
// output format, whether it is embeddable, etc
HTMLRenderOption options = new HTMLRenderOption();
// options.setOutputStream(System.out);
options.setOutputFileName(" C:\\eclipse\\workspace\\BIRT_TimeTest\\reports\\Timetest_mys ql.pdf ");
options.setOutputFormat("pdf");
task.setRenderOption(options);

task.run();

engine.destroy();
} catch (EngineException e1) {
// Ignore
}




When executing
IReportRunnable design = engine.openReportDesign(" C:/eclipse/workspace/BIRT_TimeTest/reports/Timetest_mysql.rp tdesign ");

I receive the error.

Please anybody help me.

Thanks
Tobias

_____________________________
Tobias Schnupp
mail@suncrusher.de
Germany
Re: Export report to pdf fails [message #176396 is a reply to message #176386] Tue, 11 July 2006 03:19 Go to previous messageGo to next message
Eclipse UserFriend
The class is not in your classpath.
Extend your classpath with: common.jar or
org.eclipse.emf.common_2.2.0.v200606051102.jar (in Birt 2.1)

exquisitus schrieb:
> Hi,
>
> I'm trying to export a report directly to PDF. If no data source is
> needed - only text - my code is working. With diagram and table I get
> this error:
>
> Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError:
> org/eclipse/emf/common/util/AbstractEnumerator
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(Unknown Source)
> at java.security.SecureClassLoader.defineClass(Unknown Source)
> at java.net.URLClassLoader.defineClass(Unknown Source)
> at java.net.URLClassLoader.access$100(Unknown Source)
> at java.net.URLClassLoader$1.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:368)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> at
> org.eclipse.birt.chart.reportitem.ChartReportItemImpl.<clinit >(ChartReportItemImpl.java:78)
>
> at
> org.eclipse.birt.chart.reportitem.ChartReportItemFactoryImpl .newReportItem(ChartReportItemFactoryImpl.java:47)
>
> at
> org.eclipse.birt.report.model.extension.PeerExtensibilityPro vider.initializeReportItem(PeerExtensibilityProvider.java:38 4)
>
> at
> org.eclipse.birt.report.model.elements.ExtendedItem.initiali zeReportItem(ExtendedItem.java:293)
>
> at
> org.eclipse.birt.report.model.api.validators.ExtensionValida tor.doValidate(ExtensionValidator.java:95)
>
> at
> org.eclipse.birt.report.model.api.validators.ExtensionValida tor.validate(ExtensionValidator.java:76)
>
> at
> org.eclipse.birt.report.model.validators.ValidationNode.perf orm(ValidationNode.java:133)
>
> at
> org.eclipse.birt.report.model.validators.ValidationExecutor. perform(ValidationExecutor.java:76)
>
> at
> org.eclipse.birt.report.model.core.DesignElement.validateWit hContents(DesignElement.java:2237)
>
> at
> org.eclipse.birt.report.model.core.DesignElement.validateWit hContents(DesignElement.java:2246)
>
> at
> org.eclipse.birt.report.model.core.DesignElement.validateWit hContents(DesignElement.java:2246)
>
> at
> org.eclipse.birt.report.model.core.DesignElement.validateWit hContents(DesignElement.java:2246)
>
> at
> org.eclipse.birt.report.model.core.DesignElement.validateWit hContents(DesignElement.java:2246)
>
> at
> org.eclipse.birt.report.model.core.DesignElement.validateWit hContents(DesignElement.java:2246)
>
> at
> org.eclipse.birt.report.model.core.DesignElement.validateWit hContents(DesignElement.java:2246)
>
> at
> org.eclipse.birt.report.model.core.Module.semanticCheck(Modu le.java:1333)
> at
> org.eclipse.birt.report.model.parser.ModuleParserHandler.end Document(ModuleParserHandler.java:237)
>
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .endDocument(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm pl.endEntity(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLEntityManager.end Entity(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.loa d(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.ski pSpaces(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm pl$TrailingMiscDispatcher.dispatch(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(U nknown Source)
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(Unknown
> Source)
> at javax.xml.parsers.SAXParser.parse(Unknown Source)
> at
> org.eclipse.birt.report.model.parser.ModuleReader.readModule (ModuleReader.java:89)
>
> 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:208)
>
> at
> org.eclipse.birt.report.model.api.SessionHandle.openDesign(S essionHandle.java:173)
>
> at
> org.eclipse.birt.report.engine.parser.ReportParser.getDesign Handle(ReportParser.java:133)
>
> at
> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:102)
>
> at
> org.eclipse.birt.report.engine.api.impl.ReportEngine.openRep ortDesign(ReportEngine.java:218)
>
> at
> org.eclipse.birt.report.engine.api.ReportEngine.openReportDe sign(ReportEngine.java:109)
>
> at TimeTest.createPDF(TimeTest.java:49)
> at TimeTest.access$0(TimeTest.java:33)
> at TimeTest$1.actionPerformed(TimeTest.java:102)
> at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
> at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
> at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
> at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
> at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unk nown
> Source)
> at java.awt.Component.processMouseEvent(Unknown Source)
> at javax.swing.JComponent.processMouseEvent(Unknown Source)
> at java.awt.Component.processEvent(Unknown Source)
> at java.awt.Container.processEvent(Unknown Source)
> at java.awt.Component.dispatchEventImpl(Unknown Source)
> at java.awt.Container.dispatchEventImpl(Unknown Source)
> at java.awt.Component.dispatchEvent(Unknown Source)
> at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
> at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
> at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
> at java.awt.Container.dispatchEventImpl(Unknown Source)
> at java.awt.Window.dispatchEventImpl(Unknown Source)
> at java.awt.Component.dispatchEvent(Unknown Source)
> at java.awt.EventQueue.dispatchEvent(Unknown Source)
> at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknow n
> Source)
> at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> at java.awt.EventDispatchThread.run(Unknown Source)
>
>
> This is my code:
>
> EngineConfig config = new EngineConfig();
> config.setEngineHome("C:\\birt-runtime\\ReportEngine");
>
> config.setLogConfig("C:/eclipse/workspace/BIRT_TimeTest/reports ",
> Level.ALL);
> ReportEngine engine = new ReportEngine(config);
>
> try {
>
> // Open a report design - use design to modify design, retrieve
> // embedded images etc.
> IReportRunnable design =
> engine.openReportDesign(" C:/eclipse/workspace/BIRT_TimeTest/reports/Timetest_mysql.rp tdesign ");
>
>
> // Create task to run the report and render the report
> IRunAndRenderTask task = engine.createRunAndRenderTask(design);
>
> // Set Render context to handle url and image locataions
> PDFRenderContext renderContext = new PDFRenderContext();
> //renderContext.setImageDirectory("image");
> HashMap contextMap = new HashMap();
>
> contextMap.put(EngineConstants.APPCONTEXT_PDF_RENDER_CONTEXT ,
> renderContext);
> task.setAppContext(contextMap);
>
> // Set rendering options - such as file or stream output,
> // output format, whether it is embeddable, etc
> HTMLRenderOption options = new HTMLRenderOption();
> // options.setOutputStream(System.out);
>
> options.setOutputFileName(" C:\\eclipse\\workspace\\BIRT_TimeTest\\reports\\Timetest_mys ql.pdf ");
>
> options.setOutputFormat("pdf");
> task.setRenderOption(options);
>
> task.run();
>
> engine.destroy();
> } catch (EngineException e1) {
> // Ignore
> }
>
>
>
>
> When executing
> IReportRunnable design =
> engine.openReportDesign(" C:/eclipse/workspace/BIRT_TimeTest/reports/Timetest_mysql.rp tdesign ");
>
>
> I receive the error.
>
> Please anybody help me.
>
> Thanks
> Tobias
>
> _____________________________
> Tobias Schnupp
> mail@suncrusher.de
> Germany
Re: Export report to pdf fails [message #176412 is a reply to message #176396] Tue, 11 July 2006 03:50 Go to previous message
Eclipse UserFriend
Originally posted by: mail.suncrusher.de

This is a multi-part message in MIME format.
--------------070308010308070709030906
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Thanks a lot :-)

I feel a little bit stupid for not seeing this by my self ;-)

Orkus schrieb:
> The class is not in your classpath.
> Extend your classpath with: common.jar or
> org.eclipse.emf.common_2.2.0.v200606051102.jar (in Birt 2.1)
>
> exquisitus schrieb:
>> Hi,
>>
>> I'm trying to export a report directly to PDF. If no data source is
>> needed - only text - my code is working. With diagram and table I get
>> this error:
>>
>> Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError:
>> org/eclipse/emf/common/util/AbstractEnumerator
>> at java.lang.ClassLoader.defineClass1(Native Method)
>> at java.lang.ClassLoader.defineClass(Unknown Source)
>> at java.security.SecureClassLoader.defineClass(Unknown Source)
>> at java.net.URLClassLoader.defineClass(Unknown Source)
>> at java.net.URLClassLoader.access$100(Unknown Source)
>> at java.net.URLClassLoader$1.run(Unknown Source)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at java.net.URLClassLoader.findClass(Unknown Source)
>> at java.lang.ClassLoader.loadClass(Unknown Source)
>> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>> at java.lang.ClassLoader.loadClass(Unknown Source)
>> at java.lang.ClassLoader.loadClass(Unknown Source)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:368)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:352)
>>
>> at
>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>>
>> at java.lang.ClassLoader.loadClass(Unknown Source)
>> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>> at
>> org.eclipse.birt.chart.reportitem.ChartReportItemImpl.<clinit >(ChartReportItemImpl.java:78)
>>
>> at
>> org.eclipse.birt.chart.reportitem.ChartReportItemFactoryImpl .newReportItem(ChartReportItemFactoryImpl.java:47)
>>
>> at
>> org.eclipse.birt.report.model.extension.PeerExtensibilityPro vider.initializeReportItem(PeerExtensibilityProvider.java:38 4)
>>
>> at
>> org.eclipse.birt.report.model.elements.ExtendedItem.initiali zeReportItem(ExtendedItem.java:293)
>>
>> at
>> org.eclipse.birt.report.model.api.validators.ExtensionValida tor.doValidate(ExtensionValidator.java:95)
>>
>> at
>> org.eclipse.birt.report.model.api.validators.ExtensionValida tor.validate(ExtensionValidator.java:76)
>>
>> at
>> org.eclipse.birt.report.model.validators.ValidationNode.perf orm(ValidationNode.java:133)
>>
>> at
>> org.eclipse.birt.report.model.validators.ValidationExecutor. perform(ValidationExecutor.java:76)
>>
>> at
>> org.eclipse.birt.report.model.core.DesignElement.validateWit hContents(DesignElement.java:2237)
>>
>> at
>> org.eclipse.birt.report.model.core.DesignElement.validateWit hContents(DesignElement.java:2246)
>>
>> at
>> org.eclipse.birt.report.model.core.DesignElement.validateWit hContents(DesignElement.java:2246)
>>
>> at
>> org.eclipse.birt.report.model.core.DesignElement.validateWit hContents(DesignElement.java:2246)
>>
>> at
>> org.eclipse.birt.report.model.core.DesignElement.validateWit hContents(DesignElement.java:2246)
>>
>> at
>> org.eclipse.birt.report.model.core.DesignElement.validateWit hContents(DesignElement.java:2246)
>>
>> at
>> org.eclipse.birt.report.model.core.DesignElement.validateWit hContents(DesignElement.java:2246)
>>
>> at
>> org.eclipse.birt.report.model.core.Module.semanticCheck(Modu le.java:1333)
>> at
>> org.eclipse.birt.report.model.parser.ModuleParserHandler.end Document(ModuleParserHandler.java:237)
>>
>> at
>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .endDocument(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm pl.endEntity(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.impl.XMLEntityManager.end Entity(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.loa d(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.ski pSpaces(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm pl$TrailingMiscDispatcher.dispatch(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS cannerImpl.scanDocument(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio n.parse(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(U nknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser .parse(Unknown
>> Source)
>> at javax.xml.parsers.SAXParser.parse(Unknown Source)
>> at
>> org.eclipse.birt.report.model.parser.ModuleReader.readModule (ModuleReader.java:89)
>>
>> 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:208)
>>
>> at
>> org.eclipse.birt.report.model.api.SessionHandle.openDesign(S essionHandle.java:173)
>>
>> at
>> org.eclipse.birt.report.engine.parser.ReportParser.getDesign Handle(ReportParser.java:133)
>>
>> at
>> org.eclipse.birt.report.engine.api.impl.ReportEngineHelper.o penReportDesign(ReportEngineHelper.java:102)
>>
>> at
>> org.eclipse.birt.report.engine.api.impl.ReportEngine.openRep ortDesign(ReportEngine.java:218)
>>
>> at
>> org.eclipse.birt.report.engine.api.ReportEngine.openReportDe sign(ReportEngine.java:109)
>>
>> at TimeTest.createPDF(TimeTest.java:49)
>> at TimeTest.access$0(TimeTest.java:33)
>> at TimeTest$1.actionPerformed(TimeTest.java:102)
>> at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
>> at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
>> at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
>> at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
>> at
>> javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unk nown Source)
>> at java.awt.Component.processMouseEvent(Unknown Source)
>> at javax.swing.JComponent.processMouseEvent(Unknown Source)
>> at java.awt.Component.processEvent(Unknown Source)
>> at java.awt.Container.processEvent(Unknown Source)
>> at java.awt.Component.dispatchEventImpl(Unknown Source)
>> at java.awt.Container.dispatchEventImpl(Unknown Source)
>> at java.awt.Component.dispatchEvent(Unknown Source)
>> at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
>> at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
>> at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
>> at java.awt.Container.dispatchEventImpl(Unknown Source)
>> at java.awt.Window.dispatchEventImpl(Unknown Source)
>> at java.awt.Component.dispatchEvent(Unknown Source)
>> at java.awt.EventQueue.dispatchEvent(Unknown Source)
>> at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknow n
>> Source)
>> at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
>> Source)
>> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>> at java.awt.EventDispatchThread.run(Unknown Source)
>>
>>
>> This is my code:
>>
>> EngineConfig config = new EngineConfig();
>> config.setEngineHome("C:\\birt-runtime\\ReportEngine");
>>
>> config.setLogConfig("C:/eclipse/workspace/BIRT_TimeTest/reports ",
>> Level.ALL);
>> ReportEngine engine = new ReportEngine(config);
>>
>> try {
>>
>> // Open a report design - use design to modify design,
>> retrieve
>> // embedded images etc.
>> IReportRunnable design =
>> engine.openReportDesign(" C:/eclipse/workspace/BIRT_TimeTest/reports/Timetest_mysql.rp tdesign ");
>>
>> // Create task to run the report and render the
>> report
>> IRunAndRenderTask task =
>> engine.createRunAndRenderTask(design);
>>
>> // Set Render context to handle url and image locataions
>> PDFRenderContext renderContext = new PDFRenderContext();
>> //renderContext.setImageDirectory("image");
>> HashMap contextMap = new HashMap();
>>
>> contextMap.put(EngineConstants.APPCONTEXT_PDF_RENDER_CONTEXT ,
>> renderContext);
>> task.setAppContext(contextMap);
>>
>> // Set rendering options - such as file or stream output,
>> // output format, whether it is embeddable, etc
>> HTMLRenderOption options = new HTMLRenderOption();
>> // options.setOutputStream(System.out);
>>
>> options.setOutputFileName(" C:\\eclipse\\workspace\\BIRT_TimeTest\\reports\\Timetest_mys ql.pdf ");
>>
>> options.setOutputFormat("pdf");
>> task.setRenderOption(options);
>>
>> task.run();
>>
>> engine.destroy();
>> } catch (EngineException e1) {
>> // Ignore
>> }
>>
>>
>>
>>
>> When executing
>> IReportRunnable design =
>> engine.openReportDesign(" C:/eclipse/workspace/BIRT_TimeTest/reports/Timetest_mysql.rp tdesign ");
>>
>>
>> I receive the error.
>>
>> Please anybody help me.
>>
>> Thanks
>> Tobias
>>
>> _____________________________
>> Tobias Schnupp
>> mail@suncrusher.de
>> Germany


--------------070308010308070709030906
Content-Type: text/x-vcard; charset=utf-8;
name="mail.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="mail.vcf"

begin:vcard
fn:Tobias SChnupp
n:SChnupp;Tobias
email;internet:mail@suncrusher.de
x-mozilla-html:TRUE
version:2.1
end:vcard


--------------070308010308070709030906--
Previous Topic:Problem to view the report
Next Topic:Error while running a report throuhg java application
Goto Forum:
  


Current Time: Wed Sep 10 23:44:39 EDT 2025

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

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

Back to the top