Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311484 - Exception is thrown out when run SwtChartPrinter
Summary: Exception is thrown out when run SwtChartPrinter
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.6.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.6.0 RC0   Edit
Assignee: Heng Li CLA
QA Contact: Maggie Shen CLA
URL:
Whiteboard: Obsolete
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-04 03:19 EDT by Xiaodan Wang CLA
Modified: 2010-05-12 01:17 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.