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

Bug 192730

Summary: Platform.Execution.ProbekitBCI.Linux_IA32 and TI EM64T testcase failed
Product: z_Archived Reporter: Cindy Jin <jx_china>
Component: TPTPAssignee: Raheel Ashraf <rashraf>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P1 CC: jkubasta, rashraf
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: closed471

Description Cindy Jin CLA 2007-06-14 14:09:28 EDT
Driver: TPTP4.4.0-200706070100
EMF:2.3
Agent controller: 200706070100, ibmjdk1.4.2
workbranch: ibmjdk1.4.2

1.TestCase catch is failed:
*************************************
Expect results:
[CodeFlow] Finally in Conditions()
[CodeFlow] Exception will be thrown
com/sample/test/CodeFlow.Exceptions CAUGHT  class java.lang.Exception msg: Test exception
[CodeFlow] Exception handled
[CodeFlow] java.lang.Exception: Test exception
[CodeFlow] This time we won't catch it
com/sample/test/CodeFlow.Exceptions CAUGHT  class java.lang.Exception msg: Test Exception
[CodeFlow] Finally in Exceptions()
com/sample/test/CodeFlow.main CAUGHT  class java.lang.Exception msg: Test Exception
[CodeFlow] Caught exception in main
[CodeFlow] Wow, that's a lot of arguments!

Test result:
[CodeFlow] Finally in Conditions()

*************************************
2.TestCase SystemProperty is failed(run it manually)

Expect results:
[CodeFlow] Finally in Conditions()
[CodeFlow] Exception will be thrown
[CodeFlow] Exception handled
[CodeFlow] java.lang.Exception: Test exception
[CodeFlow] This time we won't catch it
[CodeFlow] Finally in Exceptions()
[CodeFlow] Caught exception in main
Found [Hello!] in com/sample/test/CodeFlow.manyargs (arg[8])
Probe Exception:java.lang.Exception: Stack Dump

Ran it the first time, test result:
Probe Exception:java.lang.NullPointerException

Run it the second time, test result:
Probe Exception:java.lang.NullPointerException
java.lang.NullPointerException
	at java.lang.String.compareTo(String.java:1163)
	at SystemProperty_probe$Probe_0._beforeCall(SystemProperty_probe.java:26)
	at com.sample.test.CodeFlow.main(CodeFlow.java:99)
[CodeFlow] Finally in Conditions()
[CodeFlow] Exception will be thrown
[CodeFlow] Exception handled
[CodeFlow] java.lang.Exception: Test exception
[CodeFlow] This time we won't catch it
[CodeFlow] Finally in Exceptions()
[CodeFlow] Caught exception in main
Probe Exception:java.lang.NullPointerException
java.lang.NullPointerException
	at java.lang.String.compareTo(String.java:1163)
	at SystemProperty_probe$Probe_0._beforeCall(SystemProperty_probe.java:26)
	at com.sample.test.CodeFlow.main(CodeFlow.java:118)
[CodeFlow] Wow, that's a lot of arguments!
Comment 1 Valentina Popescu CLA 2007-06-26 15:00:00 EDT
update target to 4.4.1
Comment 2 Liz Dancy CLA 2007-07-11 15:15:30 EDT
I notice that the testcase 'catch' also fails with the same result as below for the TI case on remote Windows EM64T. The rest pass. This test cases passes when run locally on Windows XP.

Reassigning to myself for further investigation.
Comment 3 jkubasta CLA 2008-01-09 08:44:27 EST
Kendric, would you please see if you can fix this?
Comment 4 Kendric Wang CLA 2008-05-06 12:19:22 EDT
**Update on the two problems reported above**
Using 4.5i7 Driver: TPTP-4.5.0-200805011405

1. I got the same problem with the "Catch" testcase when running on Linux IA32 with TI agent; However, did not see this problem on Linux IA32 with PI agent nor on Win EM64T with TI agent (as initially reported).

2. The "SystemProperty" testcase passed successfully on all platform and configurations for me.
Comment 5 Kendric Wang CLA 2008-05-06 12:25:20 EDT
During 4.5i7 testing, after updating and running the probekit testsuites, I
received failures with the following testcases:


1. ** Platform.Execution.ProbeKit.JVMTI (Win XP, Local) ** 
"Everything" testcase fails (See #187064)

2. ** Platform.Execution.Probekit.JVMTI.Linuxia32 **
"Catch" - same as reported above
"Everything"
"ObjectCounter" - The java class is not found:  com.sample.test.MainClass
"Classpath" - The java class is not found:  com.sample.test.MainClass

3. ** Platform.Execution.Probekit.JVMTI.EM64T **
"Everything"
"Classpath" - Exception in thread "main"

4. ** Platform.Execution.ProbekitBCI.Windows_IA32 **
"Everything"
"MultipleProbes" 
- missing 3 lines of 
Hit com/sample/test/ClassB.privateFunctionCaller methodNumber: 3

5. ** Platform.Execution.ProbekitBCI.Linux_IA32 **
"Everything"
"MultipleProbes"
- missing 1 line of 
Hit com/sample/test/ClassB.privateFunctionCaller methodNumber: 3

"Classpath"
Exception in thread "main" java.lang.NoClassDefFoundError:
com/sample/test/ClassA
        at ClasspathProbe_probe$Probe_0.<clinit>(ClasspathProbe_probe.java:10)
        at com.sample.test.MainClass.main(MainClass.java)
Comment 6 jkubasta CLA 2008-05-23 09:07:54 EDT
Deferral to future with PMC approval
Comment 7 Kendric Wang CLA 2008-06-03 11:07:10 EDT
When I ran these testcases locally on linux ia32 and em64t, instead of remotely, I did not observe the problems reported above. Reassigning to component owner for further investigation.
Comment 8 Raheel Ashraf CLA 2008-11-19 12:11:29 EST

*** This bug has been marked as a duplicate of bug 228731 ***
Comment 9 Kathy Chan CLA 2010-11-18 18:51:48 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.