Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318136 - Aggreagtor headless/UI fails with NPE when having categories
Summary: Aggreagtor headless/UI fails with NPE when having categories
Status: RESOLVED FIXED
Alias: None
Product: CBI
Classification: Technology
Component: CBI p2 Repository Aggregator (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Filip Hrbek CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-28 02:33 EDT by David Samuelsson CLA
Modified: 2016-09-16 15:59 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Samuelsson CLA 2010-06-28 02:33:15 EDT
Aggreagator headless org.eclipse.b3.cli.product 0.1.0.r01050 (latest prompted build from hudson that i could find)

Aggregator  UI   b3 Aggregator Engine (Incubation)	0.1.0.r01087	org.eclipse.b3.aggregator.engine.feature.feature.group

buildmodel with explicitly only takes certain categories from Helios release, verifies with win32,win32,x86.

first i tried via the UI to which fails with an NPE then with the headless product which also fails with an NPE.

I provisioned the product via the eclipse director over an http share(latest) , yes..there is no version number on this! quite annoying to report any defects or keep track of ;-)

install went fine via director.

tried to mirror the helios release from one mirror then from download.eclipse.org.

C:\WS\Eclipse_director\agg>b3 aggregate --stacktrace --buildModel Z:\proj_zv_vobs_main\doc\Eclipse\VE_UpdateSite_projekt\Helios\Helios_3.6.0\se.rsv.zz.org.eclipse.helios.mirror.b3aggr
Loading all repositories
2010-jun-28 08:13:59 org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: ntlm authentication scheme selected
2010-jun-28 08:13:59 org.apache.commons.httpclient.HttpMethodDirector processProxyAuthChallenge
INFO: No credentials available for NTLM <any realm>@surf.internal.se:8080
Starting generation of composite repository
Adding child meta-data repository http://download.eclipse.org/releases/helios
Done. Took 0 seconds
Starting generation of verification feature
Build failed! Exception was java.lang.NullPointerException:
java.lang.NullPointerException
        at org.eclipse.b3.aggregator.engine.VerificationFeatureAction.addRequirementFor(VerificationFeatureAction.java:374)
        at org.eclipse.b3.aggregator.engine.VerificationFeatureAction.addRequirementFor(VerificationFeatureAction.java:289)
        at org.eclipse.b3.aggregator.engine.VerificationFeatureAction.addCategoryContent(VerificationFeatureAction.java:247)
        at org.eclipse.b3.aggregator.engine.VerificationFeatureAction.perform(VerificationFeatureAction.java:155)
        at org.eclipse.equinox.p2.publisher.Publisher$ArtifactProcess.run(Publisher.java:207)
        at org.eclipse.equinox.p2.publisher.Publisher.publish(Publisher.java:237)
        at org.eclipse.b3.aggregator.engine.VerificationFeatureGenerator.run(VerificationFeatureGenerator.java:58)
        at org.eclipse.b3.aggregator.engine.Builder.runVerificationFeatureGenerator(Builder.java:1096)
        at org.eclipse.b3.aggregator.engine.Builder.run(Builder.java:605)
        at org.eclipse.b3.aggregator.engine.Builder.run(Builder.java:822)
        at org.eclipse.b3.cli.AbstractCommand.run(AbstractCommand.java:119)
        at org.eclipse.b3.cli.Headless.run(Headless.java:130)
        at org.eclipse.b3.cli.Headless.start(Headless.java:197)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1383)

I then removed my categories in the UI, then i could aggregate again both in UI and in headless.

This worked in the "old" buckminster aggregator.
Comment 1 Filip Hrbek CLA 2010-06-28 08:31:37 EDT
Could you provide an sample of your b3aggr file? I tried to do something similar and it worked fine for me which means that there must be a difference that I can't figure out.
Comment 2 David Samuelsson CLA 2010-06-29 01:34:19 EDT
here ya go:

<?xml version="1.0" encoding="ASCII"?>
<aggregator:Aggregator xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:aggregator="http://www.eclipse.org/b3/2010/aggregator/1.0.0" description="Helios mirror" buildmaster="//@contacts[email='david.samuelsson@skatteverket.se']" label="Helios mirror" buildRoot="Y:\VE_Update_Site_libraries\lib\Hudson_aggregated\Helios\se.rsv.zz.org.eclipse.helios.mirror.b3aggr">
  <configurations/>
  <contributions description="Helios mirror" label="Helios mirror" contacts="//@contacts[email='david.samuelsson@skatteverket.se']">
    <repositories location="http://download.eclipse.org/releases/helios/" categoryPrefix="">
      <products name="org.eclipse.sdk.ide"/>
      <categories name="Business Intelligence, Reporting and Charting"/>
      <categories name="Collaboration"/>
      <categories name="Database Development"/>
      <categories name="General Purpose Tools"/>
      <categories name="Modeling"/>
      <categories name="Programming Languages"/>
      <categories name="Web, XML, and Java EE Development"/>
      <categories name="Test and Performance"/>
      <categories name="SOA Development"/>
    </repositories>
  </contributions>
  <contacts name="David Samuelsson" email="david.samuelsson@skatteverket.se"/>
</aggregator:Aggregator>

This fails with an NPE for me. Only that comes to mind is that the eclipse i am using is an RC3 upgraded to the final helios release.

java.lang.NullPointerException
at org.eclipse.b3.aggregator.engine.VerificationFeatureAction.addRequirementFor(VerificationFeatureAction.java:374)
at org.eclipse.b3.aggregator.engine.VerificationFeatureAction.addRequirementFor(VerificationFeatureAction.java:289)
at org.eclipse.b3.aggregator.engine.VerificationFeatureAction.addCategoryContent(VerificationFeatureAction.java:247)
at org.eclipse.b3.aggregator.engine.VerificationFeatureAction.perform(VerificationFeatureAction.java:155)
at org.eclipse.equinox.p2.publisher.Publisher$ArtifactProcess.run(Publisher.java:207)
at org.eclipse.equinox.p2.publisher.Publisher.publish(Publisher.java:237)
at org.eclipse.b3.aggregator.engine.VerificationFeatureGenerator.run(VerificationFeatureGenerator.java:58)
at org.eclipse.b3.aggregator.engine.Builder.runVerificationFeatureGenerator(Builder.java:1096)
at org.eclipse.b3.aggregator.engine.Builder.run(Builder.java:605)
at org.eclipse.b3.aggregator.presentation.AggregatorActionBarContributor$BuildRepoAction$1.run(AggregatorActionBarContributor.java:267)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 4 David Williams CLA 2016-09-16 15:59:00 EDT
[Bookkeeping change only. Moving bugs to the new "home" of aggregator, CBI.
No change to assignee for resolved and verified bugs.]