Community
Participate
Working Groups
Not having used the director application before when I attempted to test it using zipped repositories I ran into two issues: 1) If -profile is specified but -destination is not a NullPointerException occurs, but is logged. updateRoamingProperties(Application.java:534) 2) If -destination is specified as a URI a FileNotFoundException occurs and the application fails with "No exit data available".
I did some work in the publisher for trying to detect invalid configurations (-publishArtifacts without an artifact repo). We should probably do something similar in the director and print user friendly usage message.
The NPE when destination is not set in updateRoamingProperties() is failing the Galileo build. What worked fine as a command line to install features into the base now fails after migration from M5 to M6. Below is the command being used and error: [exec] install.feature: [exec] [exec] !SESSION 2009-03-16 13:32:37.714 ----------------------------------------------- [exec] [exec] eclipse.buildId=I20090313-0100 [exec] [exec] java.fullversion=J2RE 1.5.0 IBM J9 2.3 Linux ppc-32 j9vmxp3223-20071007 (JIT enabled) [exec] [exec] J9VM - 20071004_14218_bHdSMR [exec] [exec] JIT - 20070820_1846ifx1_r8 [exec] [exec] GC - 200708_10 [exec] [exec] BootLoader constants: OS=linux, ARCH=ppc, WS=gtk, NL=en_US [exec] [exec] Framework arguments: -application org.eclipse.equinox.p2.director.app.application -installIU org.eclipse.emf.sdk.feature.group -version 2.5.0.v200903101800 -profileProperties org.eclipse.update.install.features=true -metadataRepository http://download.eclipse.org/modeling/emf/updates/interim/ -artifactRepository http://download.eclipse.org/modeling/emf/updates/interim/ [exec] [exec] Command-line arguments: -os linux -ws gtk -arch ppc -application org.eclipse.equinox.p2.director.app.application -consoleLog -installIU org.eclipse.emf.sdk.feature.group -version 2.5.0.v200903101800 -profileProperties org.eclipse.update.install.features=true -metadataRepository http://download.eclipse.org/modeling/emf/updates/interim/ -artifactRepository http://download.eclipse.org/modeling/emf/updates/interim/ [exec] [exec] [exec] [exec] !ENTRY org.eclipse.osgi 4 0 2009-03-16 13:32:51.980 [exec] [exec] !MESSAGE Application error [exec] [exec] !STACK 1 [exec] [exec] java.lang.NullPointerException [exec] [exec] at org.eclipse.equinox.internal.p2.director.app.Application.updateRoamingProperties(Application.java:534) [exec] [exec] at org.eclipse.equinox.internal.p2.director.app.Application.run(Application.java:403) [exec] [exec] at org.eclipse.equinox.internal.p2.director.app.Application.start(Application.java:509) [exec] [exec] at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194) [exec] [exec] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) [exec] [exec] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) [exec] [exec] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368) [exec] [exec] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) [exec] [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [exec] [exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) [exec] [exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [exec] [exec] at java.lang.reflect.Method.invoke(Method.java:618) [exec] [exec] at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:556) [exec] [exec] at org.eclipse.equinox.launcher.Main.basicRun(Main.java:511) [exec] [exec] at org.eclipse.equinox.launcher.Main.run(Main.java:1284) [exec] [exec] at org.eclipse.equinox.launcher.Main.main(Main.java:1260) [exec] [exec] [exec] [exec] !ENTRY org.eclipse.osgi 2 0 2009-03-16 13:32:52.046 [exec] [exec] !MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists: [exec] [exec] !SUBENTRY 1 org.eclipse.osgi 2 0 2009-03-16 13:32:52.047 [exec] [exec] !MESSAGE Bundle org.eclipse.jdt.apt.pluggable.core_1.0.200.v20090309-0340 [99] was not resolved. [exec] [exec] !SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-03-16 13:32:52.047 [exec] [exec] !MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.tool_0.0.0. [exec] [exec] !SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-03-16 13:32:52.047 [exec] [exec] !MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.apt.dispatch_0.0.0. [exec] [exec] !SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-03-16 13:32:52.048 [exec] [exec] !MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.apt.model_0.0.0. [exec] [exec] !SUBENTRY 2 org.eclipse.jdt.apt.pluggable.core 2 0 2009-03-16 13:32:52.048 [exec] [exec] !MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.apt.util_0.0.0. [exec] [exec] !SUBENTRY 1 org.eclipse.osgi 2 0 2009-03-16 13:32:52.048 [exec] [exec] !MESSAGE Bundle org.eclipse.jdt.compiler.apt_1.0.200.v20090309-0340 [101] was not resolved. [exec] [exec] !SUBENTRY 2 org.eclipse.jdt.compiler.apt 2 0 2009-03-16 13:32:52.048 [exec] [exec] !MESSAGE Missing imported package org.eclipse.jdt.internal.compiler.tool_0.0.0. [exec] [exec] !SUBENTRY 1 org.eclipse.osgi 2 0 2009-03-16 13:32:52.049 [exec] [exec] !MESSAGE Bundle org.eclipse.jdt.compiler.tool_1.0.100.v_944 [102] was not resolved. [exec] [exec] !SUBENTRY 2 org.eclipse.jdt.compiler.tool 2 0 2009-03-16 13:32:52.049 [exec] [exec] !MESSAGE Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.6 [exec] [exec] Eclipse: [exec] [exec] An error has occurred. See the log file [exec] [exec] /opt/users/hudsonbuild/workspace/.metadata/.log. [exec] [exec] Result: 13
*** Bug 269016 has been marked as a duplicate of this bug. ***
I have released a fix for problem 1 in comment #0. (the NPE) I have also confirmed that the work-around for M6 is to specify "-destination <path>" on the command-line.
I have released a fix for problem 2 in comment #0. (unable to start if the -dest arg is a URI) Closing.
*** Bug 269519 has been marked as a duplicate of this bug. ***