Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Problem while launching RCP application as using .product file.
Problem while launching RCP application as using .product file. [message #460639] Mon, 25 December 2006 06:48 Go to next message
Swapnil is currently offline SwapnilFriend
Messages: 10
Registered: July 2009
Junior Member
Hi ,
I am trying to launch the RCP application using the .product file.
But I am getting this exception while launching the product. I have
checked the config.ini file and it seems fine to me. The exception says
that there is some problem while invoking code from plugin
"org.eclipse.equinox.preferences".

Any pointers on what I am missing would be a great help.

Thanks,
Swapnil



!SESSION 2006-12-22 14:30:32.594
-----------------------------------------------
eclipse.buildId=I20050627-1435
java.version=1.5.0_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86_64

!ENTRY org.eclipse.equinox.preferences 4 2 2006-12-22 14:30:34.051
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.equinox.preferences".
!STACK 0
java.lang.IllegalStateException: Workbench has not been created yet.
at org.eclipse.ui.PlatformUI.getWorkbench(PlatformUI.java:92)
at
org.eclipse.ui.internal.PlatformUIPreferenceListener.prefere nceChange(PlatformUIPreferenceListener.java:86)
at
org.eclipse.core.internal.preferences.EclipsePreferences$2.r un(EclipsePreferences.java:746)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at
org.eclipse.core.internal.preferences.EclipsePreferences.fir ePreferenceEvent(EclipsePreferences.java:749)
at
org.eclipse.core.internal.preferences.EclipsePreferences.put (EclipsePreferences.java:762)
at
org.eclipse.ui.preferences.ScopedPreferenceStore.setValue(Sc opedPreferenceStore.java:783)
at
com.scali.manage.ui.main.rcp.Application.runVersionSafe(Appl ication.java:34)
at com.scali.manage.ui.main.rcp.Application.run(Application.jav a:79)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
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.core.launcher.Main.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)

!ENTRY org.eclipse.ui 4 4 2006-12-22 14:31:00.210
!MESSAGE Exception in org.eclipse.ui.internal.PageLayout.addView:
org.eclipse.ui.PartInitException: Could not create view:
com.scali.manage.ui.selector.views.selector.SelectorView

!ENTRY org.eclipse.ui 4 4 2006-12-22 14:31:00.210
!MESSAGE Exception in org.eclipse.ui.internal.PageLayout.addView:
org.eclipse.ui.PartInitException: Could not create view:
com.scali.manage.ui.selector.views.selector.SelectorView
!STACK 1
org.eclipse.ui.PartInitException: Could not create view:
com.scali.manage.ui.selector.views.selector.SelectorView
at org.eclipse.ui.internal.ViewFactory.createView(ViewFactory.j ava:153)
at
org.eclipse.ui.internal.LayoutHelper.createView(LayoutHelper .java:162)
at org.eclipse.ui.internal.PageLayout.createView(PageLayout.jav a:469)
at org.eclipse.ui.internal.PageLayout.addView(PageLayout.java:3 71)
at
org.eclipse.ui.internal.PageLayout.addStandaloneView(PageLay out.java:804)
at
com.scali.manage.ui.main.rcp.DataCenterPerspective.createIni tialLayout(DataCenterPerspective.java:18)
at
org.eclipse.ui.internal.Perspective.loadPredefinedPersp(Pers pective.java:697)
at
org.eclipse.ui.internal.Perspective.createPresentation(Persp ective.java:219)
at org.eclipse.ui.internal.Perspective.<init>(Perspective.java:125)
at
org.eclipse.ui.internal.WorkbenchPage.createPerspective(Work benchPage.java:1487)
at org.eclipse.ui.internal.WorkbenchPage.init(WorkbenchPage.jav a:2273)
at org.eclipse.ui.internal.WorkbenchPage.<init>(WorkbenchPage.java:543)
at
org.eclipse.ui.internal.WorkbenchWindow.busyOpenPage(Workben chWindow.java:655)
at
org.eclipse.ui.internal.Workbench.busyOpenWorkbenchWindow(Wo rkbench.java:795)
at
org.eclipse.ui.internal.Workbench.doOpenFirstTimeWindow(Work bench.java:1437)
at org.eclipse.ui.internal.Workbench.access$10(Workbench.java:1 435)
at org.eclipse.ui.internal.Workbench$16.run(Workbench.java:1399 )
at
org.eclipse.ui.internal.Workbench.runStartupWithProgress(Wor kbench.java:1421)
at
org.eclipse.ui.internal.Workbench.openFirstTimeWindow(Workbe nch.java:1397)
at
org.eclipse.ui.internal.WorkbenchConfigurer.openFirstTimeWin dow(WorkbenchConfigurer.java:190)
at
org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:708)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:1085)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1847)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
com.scali.manage.ui.main.rcp.Application.runVersionSafe(Appl ication.java:39)
at com.scali.manage.ui.main.rcp.Application.run(Application.jav a:79)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
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.core.launcher.Main.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
!SUBENTRY 1 org.eclipse.ui 4 0 2006-12-22 14:31:00.212
!MESSAGE Could not create view:
com.scali.manage.ui.selector.views.selector.SelectorView

