Community
Participate
Working Groups
Description: Exception is thrown out when run SwtChartPrinter. Build number: 2.6.0.v20100504-0630 Steps to reproduce: 1. Run /org.eclipse.birt.chart.examples/src/org/eclipse/birt/chart/examples/api/viewer/SwtChartPrinter.java. 2. Select Scatter, 2D with Depth and click "Update". Expected result: No exception. Actual result: Exception is thrown out (see the screenshot).
Error log: May 4, 2010 3:18:14 PM org.eclipse.birt.chart.util.PluginSettings instance WARNING: Exception org.eclipse.birt.core.exception.BirtException: Can not startup the OSGI framework at org.eclipse.birt.core.framework.Platform.startup(Platform.java:91) at org.eclipse.birt.chart.util.PluginSettings.instance(PluginSettings.java:365) at org.eclipse.birt.chart.api.ChartEngine.instance(ChartEngine.java:64) at org.eclipse.birt.chart.api.ChartEngine.instance(ChartEngine.java:79) at org.eclipse.birt.chart.examples.api.viewer.SwtChartPrinter.printChart(SwtChartPrinter.java:55) at org.eclipse.birt.chart.examples.api.viewer.SwtChartPrinter.main(SwtChartPrinter.java:39) Caused by: org.eclipse.birt.core.exception.CoreException at org.eclipse.birt.core.framework.osgi.OSGILauncher.startup(OSGILauncher.java:90) at org.eclipse.birt.core.framework.Platform.startup(Platform.java:79) ... 5 more
Please check if this behavior is the same as other examples. As usual, if user doesn't specify BIRT_HOME or standalone settings, this exception is expected.
Fixed by initializing birt chart as STANDALONE mode.
verified on May 12th.
closed.