Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354084 - error.CannotStartupOSGIPlatform
Summary: error.CannotStartupOSGIPlatform
Status: RESOLVED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Birt-Report-inbox@eclipse.org CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-07 06:53 EDT by nasirudeen2001 CLA
Modified: 2011-08-08 11:38 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 nasirudeen2001 CLA 2011-08-07 06:53:47 EDT
Build Identifier: 3.6.2

Hi,

I have developed a BIRT report and its working fine with a Java project. But when I try to integrate the BIRT with plugin application, I am getting the below error while running the application...


org.eclipse.birt.core.exception.BirtException

: error.CannotStartupOSGIPlatform
at org.eclipse.birt.core.framework.Platform.startup(

Platform.java:81)




Any help would be highly appreciated as I am in the deadline to deliver this..:(

Reproducible: Always
Comment 1 Curtis Windatt CLA 2011-08-08 10:00:03 EDT
This sounds like you have a configuration problem in your plug-in, but I will move this to BIRT for comment.

Please provide more information on what the bug is.  If this is not a bug, you can try the forums (http://www.eclipse.org/forums/)
Comment 2 nasirudeen2001 CLA 2011-08-08 11:38:36 EDT
Thanks for your support Windatt...The error got resolved when I commented the "engine.shutdown and platform.shutdown" statements..I read somewhere that engine and platform should not be closed as it will also affect the performance..

Though its working, I've copied the entire error stack below for your reference...please let me know if things could have been handled better..

Thanks..


**************************************************************************
org.eclipse.birt.core.exception.BirtException

: error.CannotStartupOSGIPlatform
at org.eclipse.birt.core.framework.Platform.startup(

Platform.java:81)
at com.bosch.ssd.BirstSrc.GenerateLabelList.generateReport(

GenerateLabelList.java:56)
at com.bosch.ssd.ui.viewActions.ProjectLabelsViewAction$6.run(

ProjectLabelsViewAction.java:311)
at org.eclipse.jface.action.Action.runWithEvent(

Action.java:498)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(

ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(

ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(

ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(

EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(

Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(

Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(

Display.java:3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(

Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(

Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(

Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(

Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(

Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(

Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(

PlatformUI.java:149)
at com.bosch.ssd.product.Application.start(

Application.java:20)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(

EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(

EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(

EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(

EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(

EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(

Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.eclipse.equinox.launcher.Main.invokeFramework(

Main.java:620)
at org.eclipse.equinox.launcher.Main.basicRun(

Main.java:575)
at org.eclipse.equinox.launcher.Main.run(

Main.java:1408)
at org.eclipse.equinox.launcher.Main.main(

Main.java:1384)
Caused by:

org.eclipse.birt.core.framework.FrameworkException: Cant register the ExtensionRegistry classpath
at org.eclipse.birt.core.framework.jar.ServiceLauncher.startup(

ServiceLauncher.java:99)
at org.eclipse.birt.core.framework.Platform.startup(

Platform.java:75)
... 31 more

Caused by:

org.eclipse.core.runtime.CoreException: Extension registry provider is already set.
at org.eclipse.core.internal.registry.RegistryProviderFactory.setDefault(

RegistryProviderFactory.java:31)
at org.eclipse.core.runtime.RegistryFactory.setDefaultRegistryProvider(

RegistryFactory.java:129)
at org.eclipse.birt.core.framework.jar.ServiceLauncher.startup(

ServiceLauncher.java:84)
... 32 more



**************************************************************************




(In reply to comment #1)
> This sounds like you have a configuration problem in your plug-in, but I will
> move this to BIRT for comment.
> 
> Please provide more information on what the bug is.  If this is not a bug, you
> can try the forums (http://www.eclipse.org/forums/)