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

Bug 333874

Summary: [testing] Spurious NPE during testOpenFileFromTarArchive on hudson.eclipse.org
Product: [Tools] Target Management Reporter: Martin Oberhuber <mober.at+eclipse>
Component: RSEAssignee: Xuan Chen <xuanchen>
Status: RESOLVED FIXED QA Contact: Martin Oberhuber <mober.at+eclipse>
Severity: normal    
Priority: P3    
Version: 3.3   
Target Milestone: 3.3 M6   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:
Attachments:
Description Flags
Patch: Add more logging to track failure.
none
Patch to remove this testcase.
none
Remove this testcase totally none

Description Martin Oberhuber CLA 2011-01-10 10:05:08 EST
Seen during the N-build on hudson.eclipse.org on 10-Jan-2011:
https://hudson.eclipse.org/hudson/job/cbi-tm-3.2-nightly/188/
The error does not always happen, might be timing dependent.

junit.framework.AssertionFailedError: null
	at org.eclipse.rse.tests.subsystems.files.FileServiceArchiveBaseTest.testOpenFileFromTarArchive(FileServiceArchiveBaseTest.java:925)
	at org.eclipse.rse.tests.core.RSECoreTestCase.runTest(RSECoreTestCase.java:425)
Comment 1 Martin Oberhuber CLA 2011-01-10 11:18:52 EST
FWIW, this happened during the

   FileServiceTgzArchiveTest.testOpenFileFromTarArchive

test, and it also occurred on the Jan 6 Hudson build (but not on Jan 7).
Comment 2 Martin Oberhuber CLA 2011-01-12 12:33:57 EST
Xuan can you please look at this as just discussed in the monthly meeting?
Comment 3 Xuan Chen CLA 2011-01-14 11:35:30 EST
I cannot reproduce it using my development driver.

I will probably add more messages to help narrow down the failure.
Comment 4 Xuan Chen CLA 2011-01-27 09:52:32 EST
Created attachment 187733 [details]
Patch: Add more logging to track failure.
Comment 5 Martin Oberhuber CLA 2011-02-07 10:26:45 EST
As of 3.3M5, Hudson shows an AssertionFailed instead of the NPE:

https://hudson.eclipse.org/hudson/job/cbi-tm-3.2-nightly/211/testReport/junit/org.eclipse.rse.tests.subsystems.files/FileServiceTgzArchiveTest/testOpenFileFromTarArchive/

Error Message

difference: c is: 116 but d is: 104  a so far is:  but b so far is:
Comment 6 Xuan Chen CLA 2011-03-21 10:33:02 EDT
Created attachment 191615 [details]
Patch to remove this testcase.
Comment 7 Xuan Chen CLA 2011-03-21 10:34:35 EDT
I committed my fix into cvs.
Comment 8 Xuan Chen CLA 2011-03-21 10:34:58 EDT
It is resolved now.
Comment 9 Xuan Chen CLA 2011-03-21 15:46:47 EDT
Created attachment 191642 [details]
Remove this testcase totally