Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 243400 - IWAT4039E NullPointerException - randomnly while headless junit execution
Summary: IWAT4039E NullPointerException - randomnly while headless junit execution
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P2 major (vote)
Target Milestone: ---   Edit
Assignee: Paul Slauenwhite CLA
QA Contact:
URL:
Whiteboard: closed471
Keywords:
Depends on: 290620
Blocks: 211751 215135
  Show dependency tree
 
Reported: 2008-08-07 07:18 EDT by Bobby CLA
Modified: 2016-05-05 10:28 EDT (History)
2 users (show)

See Also:


Attachments
Err_08072008_testauto.log (24.39 KB, application/octet-stream)
2008-08-07 07:18 EDT, Bobby CLA
no flags Details
Success_08072008_testauto.log (31.37 KB, application/octet-stream)
2008-08-07 07:43 EDT, Bobby CLA
no flags Details
Success_2_08072008_testauto.log (31.42 KB, application/octet-stream)
2008-08-07 07:45 EDT, Bobby CLA
no flags Details
Patch. (5.86 KB, patch)
2009-12-17 10:26 EST, Paul Slauenwhite CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bobby CLA 2008-08-07 07:18:54 EDT
Created attachment 109396 [details]
Err_08072008_testauto.log

Build ID: I20080617-2000

Steps To Reproduce:
1. Occurs while running junits in headless mode via TPTP Test automation framework ANT tasks
2. Refer this for our test setup
https://bugs.eclipse.org/bugs/show_bug.cgi?id=222382#c111
3. No external RAC used
4. Same script works at times, attaching two execution logs, ran within minutes apart (same machine, same setup)

Test Setup:
-----------
birt-report-framework-2_3_0.zip
dtp_1.6.0.zip
GEF-runtime-3.4.0.zip
org.eclipse.tptp.test.report.birt-TPTP-4.5.0.zip
tptp.runtime.allInOne.win32.win32.x86-TPTP-4.5.0.zip


More information:
[tptp:execution] Test 'org.eclipse.cosmos.dc.cmdbf.services.tests\junits\TestRegistrationInputTransformer.testsuite' started.
[tptp:execution] Preparing launch delegate...
[tptp:execution] Performing pre-launch check...
[tptp:execution] Performing final launch validation...
[tptp:execution] Initializing source locator...
[tptp:execution] Launching delegate...
[tptp:execution] org.eclipse.core.runtime.CoreException: IWAT4039E The Test Execution Harness reported the following problems: null
[tptp:execution] 	at org.eclipse.hyades.test.core.launch.delegates.AbstractLaunchConfigurationDelegate2.launch(AbstractLaunchConfigurationDelegate2.java:225)
[tptp:execution] 	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:764)
[tptp:execution] 	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:614)
[tptp:execution] 	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:607)
[tptp:execution] 	at org.eclipse.hyades.test.core.services.AbstractTestExecutionService.launch(AbstractTestExecutionService.java:822)
[tptp:execution] 	at org.eclipse.hyades.test.core.services.AbstractTestExecutionService.execute(AbstractTestExecutionService.java:592)
[tptp:execution] 	at org.eclipse.hyades.automation.server.AbstractService.execute(AbstractService.java:43)
[tptp:execution] 	at org.eclipse.hyades.automation.server.ServiceProxy$1.run(ServiceProxy.java:139)
[tptp:execution] 	at org.eclipse.hyades.automation.core.utils.ReusableThread.run(ReusableThread.java:131)
[tptp:execution] 	at java.lang.Thread.run(Thread.java:810)

BUILD FAILED
D:\COSMOS\TestAuto\testauto_setup.xml:49: The following error occurred while executing this line:
D:\COSMOS\TestAuto\testauto.xml:477: java.lang.NullPointerException
Comment 1 Bobby CLA 2008-08-07 07:43:23 EDT
Created attachment 109398 [details]
Success_08072008_testauto.log

Same machine, same setup.. this time execution completed fine! We are setting up an automated daily test execution for COSMOS, this behavior is unreliable.
Comment 2 Bobby CLA 2008-08-07 07:45:58 EDT
Created attachment 109399 [details]
Success_2_08072008_testauto.log

Executing the test script again, completed without errors, but for same build one of the test case reports result as inconclusive, which was pass in last run

Verdict for test result 'TestCMDBfDeregistrationOperation.execution' is 'inconclusive'.
Comment 3 Paul Slauenwhite CLA 2009-11-13 07:49:34 EST
When the user selects 'Run in headless mode' in the 'Program to run' section of the Workbench Location edtior, the TPTP JUnit test does not run correctly.
Comment 4 Paul Slauenwhite CLA 2009-12-16 16:35:33 EST
Test cases to cover this scenario will be delivered under https://bugs.eclipse.org/bugs/show_bug.cgi?id=272133 (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=272133#c13).
Comment 5 Paul Slauenwhite CLA 2009-12-17 09:48:07 EST
(In reply to comment #4)
> Test cases to cover this scenario will be delivered under
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=272133 (see
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=272133#c13).

See https://bugs.eclipse.org/bugs/show_bug.cgi?id=272133#c14.
Comment 6 Paul Slauenwhite CLA 2009-12-17 10:10:01 EST
(In reply to comment #3)
> When the user selects 'Run in headless mode' in the 'Program to run' section of
> the Workbench Location edtior, the TPTP JUnit test does not run correctly.

This is now working as designed.
Comment 7 Paul Slauenwhite CLA 2009-12-17 10:26:23 EST
Created attachment 154666 [details]
Patch.
Comment 8 Paul Slauenwhite CLA 2009-12-17 10:26:50 EST
Although the original symptom is not reproducible, a code review indicates that the org.eclipse.hyades.execution.harness.JavaExecutionDeploymentAdapter.deployFile(IFileManagerExtended, FileIdentifierList, FileIdentifierList, StringBuffer) method is throwing an java.io.IOException with a null message when transferring files using the AC's file transfer service, which makes problem determination impossible.  The original symptom is not reproducible most likely due to one or more fixed file transfer service defect(s) and https://bugs.eclipse.org/bugs/show_bug.cgi?id=290620.  The fix for this defect is to ensure a useful error message is reported when the TPTP JUnit/Plug-in test execution fails.

The attached patch checked in to CVS (HEAD).
Comment 9 Kathy Chan CLA 2010-11-18 18:47:43 EST
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since this enhancement/defect has been resolved and unverified for more than 1 year and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.