Replies: 6 comments 6 replies
-
This is the correct way, only the current BIRT snapshots are not ready yet. |
Beta Was this translation helpful? Give feedback.
-
Ah, okay.... What is left in order to use the runtime? How can we currently test BIRT report PDF generation at all? |
Beta Was this translation helpful? Give feedback.
-
@wimjongman Thanks for the PR and good to know that we have progress regarding the report viewer but how does the report viewer relate to the BIRT runtime? |
Beta Was this translation helpful? Give feedback.
-
Same issue here - the issue #781 I reported is probably a duplicate. |
Beta Was this translation helpful? Give feedback.
-
An obvious change to to genReport.bat is to replace the FOR statment to construct BIRT_CLASSPATH with the much more simple
in both versions of genReport.bat (runtime and runtime-osgi). Note that the OSGI runtime isn't working, too! With Java 11 and the command line
I get dozens or hundreds of error messages Error Processing: org.eclipse.equinox.internal.p2.extensionlocation.SiteListener@485fa69: java.lang.UnsupportedOperationException: Not able to create StateObjectFactory implementation: org.eclipse.osgi.internal.resolver.StateObjectFactoryImpl and finally This is also described in https://bugs.eclipse.org/bugs/show_bug.cgi?id=547526 |
Beta Was this translation helpful? Give feedback.
-
To answer the initial question: |
Beta Was this translation helpful? Give feedback.
-
We are testing the current birt snapshot with our unaltered code (previously using birt release 4.4.2).
Currently, we start the BIRT / eclipse framework in the following way:
EngineConfig engineConfig_ = new EngineConfig(); engineConfig_.setResourcePath(resourcePath); Platform.startup(engineConfig_);
[...]
reportEngine_ = new ReportEngine(engineConfig_); reportRunnable_ = reportEngine_.openReportDesign(this.reportDesign_);
[...]
runAndRenderTask_ = reportEngine_ .createRunAndRenderTask(reportRunnable_)
[...]
runAndRenderTask_.run();
In consequence (and in contrast to 4.4.2) we are now getting an:
java.lang.ExceptionInInitializerError at org.eclipse.birt.report.engine.emitter.pdf.PDFRender.createPageDevice(PDFRender.java:62) at org.eclipse.birt.report.engine.layout.emitter.PageDeviceRender.start(PageDeviceRender.java:111) at org.eclipse.birt.report.engine.layout.emitter.PageEmitter.start(PageEmitter.java:50) at org.eclipse.birt.report.engine.nLayout.LayoutEngine.start(LayoutEngine.java:265) at org.eclipse.birt.report.engine.emitter.CompositeContentEmitter.start(CompositeContentEmitter.java:171) at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:140) at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:65) [...] Caused by: java.lang.NullPointerException at org.eclipse.core.internal.runtime.InternalPlatform.getBundles(InternalPlatform.java:232) at org.eclipse.core.internal.runtime.InternalPlatform.getBundle(InternalPlatform.java:222) at org.eclipse.core.runtime.Platform.getBundle(Platform.java:1442) at org.eclipse.birt.report.engine.internal.util.BundleVersionUtil.getBundleVersion(BundleVersionUtil.java:33) at org.eclipse.birt.report.engine.emitter.pdf.PDFPageDevice.<clinit>(PDFPageDevice.java:84) ... 17 more
What are we doing wrong / what has changed since 4.4.2?
Beta Was this translation helpful? Give feedback.
All reactions