Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 311484

Summary: Exception is thrown out when run SwtChartPrinter
Product: z_Archived Reporter: Xiaodan Wang <xwang>
Component: BIRTAssignee: Heng Li <liheeng>
Status: CLOSED FIXED QA Contact: Maggie Shen <lshen>
Severity: normal    
Priority: P3 CC: Lionel.wyl
Version: 2.6.0   
Target Milestone: 2.6.0 RC0   
Hardware: PC   
OS: Windows XP   
Whiteboard: Obsolete

Description Xiaodan Wang CLA 2010-05-04 03:19:37 EDT
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).
Comment 1 Xiaodan Wang CLA 2010-05-04 03:19:46 EDT
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
Comment 2 Yulin Wang CLA 2010-05-09 22:08:03 EDT
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.
Comment 3 Heng Li CLA 2010-05-09 23:55:27 EDT
Fixed by initializing birt chart as STANDALONE mode.
Comment 4 Maggie Shen CLA 2010-05-11 23:12:14 EDT
verified on May 12th.
Comment 5 Xiaodan Wang CLA 2010-05-12 01:17:11 EDT
closed.