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

Bug 313393

Summary: npe with bad input file
Product: [Technology] CBI Reporter: David Williams <david_williams>
Component: CBI p2 Repository AggregatorAssignee: Project Inbox <b3.aggregator-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: thomas
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description David Williams CLA 2010-05-18 12:39:06 EDT
During some quick fix editing, I accidentally left in a 
<features href="jetty.build#//@features.2"/>
instead of commenting it out, and should have been commented out, 
since the jetty 'contribution' had been commented out, of helios.build file. 

When I tried to run, I simply got a NPE during the "transform" of old model to new. 

Seems that shouldn't happen, and ideally a more meaningful message printed. 





     [exec] Starting application: 2449
     [exec] The build model file is obsolete, using the default transformation
     [exec] Build failed! Exception was org.eclipse.core.runtime.CoreException: java.lang.NullPointerException
     [exec] Caused by: java.lang.NullPointerException: 
     [exec] java.lang.NullPointerException
     [exec] Caused by: Eclipse:
     [exec] No exit data available.
     [exec] Eclipse:
     [exec] Java was started but returned exit code=13
Comment 1 David Williams CLA 2010-05-18 13:15:29 EDT
BTW, with a very similar error in input, I get a more reasonable message ... 

So, the NPE may occur when at "end of list" or "two missing" or something odd. 

Sorry I can't provide complete input ... but the files have already changed (heavy edit day). 


     [exec] The build model file is obsolete, using the default transformation
     [exec] Build failed! Exception was org.eclipse.core.runtime.CoreException: java.lang.RuntimeException: Category EclipseRT Target Platform Components references feature org.eclipse.jetty.sdk which belongs to a missing contribution Jetty
     [exec] Caused by: java.lang.RuntimeException: Category EclipseRT Target Platform Components references feature org.eclipse.jetty.sdk which belongs to a missing contribution Jetty
     [exec] java.lang.RuntimeException: Category EclipseRT Target Platform Components references feature org.eclipse.jetty.sdk which belongs to a missing contribution Jetty
Comment 2 Thomas Hallgren CLA 2011-07-09 05:46:38 EDT
I'm not able to provoke the NPE with the new model so I'm closing this. Feel free to reopen if it happens again.

In general I think that editing using a text-editor is hazardous given the nature of the edited material.
Comment 3 David Williams CLA 2016-09-16 15:58:38 EDT
[Bookkeeping change only. Moving bugs to the new "home" of aggregator, CBI.
No change to assignee for resolved and verified bugs.]