This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 135259 - JBI Test driver incorrectly reports 5 tests as failing for onEvent test for BPEL SE
Summary: JBI Test driver incorrectly reports 5 tests as failing for onEvent test for B...
Status: REOPENED
Alias: None
Product: soa
Classification: Unclassified
Component: JBI Test Driver (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jun Qian
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-17 00:52 UTC by malkit
Modified: 2009-05-23 02:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
SOAP UI Screenshot - Request 1 (78.45 KB, image/png)
2008-05-17 00:57 UTC, malkit
Details
SOAP UI Screenshot - Request 2 (76.28 KB, image/png)
2008-05-17 00:57 UTC, malkit
Details
SOAP UI Screenshot - Request 3 (87.15 KB, image/png)
2008-05-17 00:57 UTC, malkit
Details
SOAP UI Project (22.58 KB, text/xml)
2008-05-17 00:58 UTC, malkit
Details

Note You need to log in before you can comment on or make changes to this bug.
Description malkit 2008-05-17 00:52:29 UTC
*** IMPORTANT NOTE: The tests noted in this issue are marked as development and will not be run as part of regular
driver runs. PLEASE DO NOT CLOSE THE ISSUE BEFORE ENABLING THESE TESTS AGAIN **

5 tests for onEvent driver tests are consistently failing. The exception thrown is shown below. I debugged and found
that from the BPEL side correct output is produced - i.e the messages sent out contain correct data. Somewhere
downstream the message might be getting corrupted.

The exception is coming while comparing the outputs in netbeans driver test module. I checked the Tonga reports and
could go as far back as Jan 29, 08 report and found same tests failing with same error, so this cannot be due to any of
the recent changes.

Also tested one of the test (basic_onEvent_ElseIfScope) with SOAP UI and found that correct output is being produced.
Since the correct output is produced by SOAP UI, there is not issue with bpelse or httpbc. This indicates issue in
netbeans driver test framework.

For the test basic_onEvent_ElseIfScope, three inputs are fed and three outputs are produced. Please note the copied log
is coming from netbeans, there is no error in the server log.

The failing tests are as follows. Note these are checked in tests and can be found at
https://open-jbi-components.dev.java.net/source/browse/open-jbi-components/driver-tests/bpelse/eventHandlers/onEventJBI/

basic_onEvent_ElseIfScope                           
basic_onEvent_ElseScope                             
basic_onEvent_EmptySequence                         
basic_onEvent_IfScope                     
basic_onEvent_ThrowFaults

The screenshot of the output from the soap ui for this test attached. Also, pasting below the output as copied from the
soap ui.



Exception from log

Replace '${HttpDefaultPort}' in WSDL soap location by '9080' defined in sun-http-binding.
java.io.IOException: Invalid token '?' found in document: Please use the text editor to resolve the issues...
    at org.netbeans.modules.xml.xdm.nodes.XMLSyntaxParser.parse(XMLSyntaxParser.java:264)
    at org.netbeans.modules.xml.xdm.XDMModel.prepareSync(XDMModel.java:167)
    at org.netbeans.modules.xml.xdm.XDMModel.sync(XDMModel.java:156)
    at org.netbeans.modules.xml.xdm.diff.XDMUtil.compareXML(XDMUtil.java:169)
    at org.netbeans.modules.xml.xdm.diff.XDMUtil.compareXML(XDMUtil.java:145)
    at org.netbeans.modules.compapp.catd.ConfiguredTest.testCompareXMLIdentical(ConfiguredTest.java:2726)
    at org.netbeans.modules.compapp.catd.ConfiguredTest.testCompareXMLIdentical(ConfiguredTest.java:2719)
    at org.netbeans.modules.compapp.catd.ConfiguredTest.checkExpectedOutput(ConfiguredTest.java:2229)
    at org.netbeans.modules.compapp.catd.ConfiguredTest.checkExpectedOutput(ConfiguredTest.java:2122)
    at org.netbeans.modules.compapp.catd.ConfiguredTest.testCorrelationSOAPRequest(ConfiguredTest.java:919)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at junit.framework.TestCase.runTest(TestCase.java:164)
    at junit.framework.TestCase.runBare(TestCase.java:130)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:120)
    at junit.framework.TestSuite.runTest(TestSuite.java:230)
    at junit.framework.TestSuite.run(TestSuite.java:225)
    at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:421)
    at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)
    at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:766)
 Failed.
Comment 1 malkit 2008-05-17 00:57:03 UTC
Created attachment 61515 [details]
SOAP UI Screenshot - Request 1
Comment 2 malkit 2008-05-17 00:57:28 UTC
Created attachment 61516 [details]
SOAP UI Screenshot - Request 2
Comment 3 malkit 2008-05-17 00:57:51 UTC
Created attachment 61517 [details]
SOAP UI Screenshot - Request 3
Comment 4 malkit 2008-05-17 00:58:19 UTC
Created attachment 61518 [details]
SOAP UI Project
Comment 5 malkit 2008-05-17 00:58:46 UTC
Attached SOAP UI Project also - test-soapui-project.xml
Comment 6 malkit 2008-05-19 19:55:02 UTC
Marking this issue as P2, as this has resulted in 5 Driver tests for onEvent (which represent around half of total test)
not to be run. Hence, need to be addressed with higher priority.
Comment 7 Sergey Lunegov 2008-12-10 15:30:01 UTC
Need evaluation from Venkat
Comment 8 Jun Qian 2009-03-26 22:29:51 UTC
All the test cases passed with the latest NetBeans 6.5.1 C/B and the runtime from GlassFishESB20090310 build.
Comment 9 fmartinez1 2009-05-07 23:32:20 UTC
I spoke with Malkit and the most recent test results on the 5 tests listed in this ticket (run on 5/4/09) show that 3 
tests are passing and 2 (basic_onEvent_IfScope, basic_onEvent_ThrowFaults) are failing. Re-opening this ticket pending 
a decision for what action to take regarding these test results.