Bug 1025385

Summary: WS Backward Compatibility failure with EAP 6.2.0 ER7 on JDK 7 - JBWS1807TestCase - testProviderDispatch
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Rostislav Svoboda <rsvoboda>
Component: Web ServicesAssignee: Jim Ma <ema>
Status: CLOSED WONTFIX QA Contact: Rostislav Svoboda <rsvoboda>
Severity: high Docs Contact: Russell Dickenson <rdickens>
Priority: unspecified    
Version: 6.2.0   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-04 09:56:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
server-debug-log-JDK7-no-timestamp.txt
none
server-debug-log-JDK6-no-timestamp.txt none

Description Rostislav Svoboda 2013-10-31 15:08:29 UTC
When running WS Backward Compatibility tests against EAP 6.2.0 ER6 on JDK 7 I had failure of JBWS1807TestCase. It's 100% reproducible, failed on Jenkins and on my local machine. Test is passing on JDK6. 
I created separate job for this failure, see details.

Exception on client side:
Caused by: org.apache.cxf.binding.xml.XMLFault: Unexpected element input found.   Expected {http://ws.com/}input.

Exception on server side:
[0m[33m05:42:29,449 WARNING [org.apache.cxf.phase.PhaseInterceptorChain] (http-/127.0.0.1:8080-1) Interceptor for {http://ws.com/}ProviderService#{http://ws.com/}o1 has thrown exception, unwinding now: org.apache.cxf.interceptor.Fault: Unexpected element input found.   Expected {http://ws.com/}input.
	at org.apache.cxf.interceptor.DocLiteralInInterceptor.validatePart(DocLiteralInInterceptor.java:279)
	at org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:189)
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
	at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)

Details:
https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/eap-6x-jbossws-backward-compatibility-1.7-JBWS1807TestCase/1/testReport/junit/org.jboss.test.ws.jaxws.jbws1807/JBWS1807TestCase/testProviderDispatch/

https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/eap-6x-jbossws-backward-compatibility-1.7-JBWS1807TestCase/1/console

Comment 1 Rostislav Svoboda 2013-10-31 15:25:08 UTC
Tests are running against EAP 6.2.0 ER7, I have typo in description ;)

Running JBoss WS CXF Testsuite 4.1.3.Final* against EAP 6.2.0 ER7.
 * TS is patched to use produztized/-redhat-x artifacts

If you need more details you can ping me on #jbossws or #jbossqa irc.

Comment 2 Rostislav Svoboda 2013-11-01 07:37:00 UTC
Created attachment 818155 [details]
server-debug-log-JDK7-no-timestamp.txt

Comment 3 Rostislav Svoboda 2013-11-01 07:37:30 UTC
Created attachment 818156 [details]
server-debug-log-JDK6-no-timestamp.txt

Comment 4 Rostislav Svoboda 2013-11-01 07:40:35 UTC
See attached server debug logs for JDK 6 and JDK 7 -- 'Invoking handleMessage' and 'Invoking handleFault'

From JDK 7 log:
 FINE  [org.apache.cxf.phase.PhaseInterceptorChain] (http-/127.0.0.1:8080-1) Invoking handleMessage on interceptor org.apache.cxf.interceptor.DocLiteralInInterceptor@587892ec
 FINE  [org.apache.cxf.phase.PhaseInterceptorChain] (http-/127.0.0.1:8080-1) Invoking handleFault on interceptor org.apache.cxf.interceptor.DocLiteralInInterceptor@587892ec

Comment 5 Rostislav Svoboda 2013-11-01 09:38:55 UTC
Seen on these jdks:
 * oracle jdk 1.7_40
 * oracle jdk 1.7.0_25
 * openjdk 1.7.0_25

Comment 6 Jim Ma 2013-11-04 02:20:57 UTC
https://issues.apache.org/jira/browse/CXF-5268 introduced this regression failure.

Comment 7 Jim Ma 2013-11-04 05:09:27 UTC
It turns out it's the failure in JBWS1807TestCase, and we need to backport the change of https://issues.jboss.org/browse/JBWS-3705 after upgrade cxf to 2.7.7.

Comment 8 Rostislav Svoboda 2013-11-04 08:27:06 UTC
Verified that when https://issues.jboss.org/browse/JBWS-3705 changes applied test passes on JDK 7.

Comment 9 Rostislav Svoboda 2013-11-04 09:56:09 UTC
Issue in testcase, no change in jbossws or cxf code is needed.