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

Bug 357101

Summary: Tests throw NPE when executed on Windows
Product: z_Archived Reporter: Kaloyan Raev <kaloyan>
Component: LibraAssignee: Project Inbox <libra.warproducts-inbox>
Status: NEW --- QA Contact: Holger Staudacher <holger.staudacher>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Kaloyan Raev CLA 2011-09-08 10:44:56 EDT
This is reproducible only when I execute a local Maven build on my Windows system. The tests run successfully on hudson.eclipse.org, which is on Linux. 

The following two tests throw NPE:
- testCreateWebXml(org.eclipse.libra.warproducts.core.test.tests.InfrastructureCreatorTest)
- testCreateLaunchIni(org.eclipse.libra.warproducts.core.test.tests.InfrastructureCreatorTest)

The NPE stack trace is similar in both cases:
java.lang.NullPointerException
        at java.io.Reader.<init>(Reader.java:61)
        at java.io.InputStreamReader.<init>(InputStreamReader.java:55)
        at org.eclipse.libra.warproducts.core.test.tests.InfrastructureCreatorTest.readFile(InfrastructureCreatorTest.java:168)
        at org.eclipse.libra.warproducts.core.test.tests.InfrastructureCreatorTest.testCreateWebXml(InfrastructureCreatorTest.java:94)