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

Bug 212792

Summary: When two Symptom Engine element is described in an order, the first is XPath engine and the second is the other engine, XPath rules included in the catalog are not analyzed.
Product: z_Archived Reporter: Praful Rajawat <prafulr>
Component: TPTP.monitoringAssignee: Alex Nan <apnan>
Status: CLOSED FIXED QA Contact:
Severity: critical    
Priority: P1 CC: labadie, rohit.shetty, slavescu
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: closed460
Attachments:
Description Flags
files
none
Patch for bug 212792
none
Patched xpath_analysis.jar none

Description Praful Rajawat CLA 2007-12-12 12:49:33 EST
Build ID: tptp.sdk-TPTP-4.4.0.3.zip

Steps To Reproduce:
Steps to Reproduce:
1. Import the cbe log (Attached)
1. Import a catalog to Log Analyzer ("MSGtest-mod.symptom" Attached)
2. Execute analysis

When two Symptom Engine element is described in an order, the first is XPath
engine and the second is the ACT engine just like described below, XPath rules
included in the catalog are not analyzed.

  <symptom:symptomEngine>
    <uuid>EDADD1F497420F608611A0401CFC11DB</uuid>
    <name>XPath rule engine</name>
  </symptom:symptomEngine>
  <symptom:symptomEngine>
    <uuid>EB1DDE4821426D48F7D0D0B02C9811DB</uuid>
    <name>IBM Correlation rule engine</name>
  </symptom:symptomEngine>


When the catalog includes no or one Symptom Engine, the analysis is executed
normally.
And when the catalog includes two Symptom Engine in another order, i.e. the
first is ACT engine and the second is XPath engine, the analysis is also
executed normally.


More information:
no byte code is generated if xpath engine is 1st in the list.
12/12/2007  11:03 AM                 0 xPathCache_byteCode_JVM_Version_1_5.dat
12/12/2007  11:03 AM                 0 xPathCache_entries_JVM_Version_1_5.idx

byte code is generated if xpath engine is 2st in the list.
12/12/2007  12:08 PM               654 xPathCache_byteCode_JVM_Version_1_5.dat
12/12/2007  12:08 PM                73 xPathCache_entries_JVM_Version_1_5.idx
Comment 1 Praful Rajawat CLA 2007-12-12 12:50:38 EST
Created attachment 85097 [details]
files
Comment 2 Alex Nan CLA 2007-12-13 22:40:37 EST
Created attachment 85242 [details]
Patch for bug 212792

Attaching code patch. Note that the patch contains also code that applies to bugzilla 210177, which waqs laready fixed but I had to merge the two patches.
Comment 3 Alex Nan CLA 2007-12-13 22:46:05 EST
Created attachment 85243 [details]
Patched xpath_analysis.jar

Attaching patched org.eclipse.hyades.sdb_4.4.0.3\xpath_analysis.jar. Note that the jar was build using 

java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2)
Classic VM (build 1.4.2, J2RE 1.4.2 IBM Windows 32 build cn142sr1a-20050209 (JIT
 enabled: jitc))
Comment 4 Alex Nan CLA 2007-12-13 22:46:52 EST
Please test and let me know.
Comment 5 Praful Rajawat CLA 2007-12-31 09:17:02 EST
Tested with this patch and its working as expected.

Rohit please add your test results with the your test case.
Thank you
Comment 6 Alex Nan CLA 2008-01-06 21:32:14 EST
Will check in the code in 4.5 i5 and mark the bug as fixed.
Comment 7 Alex Nan CLA 2008-01-09 01:49:30 EST
Fix and junit test to verify the fix have been checked in.
Comment 8 Paul Slauenwhite CLA 2009-06-30 10:25:02 EDT
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 the originator of this enhancement/defect has an inactive Bugzilla account 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.