I picked up the Luna SR1 RC2 build this morning and I am seeing the following failure in Equinox when p2 director is called. The Eclipse IDE starts up without any apparent issues on the same install. This issue wasn’t there in RC1 and I am seeing this on two different build systems, so I am reasonably sure that this is not an issue on my end.
[java] An error has occurred. See the log filejava.lang.NullPointerException
[java]
[java] null.
[java] at org.eclipse.osgi.internal.framework.EquinoxConfiguration.<init>(EquinoxConfiguration.java:207)
[java] at org.eclipse.osgi.internal.framework.EquinoxContainer.<init>(EquinoxContainer.java:69)
[java] at org.eclipse.osgi.launch.Equinox.<init>(Equinox.java:31)
[java] at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:299)
[java] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[java] at java.lang.reflect.Method.invoke(Method.java:483)
[java] at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
[java] at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
[java] at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
[java] at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
[java] at org.eclipse.core.launcher.Main.main(Main.java:34)
Here is the launching instructions…
<java classname="org.eclipse.core.launcher.Main" fork="true" failonerror="true">
<classpath>
<fileset dir="${bootstrap.platform}/plugins">
<include name="**/org.eclipse.equinox.launcher_*.jar"/>
</fileset>
</classpath>
<arg line="-application org.eclipse.equinox.p2.director"/>
<arg line="-metadataRepository ${.repositories}"/>
<arg line="-artifactRepository ${.repositories}"/>
<arg line="-destination @{dest}"/>
<arg line="-installIU @{extensions}"/>
<arg line="-vmargs"/>
<arg line="-Declipse.p2.data.area=@{dest}/p2"/>
<arg line="-Declipse.p2.unsignedPolicy=allow"/>
<jvmarg line="-Xmx512m"/>
</java>