Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357101 - Tests throw NPE when executed on Windows
Summary: Tests throw NPE when executed on Windows
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Libra (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Holger Staudacher CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-08 10:44 EDT by Kaloyan Raev CLA
Modified: 2022-02-24 11:24 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)