Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 335570

Summary: npe when running repo2runnable
Product: [Eclipse Project] Equinox Reporter: Kim Moir <kim.moir>
Component: p2Assignee: P2 Inbox <equinox.p2-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, pascal
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kim Moir CLA 2011-01-27 09:57:47 EST
I ran a test build with the I20110126-1800 bundles this morning and saw the following error.  The build is failing when trying to fetch the ecf bundles from the repository

BUILD FAILED...
/master-ecf/customTargets.xml:10: The following error occurred while executing this line:
/builds/N201101270937/org.eclipse.releng.basebuilder/plugins/org.eclipse.pde.build_3.6.100.v20110121-1730/scripts/genericTargets.xml:59: The following error occurred while executing this line:
/builds/N201101270937/src/fetch_master-ecf.xml:10: The following error occurred while executing this line:
/builds/N201101270937/src/fetch_master-ecf.xml:27: The following error occurred while executing this line:
/builds/N201101270937/src/fetch_master-ecf.xml:34: java.lang.NullPointerException

Here is line 34 in /builds/N201101270937/src/fetch_master-ecf.xml

  <p2.repo2runnable source="http://archive.eclipse.org/rt/ecf/integration/platform/v2010-09-06_07-22-05" destination="${transformedRepoLocation}">
                        <iu id="org.eclipse.ecf" version="3.1.0.v20100906-1425"/>
                        <iu id="org.eclipse.ecf.source" version="3.1.0.v20100906-1425"/>
                        <iu id="org.eclipse.ecf.filetransfer" 

There is NPE here in the .log

--- Nested Exception ---
java.lang.NullPointerException
        at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadIndexFile(AbstractRepositoryManager.java:719)
        at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:641)
        at org.eclipse.equinox.internal.p2.artifact.repository.ArtifactRepositoryManager.loadRepository(ArtifactRepositoryManager.java:100)
        at org.eclipse.equinox.p2.internal.repository.tools.AbstractApplication.addRepository(AbstractApplication.java:147)
        at org.eclipse.equinox.p2.internal.repository.tools.AbstractApplication.initializeRepos(AbstractApplication.java:116)
        at org.eclipse.equinox.p2.internal.repository.tools.tasks.Repo2RunnableTask.execute(Repo2RunnableTask.java:52)

The build runs fine with 3.7M4 bundles against the same ECF repo.
Comment 1 DJ Houghton CLA 2011-01-27 10:13:25 EST
According to the code, this means that the Transport service is not available. I believe this is registered by DS in the new org.eclipse.equinox.p2.transport.ecf bundle that Pascal added a few weeks ago. Does the configuration that you are running include this bundle?
Comment 2 Kim Moir CLA 2011-01-27 10:26:03 EST
ah...no, just added it and will try another build :-)
Comment 3 Kim Moir CLA 2011-01-27 10:34:45 EST
Okay, that was me. I should have started the osgi console and verified that bundle resolved before opening a bug.  p2 is awesome, how could I doubt it?
Comment 4 DJ Houghton CLA 2011-01-27 10:37:17 EST
Thanks, Kim. Tell your friends. Spread the love.