Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » P2: CheckTrust -Workbench has not been created yet(P2 Director fails with Error "Workbench has not been created yet.")
P2: CheckTrust -Workbench has not been created yet [message #1411007] Fri, 22 August 2014 06:56 Go to next message
Sascha Punzmann is currently offline Sascha PunzmannFriend
Messages: 5
Registered: August 2014
Junior Member
Hi,

I encounter an strange behaviour when executing Oomph with a very simple setup. (It worked a few weeks back on an older Oomph version).

I am only building a product, so I check the "Skip project selection" box and run my product catalog. The product I am building is basically a copy of the "Eclipse Standard/SDK" defined in the Oomph product catalog.

When I run the product catalog like this everything works fine.

Now I add 1 more P2 director "JD Eclipse" (1 feature and 1 repository) That repository is locally hosted as there does not seem to be an online update site available (Update Site can be found via google by searching for "JD Eclipse" --> jd.benow.ca) (Sorry seems like I cannot yet use the direct link in this forum)

When I run this product catalog now I get the following exception during the P2 director execution:

[08:24:31] An error was detected while performing the engine operation and the changes are being rolled back. See the log for details.
[08:24:31] ERROR: org.eclipse.equinox.p2.engine code=4 An error occurred during the org.eclipse.equinox.internal.p2.engine.phases.CheckTrust phase.
  at org.eclipse.oomph.util.OomphPlugin.coreException(OomphPlugin.java:196)
  at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl$1.commit(ProfileTransactionImpl.java:420)
  at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl.commit(ProfileTransactionImpl.java:298)
  at org.eclipse.oomph.setup.p2.impl.P2TaskImpl.perform(P2TaskImpl.java:691)
  at org.eclipse.oomph.internal.setup.core.SetupTaskPerformer.doPerformNeededSetupTasks(SetupTaskPerformer.java:2428)
  at org.eclipse.oomph.internal.setup.core.SetupTaskPerformer.performNeededSetupTasks(SetupTaskPerformer.java:2384)
  at org.eclipse.oomph.internal.setup.core.SetupTaskPerformer.performTriggeredSetupTasks(SetupTaskPerformer.java:2374)
  at org.eclipse.oomph.internal.setup.core.SetupTaskPerformer.perform(SetupTaskPerformer.java:2314)
  at org.eclipse.oomph.setup.ui.wizards.ProgressPage$7.run(ProgressPage.java:377)
  at org.eclipse.oomph.setup.ui.wizards.ProgressPage$9$1.run(ProgressPage.java:454)
  at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
  ERROR: org.eclipse.equinox.p2.engine code=0 session context was:(profile=c__Temp_OomphNew_Test_02_eclipse, phase=org.eclipse.equinox.internal.p2.engine.phases.CheckTrust, operand=, action=).
  ERROR: org.eclipse.equinox.p2.engine code=0 Failed to execute runnable (java.lang.IllegalStateException: Workbench has not been created yet.)
  org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.IllegalStateException: Workbench has not been created yet.)
    at org.eclipse.swt.SWT.error(SWT.java:4441)
    at org.eclipse.swt.SWT.error(SWT.java:4356)
    at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:209)
    at org.eclipse.swt.widgets.Display.syncExec(Display.java:4734)
    at org.eclipse.oomph.p2.internal.ui.P2ServiceUI.getTrustInfo(P2ServiceUI.java:149)
    at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl$3.getTrustInfo(ProfileTransactionImpl.java:525)
    at org.eclipse.equinox.internal.p2.engine.phases.CertificateChecker.checkCertificates(CertificateChecker.java:152)
    at org.eclipse.equinox.internal.p2.engine.phases.CertificateChecker.start(CertificateChecker.java:54)
    at org.eclipse.equinox.internal.p2.engine.phases.CheckTrust.completePhase(CheckTrust.java:50)
    at org.eclipse.equinox.internal.p2.engine.Phase.postPerform(Phase.java:251)
    at org.eclipse.equinox.internal.p2.engine.Phase.perform(Phase.java:101)
    at org.eclipse.equinox.internal.p2.engine.PhaseSet.perform(PhaseSet.java:47)
    at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:75)
    at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:44)
    at org.eclipse.equinox.internal.provisional.p2.director.PlanExecutionHelper.executePlan(PlanExecutionHelper.java:41)
    at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl$1.commit(ProfileTransactionImpl.java:419)
    at org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl.commit(ProfileTransactionImpl.java:298)
    at org.eclipse.oomph.setup.p2.impl.P2TaskImpl.perform(P2TaskImpl.java:691)
    at org.eclipse.oomph.internal.setup.core.SetupTaskPerformer.doPerformNeededSetupTasks(SetupTaskPerformer.java:2428)
    at org.eclipse.oomph.internal.setup.core.SetupTaskPerformer.performNeededSetupTasks(SetupTaskPerformer.java:2384)
    at org.eclipse.oomph.internal.setup.core.SetupTaskPerformer.performTriggeredSetupTasks(SetupTaskPerformer.java:2374)
    at org.eclipse.oomph.internal.setup.core.SetupTaskPerformer.perform(SetupTaskPerformer.java:2314)
    at org.eclipse.oomph.setup.ui.wizards.ProgressPage$7.run(ProgressPage.java:377)
    at org.eclipse.oomph.setup.ui.wizards.ProgressPage$9$1.run(ProgressPage.java:454)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
  Caused by: java.lang.IllegalStateException: Workbench has not been created yet.
    at org.eclipse.ui.PlatformUI.getWorkbench(PlatformUI.java:93)
    at org.eclipse.ui.dialogs.ListSelectionDialog.configureShell(ListSelectionDialog.java:159)
    at org.eclipse.jface.window.Window.createShell(Window.java:507)
    at org.eclipse.jface.window.Window.create(Window.java:434)
    at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1101)
    at org.eclipse.jface.window.Window.open(Window.java:797)
    at org.eclipse.oomph.p2.internal.ui.P2ServiceUI$3.run(P2ServiceUI.java:156)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4147)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3764)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:832)
    at org.eclipse.jface.window.Window.open(Window.java:808)
    at org.eclipse.oomph.setup.internal.installer.InstallerApplication.start(InstallerApplication.java:84)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:236)
    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:648)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
    ... 1 more


