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 Services | Assignee: | Alessio Soldano <asoldano> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 6.0.1 | CC: | 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: |
|
||||||
Attachment: Added: TEST-org.jboss.test.ws.jaxws.jbws1702.JBWS1702TestCase.xml Link: Added: This issue is related to JBPAPP-10560 Failure happened on IBM JDK6 too for EAP 6.1.0 ER2 https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/EAP6/view/EAP6-WS/job/eap-60-jbossws-testsuite-rhel/33/jdk=ibm16,label_exp=RHEL5%26%26x86/testReport/org.jboss.test.ws.jaxws.jbws1702/JBWS1702TestCase/testInheritanceBare/ https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/EAP6/view/EAP6-WS/job/eap-60-jbossws-testsuite-rhel/33/jdk=ibm17,label_exp=RHEL5%26%26x86/testReport/org.jboss.test.ws.jaxws.jbws1702/JBWS1702TestCase/testInheritanceBare/ javax.xml.ws.soap.SOAPFaultException: Unexpected element {http://jbws1702.jaxws.ws.test.jboss.org/}getClassCResponse found. Expected {http://jbws1702.jaxws.ws.test.jboss.org/}getClassCAsClassBResponse. 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();
}
Jim, can you share some details about changes, mainly motivation for adding BindingProvider properties? Tank you. https://source.jboss.org/changelog/JBossWS?cs=17397 https://source.jboss.org/changelog/JBossWS?cs=17398 Verified on EAP 6.1.0 ER3 with jbossws-cxf-4.1.3.Final TS and jbossws-shared-testsuite-4.1.2.Final |
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}