A Spoofax-based plugin cannot be deployed. Following the procedure at http://strategoxt.org/Spoofax/Tour#Plugin_deployment does not work. Reproducible in all current versions of Eclipse and Spoofax NIGHTLY.

Possibly related to https://yellowgrass.org/issue/Spoofax/140.

Submitted by Vlad Vergu on 16 January 2013 at 14:33

On 16 January 2013 at 14:34 Vlad Vergu tagged eclipse

On 16 January 2013 at 14:34 Vlad Vergu tagged major

On 16 January 2013 at 14:34 Vlad Vergu tagged build

On 16 January 2013 at 14:36 Vlad Vergu commented:

Even if one manages to successfully create an update site and install the product in a separate instance of Eclipse, after restarting Eclipse:

	org.osgi.framework.BundleException: Exception in org.strategoxt.imp.debug.core.Activator.stop() of bundle org.strategoxt.imp.debug.core.
		at org.eclipse.osgi.framework.internal.core.BundleContextImpl.stop(BundleContextImpl.java:791)
		at org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.java:510)
		at org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:565)
		at org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1161)
		at org.eclipse.osgi.framework.internal.core.StartLevelManager.decFWSL(StartLevelManager.java:595)
		at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:257)
		at org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLevelManager.java:215)
		at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.suspend(InternalSystemBundle.java:284)
		at org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:691)
		at org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:598)
		at org.eclipse.core.runtime.adaptor.EclipseStarter.shutdown(EclipseStarter.java:390)
		at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:198)
		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
		at java.lang.reflect.Method.invoke(Method.java:597)
		at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
		at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
		at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
	Caused by: java.lang.NullPointerException
		at org.strategoxt.imp.debug.core.Activator.stop(Activator.java:50)
		at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:771)
		at java.security.AccessController.doPrivileged(Native Method)
		at org.eclipse.osgi.framework.internal.core.BundleContextImpl.stop(BundleContextImpl.java:764)
		... 18 more
	Root exception:
	java.lang.NullPointerException
		at org.strategoxt.imp.debug.core.Activator.stop(Activator.java:50)
		at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:771)
		at java.security.AccessController.doPrivileged(Native Method)
		at org.eclipse.osgi.framework.internal.core.BundleContextImpl.stop(BundleContextImpl.java:764)
		at org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.java:510)
		at org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:565)
		at org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1161)
		at org.eclipse.osgi.framework.internal.core.StartLevelManager.decFWSL(StartLevelManager.java:595)
		at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:257)
		at org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLevelManager.java:215)
		at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.suspend(InternalSystemBundle.java:284)
		at org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:691)
		at org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:598)
		at org.eclipse.core.runtime.adaptor.EclipseStarter.shutdown(EclipseStarter.java:390)
		at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:198)
		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
		at java.lang.reflect.Method.invoke(Method.java:597)
		at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
		at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
		at org.eclipse.equinox.launcher.Main.run(Main.java:1410)

On 16 January 2013 at 15:47 Vlad Vergu commented:

Now works in latest nightly.


On 16 January 2013 at 15:47 Vlad Vergu closed this issue.

On 16 January 2013 at 16:13 Gabriƫl Konat commented:

If you get an error like:

C:\Spoofax\Workbenches\NBL\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature\assemble.org.eclipse.pde.container.feature.p2.xml:38: The following error occurred while executing this line:
C:\Spoofax\Workbenches\NBL\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature\assemble.org.eclipse.pde.container.feature.p2.xml:48: The following error occurred while executing this line:
C:\Spoofax\Workbenches\NBL\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature\assemble.org.eclipse.pde.container.feature.p2.xml:24: The following error occurred while executing this line:
C:\Spoofax\Workbenches\NBL\Entity\build.xml:309: The following error occurred while executing this line:
C:\Spoofax\Workbenches\NBL\Entity\build.xml:417: Problem: failed to create task or type apitooling.apigeneration
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.

it means you are missing some PDE tools. Install these from the Eclipse update site to remedy:

  • PDE/API Tools Environment Descriptions
  • PDE/API Tools Environment Descriptions CDC/Foundation 1.1
  • PDE/API Tools Environment Descriptions J2SE 16
  • PDE/API Tools Environment Descriptions OSGi minimum 12

Log in to post comments