When I use this JD-Eclipse update site in an existing Eclipse installation it works perfectly.

Does anybody know why this is happening, or what that error stack actually means?

I attached my product catalog to this post and inserted the link to this update site download above, for those who want to try it themselfs. Please make sure you update the link to the JD-Eclipse repository inside the product catalog.
Re: P2: CheckTrust -Workbench has not been created yet [message #1411132 is a reply to message #1411007] Fri, 22 August 2014 13:20 Go to previous messageGo to next message
Sascha Punzmann is currently offline Sascha PunzmannFriend
Messages: 5
Registered: August 2014
Junior Member
Just found out that the same behviour applies when using JRebel. Might be easier to reproduce:

Requirements:
org.zeroturnaround.eclipse.feature.feature.group
org.zeroturnaround.eclipse.wtp.feature.feature.group
org.zeroturnaround.eclipse.m2e.feature.feature.group
Re: P2: CheckTrust -Workbench has not been created yet [message #1411151 is a reply to message #1411132] Fri, 22 August 2014 14:16 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31035
Registered: July 2009
Senior Member
Sascha,

Yes, that's https://bugs.eclipse.org/bugs/show_bug.cgi?id=442351 and
I've figured out the cause. Personally this dialog has never tried to
come up for me, but when I fake it, I get the same exception.
Essentially the problem is it's trying to add the platform's help
service and that's no available. So I will bypass that part of
configuring the shell and all should be good. You can monitor that
bugzilla and try again when the fix is there shortly.


On 22/08/2014 3:20 PM, Sascha Punzmann wrote:
> Just found out that the same behviour applies when using JRebel. Might
> be easier to reproduce:
>
> Requirements:
>
> org.zeroturnaround.eclipse.feature.feature.group
> org.zeroturnaround.eclipse.wtp.feature.feature.group
> org.zeroturnaround.eclipse.m2e.feature.feature.group
>
Re: P2: CheckTrust -Workbench has not been created yet [message #1411157 is a reply to message #1411151] Fri, 22 August 2014 14:35 Go to previous message
Sascha Punzmann is currently offline Sascha PunzmannFriend
Messages: 5
Registered: August 2014
Junior Member
Ed,

that is just the answer I was hoping for.

Thanks for the quick response
Previous Topic:Project Selection misses "IDE for DSL developers"
Next Topic:No workspace created when "skip project selection" is used
Goto Forum:
  


Current Time: Mon Apr 06 19:01:16 GMT 2020

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

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

Back to the top