Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 303622 - NPE during CategoryPublisher
Summary: NPE during CategoryPublisher
Status: RESOLVED DUPLICATE of bug 301262
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: P2 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-23 09:51 EST by Michael Sacarny CLA
Modified: 2010-02-23 11:10 EST (History)
0 users

See Also:


Attachments
sample repos and build scripts (85.19 KB, application/zip)
2010-02-23 09:54 EST, Michael Sacarny CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Sacarny CLA 2010-02-23 09:51:59 EST
Build Identifier: I20100129-1300

NPE occurs ~20% of time while running CategoryPublisher: 
java.lang.NullPointerException
at org.eclipse.equinox.p2.publisher.Publisher.loadMetadataRepository(Publisher.java:82)
at   org.eclipse.equinox.p2.publisher.Publisher.createMetadataRepository(Publisher.java:47)
at org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.initializeRepositories(AbstractPublisherApplication.java:94)
at org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.initialize(AbstractPublisherApplication.java:80)
at org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.run(AbstractPublisherApplication.java:271)
at org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.run(AbstractPublisherApplication.java:249)
at org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.start(AbstractPublisherApplication.java:301)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
at org.eclipse.equinox.internal.app.AnyThreadAppLauncher.run(AnyThreadAppLauncher.java:26)
at java.lang.Thread.run(Unknown Source)

I will attach sample repositories, bat file to merge, and ant file to run categorypublisher.

Reproducible: Sometimes

Steps to Reproduce:
1.Create sample repos without category info (I attach two)
2.Run merge.bat to combine repos into one repo
3.Run Ant on build.xml to perform CategoryPublisher
4.Build fails about 20% of time due to NPE.
Comment 1 Michael Sacarny CLA 2010-02-23 09:54:04 EST
Created attachment 159927 [details]
sample repos and build scripts

This contains sample repos and build scripts demonstrating NPE during CategtoryPublisher.
Comment 2 John Arthorne CLA 2010-02-23 11:10:11 EST
Dup.

*** This bug has been marked as a duplicate of bug 301262 ***