AnsweredAssumed Answered

Headless build problem!

Question asked by dave408 on Apr 19, 2016
Latest reply on Apr 20, 2016 by dave408

I set up a new continuous integration environment and can build my project in KDS fine.  However, when I use eclipsec to build headless, I get this error in the log:

java.lang.IllegalStateException: Workbench has not been created yet.     at org.eclipse.ui.PlatformUI.getWorkbench(PlatformUI.java:93)     at com.processorexpert.core.kpsdk.preferences.PEProjectExtenderSDK.projectLoadCompleted(PEProjectExtenderSDK.java:1335)     at com.processorexpert.core.ProjectPE.projectLoadCompleted(ProjectPE.java:6216)     at com.processorexpert.core.client.ProjectPEclient.loadProject(ProjectPEclient.java:2206)     at com.processorexpert.core.client.PEApplicationClient.openProject(PEApplicationClient.java:162)     at com.processorexpert.core.ProjectManager.getProject(ProjectManager.java:240)     at com.processorexpert.core.application.PExApplication.generateProject(PExApplication.java:144)     at com.processorexpert.core.application.PExApplication.run(PExApplication.java:83)     at com.processorexpert.core.application.PExApplication.start(PExApplication.java:55)     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:380)     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)     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) com.freescale.processorexpert.core: java.lang.IllegalStateException: Workbench has not been created yet. Project KDS3_DN2 cannot be opened ilg.gnuarmeclipse.managedbuild.cross.stop() ilg.gnuarmeclipse.core.stop() LateInitializer.added() org.eclipse.core.runtime.preferences.IEclipsePreferences$NodeChangeEvent[source=/default] org.eclipse.debug.core

 

The project continues to compile despite this error, but the end result is that several source files do not compile, so the linker fails.  Even if the linking step succeeded, I would be a little nervous due to this error message.

 

If I open the same project in KDS and build there, my code compiles and links without any errors.

 

Can anyone tell me how to fix or further debug this problem?  Thanks!

Outcomes