!ENTRY org.eclipse.ui 4 4 2006-12-22 14:31:00.213
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 2006-12-22 14:31:00.213
!MESSAGE assertion failed:
!STACK 0
org.eclipse.core.runtime.AssertionFailedException: assertion failed:
at org.eclipse.core.runtime.Assert.isTrue(Assert.java:109)
at org.eclipse.core.runtime.Assert.isTrue(Assert.java:95)
at
org.eclipse.ui.internal.PageLayout.getViewLayoutRec(PageLayo ut.java:218)
at
org.eclipse.ui.internal.PageLayout.addStandaloneView(PageLay out.java:805)
at
com.scali.manage.ui.main.rcp.DataCenterPerspective.createIni tialLayout(DataCenterPerspective.java:18)
at
org.eclipse.ui.internal.Perspective.loadPredefinedPersp(Pers pective.java:697)
at
org.eclipse.ui.internal.Perspective.createPresentation(Persp ective.java:219)
at org.eclipse.ui.internal.Perspective.<init>(Perspective.java:125)
at
org.eclipse.ui.internal.WorkbenchPage.createPerspective(Work benchPage.java:1487)
at org.eclipse.ui.internal.WorkbenchPage.init(WorkbenchPage.jav a:2273)
at org.eclipse.ui.internal.WorkbenchPage.<init>(WorkbenchPage.java:543)
at
org.eclipse.ui.internal.WorkbenchWindow.busyOpenPage(Workben chWindow.java:655)
at
org.eclipse.ui.internal.Workbench.busyOpenWorkbenchWindow(Wo rkbench.java:795)
at
org.eclipse.ui.internal.Workbench.doOpenFirstTimeWindow(Work bench.java:1437)
at org.eclipse.ui.internal.Workbench.access$10(Workbench.java:1 435)
at org.eclipse.ui.internal.Workbench$16.run(Workbench.java:1399 )
at
org.eclipse.ui.internal.Workbench.runStartupWithProgress(Wor kbench.java:1421)
at
org.eclipse.ui.internal.Workbench.openFirstTimeWindow(Workbe nch.java:1397)
at
org.eclipse.ui.internal.WorkbenchConfigurer.openFirstTimeWin dow(WorkbenchConfigurer.java:190)
at
org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:708)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:1085)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1847)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
com.scali.manage.ui.main.rcp.Application.runVersionSafe(Appl ication.java:39)
at com.scali.manage.ui.main.rcp.Application.run(Application.jav a:79)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
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.core.launcher.Main.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Re: Problem while launching RCP application as using .product file. [message #460641 is a reply to message #460639] Mon, 25 December 2006 10:24 Go to previous messageGo to next message
Alex Blewitt is currently offline Alex BlewittFriend
Messages: 946
Registered: July 2009
Senior Member
> java.lang.IllegalStateException: Workbench has not been created yet.

This usually comes when including plugins as Jars without going via the EclipseStarter process; but the stack trace looks like you are starting Eclipse in the normal way.

It would seem that the failure is to do with the view:

> org.eclipse.ui.PartInitException: Could not create view:
> com.scali.manage.ui.selector.views.selector.SelectorView

One possibility in these kind of situations is that your view has some kind of static initialiser, and the class is being loaded before the workbench is being started completely (though I suspect that's pretty unlikely). If you were trying to obtain the preference store in some kind of static initialiser, that might do it:

public class View {
  private static IPreferenceStore prefs = PlatformUI.getPlatformStore()
}


So when the View class is loaded, PlatformUI might not be up (or similar). It's a long shot, and I doubt that's what is happening, but if you have that kind of setup, if you replace it with a lazy accessor then it might help.

Alex.
Re: Problem while launching RCP application as using .product file. [message #461305 is a reply to message #460641] Tue, 09 January 2007 04:52 Go to previous messageGo to next message
Swapnil is currently offline SwapnilFriend
Messages: 10
Registered: July 2009
Junior Member
Hi Alex,
You are right, the problem was due to some missing plugins. I
added following three plugins (basically jars) and it worked fine for me.

- org.eclipse.core.filesystem
- org.eclipse.core.resources.compatibility
- org.eclipse.core.runtime.compatibility

-Swapnil


Alex Blewitt wrote:
>> java.lang.IllegalStateException: Workbench has not been created yet.
>
> This usually comes when including plugins as Jars without going via the EclipseStarter process; but the stack trace looks like you are starting Eclipse in the normal way.
>
> It would seem that the failure is to do with the view:
>
>> org.eclipse.ui.PartInitException: Could not create view:
>> com.scali.manage.ui.selector.views.selector.SelectorView
>
> One possibility in these kind of situations is that your view has some kind of static initialiser, and the class is being loaded before the workbench is being started completely (though I suspect that's pretty unlikely). If you were trying to obtain the preference store in some kind of static initialiser, that might do it:
>
>
> public class View {
>   private static IPreferenceStore prefs = PlatformUI.getPlatformStore()
> }
> 

>
> So when the View class is loaded, PlatformUI might not be up (or similar). It's a long shot, and I doubt that's what is happening, but if you have that kind of setup, if you replace it with a lazy accessor then it might help.
>
> Alex.
Re: Problem while launching RCP application as using .product file. [message #1827653 is a reply to message #461305] Wed, 20 May 2020 04:15 Go to previous message
Xiong An is currently offline Xiong AnFriend
Messages: 5
Registered: September 2017
Junior Member
Hi Swapnil,

Where did you add these plugins? In .product file, right?

Xiong
Previous Topic:Run Unittests on Jenkins: Could not load SWT library
Next Topic:Not able to add view to IDE
Goto Forum:
  


Current Time: Wed Apr 24 23:46:25 GMT 2024

Powered by FUDForum. Page generated in 0.02754 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top