Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 901281 (JBPAPP6-1741)

Summary: Failures of JBWS1702TestCase testInheritanceBare on IBM JDK
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Rostislav Svoboda <rsvoboda>
Component: Web ServicesAssignee: Alessio Soldano <asoldano>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0.1CC: ema, rsvoboda
Target Milestone: ER3   
Target Release: EAP 6.1.0   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBPAPP6-1741
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
RHEL, IBM JDK 7
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
TEST-org.jboss.test.ws.jaxws.jbws1702.JBWS1702TestCase.xml none

Description Rostislav Svoboda 2012-12-20 09:34:17 UTC
project_key: JBPAPP6

During pre-certification of EAP for RHEL 6.4 I noticed instabilities of JBWS1702TestCase testInheritanceBare on IBM JDK 7 (SR3).
I was able to hit this issue even on RHEL 5.8 and RHEL 6.3 with IBM JDK 7 (SR3). But the test failures are random and always on testInheritanceBare. IBM JDK 7 is really tricky.

{code}
Unexpected element {http://jbws1702.jaxws.ws.test.jboss.org/}getClassCResponse found.
   Expected {http://jbws1702.jaxws.ws.test.jboss.org/}getClassCAsClassBResponse.
{code}

Jenkins: https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/EAP6/view/EAP6-WS/job/eap-60-jbossws-testsuite-rhel-ibm-check/
3 different sets of failed nodes - #2+#4, #3+#6, #5

Beaker RHEL 6.3:
4 GB RAM, 4 cores (Intel Xeon E5504)
Linux XXX.redhat.com 2.6.32-279.el6.x86_64 #1 SMP Wed Jun 13 18:24:36 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux
~30% of runs failed, xml report attached

Beaker RHEL 5.8:
2 GB RAM, 4 cores (Intel Xeon unknown version)
Linux YYY.redhat.com 2.6.18-308.el5 #1 SMP Fri Jan 27 17:17:51 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
The same as for RHEL 6, ~30% of runs failed.

Fedora 17:
The same IBM JDK (ibm-java-x86_64-sdk-7.0-3.0.bin) installed as on Beaker RHEL machines, but wasn't able to hit the issue in 5 runs.

JVM info:
{code}
java version "1.7.0"
Java(TM) SE Runtime Environment (build pxa6470sr3-20121025_01(SR3))
IBM J9 VM (build 2.6, JRE 1.7.0 Linux amd64-64 20121024_126071 (JIT enabled, AOT enabled)
J9VM - R26_Java726_SR3_20121024_1635_B126071
JIT  - r11.b02_20120924_26343a
GC   - R26_Java726_SR3_20121024_1635_B126071
J9CL - 20121024_126071)
JCL - 20121019_01 based on Oracle 7u6-b17
{code}

Comment 1 Rostislav Svoboda 2012-12-20 09:35:32 UTC
Attachment: Added: TEST-org.jboss.test.ws.jaxws.jbws1702.JBWS1702TestCase.xml


Comment 2 Alessio Soldano 2013-01-11 10:31:12 UTC
Link: Added: This issue is related to JBPAPP-10560


Comment 4 Jim Ma 2013-03-19 04:46:39 UTC
Fixed in revision 17397. 
-----------------------------------------------------------------------------
Author: jim.ma
Date: 2013-03-19 00:43:20 -0400 (Tue, 19 Mar 2013)
New Revision: 17397

Modified:
   shared-testsuite/branches/jbossws-shared-testsuite-4.1.x/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws1702/JBWS1702TestCase.java
   shared-testsuite/branches/jbossws-shared-testsuite-4.1.x/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws1702/SampleWSBareSEI.java
Log:
[BZ-901281]:Fix the test failur on IBM JDK

Modified: shared-testsuite/branches/jbossws-shared-testsuite-4.1.x/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws1702/JBWS1702TestCase.java
===================================================================
--- shared-testsuite/branches/jbossws-shared-testsuite-4.1.x/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws1702/JBWS1702TestCase.java	2013-03-18 17:57:49 UTC (rev 17396)
+++ shared-testsuite/branches/jbossws-shared-testsuite-4.1.x/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws1702/JBWS1702TestCase.java	2013-03-19 04:43:20 UTC (rev 17397)
@@ -24,6 +24,7 @@
 import java.net.URL;
 
 import javax.xml.namespace.QName;
+import javax.xml.ws.BindingProvider;
 import javax.xml.ws.Service;
 
 import junit.framework.Test;
@@ -64,6 +65,9 @@
       Service service = Service.create(wsdlURL, serviceName);
 
       SampleWSBareSEI port = service.getPort(SampleWSBareSEI.class);
+      BindingProvider bp = (BindingProvider)port;
+      bp.getRequestContext().put(BindingProvider.SOAPACTION_URI_PROPERTY, "getClassCAsClassB");
+      bp.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, "http://localhost:9090/jbws1702/SampleWSWithDocument_Bare");
       ResponseWrapperB wrapper = port.getClassCAsClassB();
       ClassB b = wrapper.getData();
       assertTrue("Should be an instance of ClassC, but was " + b, (b instanceof ClassC));

Modified: shared-testsuite/branches/jbossws-shared-testsuite-4.1.x/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws1702/SampleWSBareSEI.java
===================================================================
--- shared-testsuite/branches/jbossws-shared-testsuite-4.1.x/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws1702/SampleWSBareSEI.java	2013-03-18 17:57:49 UTC (rev 17396)
+++ shared-testsuite/branches/jbossws-shared-testsuite-4.1.x/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws1702/SampleWSBareSEI.java	2013-03-19 04:43:20 UTC (rev 17397)
@@ -39,7 +39,8 @@
 )
 public interface SampleWSBareSEI
 {
+   @WebMethod(action="getClassCAsClassB")
    ResponseWrapperB getClassCAsClassB();
-
+   @WebMethod(action="getClassC")
    ResponseWrapperC getClassC();
 }

Comment 5 Rostislav Svoboda 2013-03-19 07:42:17 UTC
Jim, can you share some details about changes, mainly motivation for adding BindingProvider properties? Tank you.

Comment 7 Rostislav Svoboda 2013-03-26 15:38:49 UTC
Verified on EAP 6.1.0 ER3 with jbossws-cxf-4.1.3.Final TS and jbossws-shared-testsuite-4.1.2.Final