Bug 268185 - Director Application destination problems
Summary: Director Application destination problems
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.5 M7   Edit
Assignee: DJ Houghton CLA
QA Contact:
URL:
Whiteboard:
Keywords: polish
: 269016 269519 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-03-11 14:31 EDT by Matthew Piggott CLA
Modified: 2009-03-20 10:33 EDT (History)
9 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Piggott CLA 2009-03-11 14:31:39 EDT
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".
Comment 1 Ian Bull CLA 2009-03-11 16:27:54 EDT
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.
Comment 2 Richard Gronback CLA 2009-03-16 13:34:45 EDT
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
Comment 3 DJ Houghton CLA 2009-03-17 11:46:09 EDT
*** Bug 269016 has been marked as a duplicate of this bug. ***
Comment 4 DJ Houghton CLA 2009-03-17 17:37:30 EDT
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.

Comment 5 DJ Houghton CLA 2009-03-19 17:29:52 EDT
I have released a fix for problem 2 in comment #0. (unable to start if the -dest arg is a URI) 

Closing.
Comment 6 Pascal Rapicault CLA 2009-03-20 10:33:28 EDT
*** Bug 269519 has been marked as a duplicate of this bug. ***