[jbossts-issues] [JBoss JIRA] (JBTM-3002) XTS integration tests fails on: SoapFault11: Callback wasn't triggered

Ondra Chaloupka (JIRA) issues at jboss.org
Wed Mar 28 05:21:00 EDT 2018


    [ https://issues.jboss.org/browse/JBTM-3002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13552611#comment-13552611 ] 

Ondra Chaloupka commented on JBTM-3002:
---------------------------------------

My investigation continued to the point that:

* header {{Content-Length}} is added to the out-coming message (see error {{Content-Length header already present}} in the stacktrace) and the {{apache.http library}} does not permit it. The header is added at https://github.com/jbosstm/narayana/blob/master/XTS/localjunit/WSTFSC07-interop/src/main/java/com/jboss/transaction/wstf/proxy/ProxyListenerService.java#L182
* the change in the work is that there is change in underlaying class of the {{URLConnection}} that we call {{HttpURLConnection.setRequestProperty}} on. The change is from using
{code}
sun.net.www.protocol.http.HttpURLConnection
HttpURLConnection.isRestrictedHeader(String, String) line: 470	
HttpURLConnection.isExternalMessageHeaderAllowed(String, String) line: 493	
HttpURLConnection.setRequestProperty(String, String) line: 3075	
{code}

to 

{code}
HttpClientURLConnection(URLConnection).setRequestProperty(String, String) line: 1078	
java.net.HttpClientURLConnection
{code}

In the prior implementation there was called method {{HttpURLConnection.isRestrictedHeader}} which does not allow the {{Content-Length}} to be added to the out-comming call (but what I understand in some case (?) it was permitted).

More investigation what is purpose of the change and how to avoid error is needed to be done.

> XTS integration tests fails on: SoapFault11: Callback wasn't triggered
> ----------------------------------------------------------------------
>
>                 Key: JBTM-3002
>                 URL: https://issues.jboss.org/browse/JBTM-3002
>             Project: JBoss Transaction Manager
>          Issue Type: Bug
>          Components: XTS
>    Affects Versions: 5.8.0.Final
>            Reporter: Ondra Chaloupka
>            Assignee: Ondra Chaloupka
>            Priority: Critical
>
> There is failing XTS tests with {{com.arjuna.webservices11.SoapFault11: Receiver[Callback wasn't triggered]}}.
> This could be cause by some changes in WFLY server or it's some coincidence of wrong integration on the Narayana side.
> {code}
> INFO  [org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean] (default task-1) Creating Service {http://fabrikam123.com}ParticipantService from WSDL: vfs:/content/interop11.war/WEB-INF/classes/com/jboss/transaction/txinterop/webservices/atinterop/generated/wsdl/interopat-participant-binding.wsdl
> INFO  [org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean] (default task-1) Creating Service {http://fabrikam123.com}ParticipantService from WSDL: vfs:/content/interop11.war/WEB-INF/classes/com/jboss/transaction/txinterop/webservices/atinterop/generated/wsdl/interopat-participant-binding.wsdl
> INFO  [stdout] (default task-2) KEV: processing SOAP action http://fabrikam123.com/CompletionCommit
> ERROR [stderr] (default task-2) Proxy Listener Service: org.apache.http.client.ClientProtocolException
> ERROR [stderr] (default task-2) org.apache.http.client.ClientProtocolException
> ERROR [stderr] (default task-2)         at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186)
> ERROR [stderr] (default task-2)         at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
> ERROR [stderr] (default task-2)         at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
> ERROR [stderr] (default task-2)         at org.wildfly.url.http.HttpClientURLConnection.doRequest(HttpClientURLConnection.java:189)
> ERROR [stderr] (default task-2)         at org.wildfly.url.http.HttpClientURLConnection.connect(HttpClientURLConnection.java:205)
> ERROR [stderr] (default task-2)         at com.jboss.transaction.txinterop.proxy.ProxyListenerService.doPost(ProxyListenerService.java:184)
> ERROR [stderr] (default task-2)         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
> ERROR [stderr] (default task-2)         at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
> ERROR [stderr] (default task-2)         at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
> ERROR [stderr] (default task-2)         at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
> ERROR [stderr] (default task-2)         at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:67)
> ERROR [stderr] (default task-2)         at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
> ERROR [stderr] (default task-2)         at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
> ERROR [stderr] (default task-2)         at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> ERROR [stderr] (default task-2)         at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:132)
> ERROR [stderr] (default task-2)         at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
> ERROR [stderr] (default task-2)         at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> ERROR [stderr] (default task-2)         at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
> ERROR [stderr] (default task-2)         at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
> ERROR [stderr] (default task-2)         at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
> ERROR [stderr] (default task-2)         at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
> ERROR [stderr] (default task-2)         at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
> ERROR [stderr] (default task-2)         at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
> ERROR [stderr] (default task-2)         at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> ERROR [stderr] (default task-2)         at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
> ERROR [stderr] (default task-2)         at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> ERROR [stderr] (default task-2)         at org.wildfly.extension.undertow.deployment.GlobalRequestControllerHandler.handleRequest(GlobalRequestControllerHandler.java:68)
> ERROR [stderr] (default task-2)         at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
> ERROR [stderr] (default task-2)         at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)
> ERROR [stderr] (default task-2)         at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81)
> ERROR [stderr] (default task-2)         at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)
> ERROR [stderr] (default task-2)         at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135)
> ERROR [stderr] (default task-2)         at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
> ERROR [stderr] (default task-2)         at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
> ERROR [stderr] (default task-2)         at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
> ERROR [stderr] (default task-2)         at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1523)
> ERROR [stderr] (default task-2)         at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1523)
> ERROR [stderr] (default task-2)         at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1523)
> ERROR [stderr] (default task-2)         at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1523)
> ERROR [stderr] (default task-2)         at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)
> ERROR [stderr] (default task-2)         at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
> ERROR [stderr] (default task-2)         at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)
> ERROR [stderr] (default task-2)         at io.undertow.server.Connectors.executeRootHandler(Connectors.java:360)
> ERROR [stderr] (default task-2)         at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830)
> ERROR [stderr] (default task-2)         at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
> ERROR [stderr] (default task-2)         at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
> ERROR [stderr] (default task-2)         at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
> ERROR [stderr] (default task-2)         at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
> ERROR [stderr] (default task-2)         at java.lang.Thread.run(Thread.java:748)
> ERROR [stderr] (default task-2) Caused by: org.apache.http.ProtocolException: Content-Length header already present
> ERROR [stderr] (default task-2)         at org.apache.http.protocol.RequestContent.process(RequestContent.java:96)
> ERROR [stderr] (default task-2)         at org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:132)
> ERROR [stderr] (default task-2)         at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:182)
> ERROR [stderr] (default task-2)         at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
> ERROR [stderr] (default task-2)         at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
> ERROR [stderr] (default task-2)         at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
> ERROR [stderr] (default task-2)         ... 48 more
> INFO  [stdout] (default task-1) KEV: removed conversation c1
> INFO  [stdout] (Thread-0) TransformListener() : handling connection on port 9091
> INFO  [stdout] (Thread-0) retransforming org.jboss.jbossts.xts.bytemanSupport.participantReadOnly.ParticipantCompletionReadOnlyRules
> INFO  [stdout] (Thread-0) retransforming com.arjuna.wst11.messaging.ParticipantProcessorImpl
> INFO  [stdout] (Thread-0) retransforming com.arjuna.wst11.messaging.CoordinatorProcessorImpl
> INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 7) WFLYUT0022: Unregistered web context: '/interop11' from server 'default-server'
> {code}



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jbossts-issues mailing list