[JBoss JIRA] (JBWS-4109) Failures of response headers checking tests with latest wildfly
by Jan Kalina (JIRA)
[ https://issues.jboss.org/browse/JBWS-4109?page=com.atlassian.jira.plugin.... ]
Jan Kalina commented on JBWS-4109:
----------------------------------
WFCORE-3658 was reverted, so this can be closed.
> Failures of response headers checking tests with latest wildfly
> ---------------------------------------------------------------
>
> Key: JBWS-4109
> URL: https://issues.jboss.org/browse/JBWS-4109
> Project: JBoss Web Services
> Issue Type: Bug
> Components: jbossws-cxf
> Reporter: Jan Blizňák
> Assignee: Jan Kalina
> Fix For: jbossws-cxf-5.2.1.Final
>
>
> https://jbossws-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/jenkins/job/CXF-C...
> We have few new test failures:
> org.jboss.test.ws.jaxws.cxf.bus.BusTestCase.testBusLeakageInServletClient
> org.jboss.test.ws.jaxws.cxf.bus.BusTestCase.testBusLeakageInEJB3Client
> org.jboss.test.ws.jaxws.cxf.gzip.GZIPTestCase.testInContainerFailureGZIPServerSideOnlyInterceptorOnClient
> org.jboss.test.ws.jaxws.cxf.gzip.GZIPTestCase.testInContainerGZIPServerSideOnlyInterceptorsOnBus
> org.jboss.test.ws.jaxws.cxf.gzip.GZIPTestCase.testInContainerGZIPServerSideOnlyInterceptorOnClient
> org.jboss.test.ws.jaxws.cxf.gzip.GZIPTestCase.testInContainerFailureGZIPServerSideOnlyInterceptorsOnBus
> org.jboss.test.ws.jaxws.cxf.jbws3879.JBWS3879TestCase.testInContainerFailureGZIPServerSideOnlyInterceptorOnClient
> org.jboss.test.ws.jaxws.cxf.jbws3879.JBWS3879TestCase.testInContainerGZIPServerSideOnlyInterceptorOnClient
> I tracked it down to the commit https://github.com/wildfly/wildfly-core/commit/6d707d2ffce8789cdedc75838d... in WF core that added new module into server WFCORE-3658.
> Check response headers received as a response to a client request accepting gzip:
> {code:java}
> https://github.com/wildfly/wildfly-core/commit/f70e3be8e98798c4d3fee381c7...
> 10:52:22,753 INFO [stdout] (default task-1) connection :: [keep-alive]
> 10:52:22,753 INFO [stdout] (default task-1) content-encoding :: [gzip]
> 10:52:22,753 INFO [stdout] (default task-1) Content-Length :: [157]
> 10:52:22,754 INFO [stdout] (default task-1) content-type :: [text/xml;charset=UTF-8]
> 10:52:22,754 INFO [stdout] (default task-1) Date :: [Fri, 23 Mar 2018 09:52:22 GMT]
> 10:52:22,754 INFO [stdout] (default task-1) Vary :: [Accept-Encoding]
> https://github.com/wildfly/wildfly-core/commit/6d707d2ffce8789cdedc75838d...
> 10:49:37,316 INFO [stdout] (default task-1) connection :: [keep-alive]
> 10:49:37,317 INFO [stdout] (default task-1) content-type :: [text/xml;charset=UTF-8]
> 10:49:37,317 INFO [stdout] (default task-1) Date :: [Fri, 23 Mar 2018 09:49:37 GMT]
> 10:49:37,317 INFO [stdout] (default task-1) Vary :: [Accept-Encoding]
> 10:49:37,317 INFO [stdout] (default task-1)
> {code}
> The BusTestCase fails after the same commit, just the exception is different:
> {code:java}
> ERROR [org.jboss.test.ws.jaxws.cxf.bus.EJB3Client] (default task-1) Could not run 'testSOAPConnection': javax.xml.soap.SOAPException: JBWS024004: SOAP message could not be sent
> at org.jboss.wsf.stack.cxf.saaj.SOAPConnectionImpl.call(SOAPConnectionImpl.java:130)
> at org.jboss.test.ws.jaxws.cxf.bus.AbstractClient.performSOAPCall(AbstractClient.java:167)
> at org.jboss.test.ws.jaxws.cxf.bus.AbstractClient.testSOAPConnection(AbstractClient.java:73)
> at org.jboss.test.ws.jaxws.cxf.bus.EJB3Client.testSOAPConnection(EJB3Client.java:54)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509)
> at org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:90)
> at org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:101)
> at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:40)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53)
> at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:273)
> at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:330)
> at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:238)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509)
> at org.jboss.weld.module.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:81)
> at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:89)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:89)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:47)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.deployment.processors.StartupAwaitInterceptor.processInvocation(StartupAwaitInterceptor.java:22)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.deployment.processors.EjbSuspendInterceptor.processInvocation(EjbSuspendInterceptor.java:57)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:67)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:60)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:438)
> at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:619)
> at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:57)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53)
> at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:198)
> at org.wildfly.security.auth.server.SecurityIdentity.runAsFunctionEx(SecurityIdentity.java:380)
> at org.jboss.as.ejb3.remote.AssociationImpl.invokeWithIdentity(AssociationImpl.java:541)
> at org.jboss.as.ejb3.remote.AssociationImpl.invokeMethod(AssociationImpl.java:536)
> at org.jboss.as.ejb3.remote.AssociationImpl.lambda$receiveInvocationRequest$0(AssociationImpl.java:194)
> at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
> at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
> at java.lang.Thread.run(Thread.java:748)
> Caused by: org.apache.http.client.ClientProtocolException: ClientProtocolException invoking http://172.16.130.36:8080/jaxws-cxf-bus/EndpointService/Endpoint: null
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
> at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1387)
> at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1371)
> at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
> at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:658)
> at org.jboss.wsf.stack.cxf.saaj.SOAPConnectionImpl.call(SOAPConnectionImpl.java:126)
> ... 72 more
> Caused by: org.apache.http.client.ClientProtocolException
> at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:187)
> at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
> at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
> at org.wildfly.url.http.HttpClientURLConnection.doRequest(HttpClientURLConnection.java:189)
> at org.wildfly.url.http.HttpClientURLConnection.getResponseCode(HttpClientURLConnection.java:295)
> at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream$2.run(URLConnectionHTTPConduit.java:377)
> at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream$2.run(URLConnectionHTTPConduit.java:373)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.getResponseCode(URLConnectionHTTPConduit.java:373)
> at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.doProcessResponseCode(HTTPConduit.java:1584)
> at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1612)
> at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1557)
> at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1358)
> ... 75 more
> Caused by: org.apache.http.ProtocolException: Content-Length header already present
> at org.apache.http.protocol.RequestContent.process(RequestContent.java:97)
> at org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:133)
> at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:183)
> at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
> at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111)
> at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
> ... 87 more
> {code}
> After some debugging, this where correct request headers are sent from client https://github.com/wildfly/wildfly-url-http/blob/master/src/main/java/org..., on the next line incorrect response headers received.
> CC: [~honza889]
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 9 months
[JBoss JIRA] (JBWS-4108) Expired certificates in testsuite
by Jan Blizňák (JIRA)
[ https://issues.jboss.org/browse/JBWS-4108?page=com.atlassian.jira.plugin.... ]
Jan Blizňák commented on JBWS-4108:
-----------------------------------
I have tried whether we really have such long safe period by changing system time (or you can use faketime library https://github.com/wolfcw/libfaketime ) and as reported originally, these two stores will contain expired certificates soon too:
{code:java}
./modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/policy/basic/sign-encrypt/META-INF/john.jks
Valid from: Tue May 20 12:48:17 CEST 2008 until: Fri May 18 12:48:17 CEST 2018
./modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/policy/basic/sign-encrypt/WEB-INF/bob2.jks
Valid from: Tue May 20 12:48:17 CEST 2008 until: Fri May 18 12:48:17 CEST 2018
{code}
{code:java}
# execute maven process one year in the future
faketime --exclude-monotonic -f "+1y" mvn -V -B verify -noLogRedirect -Dnodeploy -Pelytron,wildfly1300,testsuite -Dserver.home=/tmp/wildfly/dist/target/wildfly-13.0.0.Alpha1-SNAPSHOT -fn
....
[ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 13.826 s <<< FAILURE! - in org.jboss.test.ws.jaxws.samples.wsse.policy.basic.MultipleClientsSignEncryptTestCase
[ERROR] testJohn(org.jboss.test.ws.jaxws.samples.wsse.policy.basic.MultipleClientsSignEncryptTestCase) Time elapsed: 0.135 s <<< ERROR!
java.lang.Exception: Error A security error was encountered when verifying the message - please check that the Bouncy Castle provider is installed.
at org.jboss.test.ws.jaxws.samples.wsse.policy.basic.MultipleClientsSignEncryptTestCase.testJohn(MultipleClientsSignEncryptTestCase.java:126)
Caused by: javax.xml.ws.soap.SOAPFaultException: A security error was encountered when verifying the message
at org.jboss.test.ws.jaxws.samples.wsse.policy.basic.MultipleClientsSignEncryptTestCase.testJohn(MultipleClientsSignEncryptTestCase.java:122)
Caused by: org.apache.cxf.binding.soap.SoapFault: A security error was encountered when verifying the message
at org.jboss.test.ws.jaxws.samples.wsse.policy.basic.MultipleClientsSignEncryptTestCase.testJohn(MultipleClientsSignEncryptTestCase.java:122)
{code}
We can also remove these two stores which are no longer used after https://github.com/jbossws/jbossws-cxf/commit/2b353661cc53a17f0ace5952f89...
modules/testsuite/shared-tests/src/test/resources/jaxws/samples/wssecurity/wsse.keystore
modules/testsuite/shared-tests/src/test/resources/jaxws/samples/wssecurity/wsse.truststore
> Expired certificates in testsuite
> ---------------------------------
>
> Key: JBWS-4108
> URL: https://issues.jboss.org/browse/JBWS-4108
> Project: JBoss Web Services
> Issue Type: Bug
> Components: jbossws-cxf
> Reporter: Jan Blizňák
> Assignee: Alessio Soldano
> Fix For: jbossws-cxf-5.2.1.Final
>
>
> Starting with Tuesday 20th of March 2018 we are getting test failures in few tests [https://jbossws-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/jenkins/job/CXF-C...], rootcause of this is using pregenerated jks stores
> {code:java}
> Caused by: java.security.cert.CertificateExpiredException: NotAfter: Mon Mar 19 19:59:59 EDT 2018
> at sun.security.x509.CertificateValidity.valid(CertificateValidity.java:274)
> at sun.security.x509.X509CertImpl.checkValidity(X509CertImpl.java:629)
> at sun.security.x509.X509CertImpl.checkValidity(X509CertImpl.java:602)
> at org.apache.wss4j.common.crypto.Merlin.verifyTrust(Merlin.java:758)
> ... 64 more
> {code}
> Some already expired stores:
> ./modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/policy/oasis/META-INF/alice.jks
> Valid from: Sat Mar 19 01:00:00 CET 2005 until: Tue Mar 20 00:59:59 CET 2018
> ./modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/policy/oasis/WEB-INF/bob.jks
> Valid from: Sat Mar 19 01:00:00 CET 2005 until: Tue Mar 20 00:59:59 CET 2018
> ./modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/policy/secconv/META-INF/alice.jks
> Valid from: Sat Mar 19 01:00:00 CET 2005 until: Tue Mar 20 00:59:59 CET 2018
> and soon to be invalid too:
> ./modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/policy/basic/sign-encrypt/META-INF/john.jks
> Valid from: Tue May 20 12:48:17 CEST 2008 until: Fri May 18 12:48:17 CEST 2018
> ./modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/policy/basic/sign-encrypt/WEB-INF/bob2.jks
> Valid from: Tue May 20 12:48:17 CEST 2008 until: Fri May 18 12:48:17 CEST 2018
> ... etc.
> We should probably switch to generating all the *-stores in pre test phase like done in wildfly https://github.com/wildfly/wildfly/blob/master/testsuite/integration/basi... to be safe all the time
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 9 months
[JBoss JIRA] (JBWS-4108) Expired certificates in testsuite
by Jan Blizňák (JIRA)
[ https://issues.jboss.org/browse/JBWS-4108?page=com.atlassian.jira.plugin.... ]
Jan Blizňák reopened JBWS-4108:
-------------------------------
> Expired certificates in testsuite
> ---------------------------------
>
> Key: JBWS-4108
> URL: https://issues.jboss.org/browse/JBWS-4108
> Project: JBoss Web Services
> Issue Type: Bug
> Components: jbossws-cxf
> Reporter: Jan Blizňák
> Assignee: Alessio Soldano
> Fix For: jbossws-cxf-5.2.1.Final
>
>
> Starting with Tuesday 20th of March 2018 we are getting test failures in few tests [https://jbossws-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/jenkins/job/CXF-C...], rootcause of this is using pregenerated jks stores
> {code:java}
> Caused by: java.security.cert.CertificateExpiredException: NotAfter: Mon Mar 19 19:59:59 EDT 2018
> at sun.security.x509.CertificateValidity.valid(CertificateValidity.java:274)
> at sun.security.x509.X509CertImpl.checkValidity(X509CertImpl.java:629)
> at sun.security.x509.X509CertImpl.checkValidity(X509CertImpl.java:602)
> at org.apache.wss4j.common.crypto.Merlin.verifyTrust(Merlin.java:758)
> ... 64 more
> {code}
> Some already expired stores:
> ./modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/policy/oasis/META-INF/alice.jks
> Valid from: Sat Mar 19 01:00:00 CET 2005 until: Tue Mar 20 00:59:59 CET 2018
> ./modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/policy/oasis/WEB-INF/bob.jks
> Valid from: Sat Mar 19 01:00:00 CET 2005 until: Tue Mar 20 00:59:59 CET 2018
> ./modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/policy/secconv/META-INF/alice.jks
> Valid from: Sat Mar 19 01:00:00 CET 2005 until: Tue Mar 20 00:59:59 CET 2018
> and soon to be invalid too:
> ./modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/policy/basic/sign-encrypt/META-INF/john.jks
> Valid from: Tue May 20 12:48:17 CEST 2008 until: Fri May 18 12:48:17 CEST 2018
> ./modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/policy/basic/sign-encrypt/WEB-INF/bob2.jks
> Valid from: Tue May 20 12:48:17 CEST 2008 until: Fri May 18 12:48:17 CEST 2018
> ... etc.
> We should probably switch to generating all the *-stores in pre test phase like done in wildfly https://github.com/wildfly/wildfly/blob/master/testsuite/integration/basi... to be safe all the time
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 9 months
[JBoss JIRA] (JBWS-4109) Failures of response headers checking tests with latest wildfly
by Jan Kalina (JIRA)
[ https://issues.jboss.org/browse/JBWS-4109?page=com.atlassian.jira.plugin.... ]
Jan Kalina commented on JBWS-4109:
----------------------------------
Resolved in wildfly-url-http 1.0.3.Final - waiting for tag + component upgrade in wildfly-core.
> Failures of response headers checking tests with latest wildfly
> ---------------------------------------------------------------
>
> Key: JBWS-4109
> URL: https://issues.jboss.org/browse/JBWS-4109
> Project: JBoss Web Services
> Issue Type: Bug
> Components: jbossws-cxf
> Reporter: Jan Blizňák
> Assignee: Jan Kalina
> Fix For: jbossws-cxf-5.2.1.Final
>
>
> https://jbossws-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/jenkins/job/CXF-C...
> We have few new test failures:
> org.jboss.test.ws.jaxws.cxf.bus.BusTestCase.testBusLeakageInServletClient
> org.jboss.test.ws.jaxws.cxf.bus.BusTestCase.testBusLeakageInEJB3Client
> org.jboss.test.ws.jaxws.cxf.gzip.GZIPTestCase.testInContainerFailureGZIPServerSideOnlyInterceptorOnClient
> org.jboss.test.ws.jaxws.cxf.gzip.GZIPTestCase.testInContainerGZIPServerSideOnlyInterceptorsOnBus
> org.jboss.test.ws.jaxws.cxf.gzip.GZIPTestCase.testInContainerGZIPServerSideOnlyInterceptorOnClient
> org.jboss.test.ws.jaxws.cxf.gzip.GZIPTestCase.testInContainerFailureGZIPServerSideOnlyInterceptorsOnBus
> org.jboss.test.ws.jaxws.cxf.jbws3879.JBWS3879TestCase.testInContainerFailureGZIPServerSideOnlyInterceptorOnClient
> org.jboss.test.ws.jaxws.cxf.jbws3879.JBWS3879TestCase.testInContainerGZIPServerSideOnlyInterceptorOnClient
> I tracked it down to the commit https://github.com/wildfly/wildfly-core/commit/6d707d2ffce8789cdedc75838d... in WF core that added new module into server WFCORE-3658.
> Check response headers received as a response to a client request accepting gzip:
> {code:java}
> https://github.com/wildfly/wildfly-core/commit/f70e3be8e98798c4d3fee381c7...
> 10:52:22,753 INFO [stdout] (default task-1) connection :: [keep-alive]
> 10:52:22,753 INFO [stdout] (default task-1) content-encoding :: [gzip]
> 10:52:22,753 INFO [stdout] (default task-1) Content-Length :: [157]
> 10:52:22,754 INFO [stdout] (default task-1) content-type :: [text/xml;charset=UTF-8]
> 10:52:22,754 INFO [stdout] (default task-1) Date :: [Fri, 23 Mar 2018 09:52:22 GMT]
> 10:52:22,754 INFO [stdout] (default task-1) Vary :: [Accept-Encoding]
> https://github.com/wildfly/wildfly-core/commit/6d707d2ffce8789cdedc75838d...
> 10:49:37,316 INFO [stdout] (default task-1) connection :: [keep-alive]
> 10:49:37,317 INFO [stdout] (default task-1) content-type :: [text/xml;charset=UTF-8]
> 10:49:37,317 INFO [stdout] (default task-1) Date :: [Fri, 23 Mar 2018 09:49:37 GMT]
> 10:49:37,317 INFO [stdout] (default task-1) Vary :: [Accept-Encoding]
> 10:49:37,317 INFO [stdout] (default task-1)
> {code}
> The BusTestCase fails after the same commit, just the exception is different:
> {code:java}
> ERROR [org.jboss.test.ws.jaxws.cxf.bus.EJB3Client] (default task-1) Could not run 'testSOAPConnection': javax.xml.soap.SOAPException: JBWS024004: SOAP message could not be sent
> at org.jboss.wsf.stack.cxf.saaj.SOAPConnectionImpl.call(SOAPConnectionImpl.java:130)
> at org.jboss.test.ws.jaxws.cxf.bus.AbstractClient.performSOAPCall(AbstractClient.java:167)
> at org.jboss.test.ws.jaxws.cxf.bus.AbstractClient.testSOAPConnection(AbstractClient.java:73)
> at org.jboss.test.ws.jaxws.cxf.bus.EJB3Client.testSOAPConnection(EJB3Client.java:54)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509)
> at org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:90)
> at org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:101)
> at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:40)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53)
> at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:273)
> at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:330)
> at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:238)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509)
> at org.jboss.weld.module.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:81)
> at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:89)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:89)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:47)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.deployment.processors.StartupAwaitInterceptor.processInvocation(StartupAwaitInterceptor.java:22)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.deployment.processors.EjbSuspendInterceptor.processInvocation(EjbSuspendInterceptor.java:57)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:67)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:60)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:438)
> at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:619)
> at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:57)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53)
> at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:198)
> at org.wildfly.security.auth.server.SecurityIdentity.runAsFunctionEx(SecurityIdentity.java:380)
> at org.jboss.as.ejb3.remote.AssociationImpl.invokeWithIdentity(AssociationImpl.java:541)
> at org.jboss.as.ejb3.remote.AssociationImpl.invokeMethod(AssociationImpl.java:536)
> at org.jboss.as.ejb3.remote.AssociationImpl.lambda$receiveInvocationRequest$0(AssociationImpl.java:194)
> at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
> at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
> at java.lang.Thread.run(Thread.java:748)
> Caused by: org.apache.http.client.ClientProtocolException: ClientProtocolException invoking http://172.16.130.36:8080/jaxws-cxf-bus/EndpointService/Endpoint: null
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
> at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1387)
> at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1371)
> at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
> at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:658)
> at org.jboss.wsf.stack.cxf.saaj.SOAPConnectionImpl.call(SOAPConnectionImpl.java:126)
> ... 72 more
> Caused by: org.apache.http.client.ClientProtocolException
> at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:187)
> at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
> at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
> at org.wildfly.url.http.HttpClientURLConnection.doRequest(HttpClientURLConnection.java:189)
> at org.wildfly.url.http.HttpClientURLConnection.getResponseCode(HttpClientURLConnection.java:295)
> at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream$2.run(URLConnectionHTTPConduit.java:377)
> at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream$2.run(URLConnectionHTTPConduit.java:373)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.getResponseCode(URLConnectionHTTPConduit.java:373)
> at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.doProcessResponseCode(HTTPConduit.java:1584)
> at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1612)
> at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1557)
> at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1358)
> ... 75 more
> Caused by: org.apache.http.ProtocolException: Content-Length header already present
> at org.apache.http.protocol.RequestContent.process(RequestContent.java:97)
> at org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:133)
> at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:183)
> at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
> at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111)
> at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
> ... 87 more
> {code}
> After some debugging, this where correct request headers are sent from client https://github.com/wildfly/wildfly-url-http/blob/master/src/main/java/org..., on the next line incorrect response headers received.
> CC: [~honza889]
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 9 months
[JBoss JIRA] (JBWS-4108) Expired certificates in testsuite
by Alessio Soldano (JIRA)
[ https://issues.jboss.org/browse/JBWS-4108?page=com.atlassian.jira.plugin.... ]
Alessio Soldano updated JBWS-4108:
----------------------------------
Assignee: Alessio Soldano
> Expired certificates in testsuite
> ---------------------------------
>
> Key: JBWS-4108
> URL: https://issues.jboss.org/browse/JBWS-4108
> Project: JBoss Web Services
> Issue Type: Bug
> Components: jbossws-cxf
> Reporter: Jan Blizňák
> Assignee: Alessio Soldano
> Fix For: jbossws-cxf-5.2.1.Final
>
>
> Starting with Tuesday 20th of March 2018 we are getting test failures in few tests [https://jbossws-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/jenkins/job/CXF-C...], rootcause of this is using pregenerated jks stores
> {code:java}
> Caused by: java.security.cert.CertificateExpiredException: NotAfter: Mon Mar 19 19:59:59 EDT 2018
> at sun.security.x509.CertificateValidity.valid(CertificateValidity.java:274)
> at sun.security.x509.X509CertImpl.checkValidity(X509CertImpl.java:629)
> at sun.security.x509.X509CertImpl.checkValidity(X509CertImpl.java:602)
> at org.apache.wss4j.common.crypto.Merlin.verifyTrust(Merlin.java:758)
> ... 64 more
> {code}
> Some already expired stores:
> ./modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/policy/oasis/META-INF/alice.jks
> Valid from: Sat Mar 19 01:00:00 CET 2005 until: Tue Mar 20 00:59:59 CET 2018
> ./modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/policy/oasis/WEB-INF/bob.jks
> Valid from: Sat Mar 19 01:00:00 CET 2005 until: Tue Mar 20 00:59:59 CET 2018
> ./modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/policy/secconv/META-INF/alice.jks
> Valid from: Sat Mar 19 01:00:00 CET 2005 until: Tue Mar 20 00:59:59 CET 2018
> and soon to be invalid too:
> ./modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/policy/basic/sign-encrypt/META-INF/john.jks
> Valid from: Tue May 20 12:48:17 CEST 2008 until: Fri May 18 12:48:17 CEST 2018
> ./modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/wsse/policy/basic/sign-encrypt/WEB-INF/bob2.jks
> Valid from: Tue May 20 12:48:17 CEST 2008 until: Fri May 18 12:48:17 CEST 2018
> ... etc.
> We should probably switch to generating all the *-stores in pre test phase like done in wildfly https://github.com/wildfly/wildfly/blob/master/testsuite/integration/basi... to be safe all the time
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 9 months
[JBoss JIRA] (JBWS-4109) Failures of response headers checking tests with latest wildfly
by Jan Kalina (JIRA)
[ https://issues.jboss.org/browse/JBWS-4109?page=com.atlassian.jira.plugin.... ]
Jan Kalina updated JBWS-4109:
-----------------------------
Assignee: Jan Kalina
> Failures of response headers checking tests with latest wildfly
> ---------------------------------------------------------------
>
> Key: JBWS-4109
> URL: https://issues.jboss.org/browse/JBWS-4109
> Project: JBoss Web Services
> Issue Type: Bug
> Components: jbossws-cxf
> Reporter: Jan Blizňák
> Assignee: Jan Kalina
> Fix For: jbossws-cxf-5.2.1.Final
>
>
> https://jbossws-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/jenkins/job/CXF-C...
> We have few new test failures:
> org.jboss.test.ws.jaxws.cxf.bus.BusTestCase.testBusLeakageInServletClient
> org.jboss.test.ws.jaxws.cxf.bus.BusTestCase.testBusLeakageInEJB3Client
> org.jboss.test.ws.jaxws.cxf.gzip.GZIPTestCase.testInContainerFailureGZIPServerSideOnlyInterceptorOnClient
> org.jboss.test.ws.jaxws.cxf.gzip.GZIPTestCase.testInContainerGZIPServerSideOnlyInterceptorsOnBus
> org.jboss.test.ws.jaxws.cxf.gzip.GZIPTestCase.testInContainerGZIPServerSideOnlyInterceptorOnClient
> org.jboss.test.ws.jaxws.cxf.gzip.GZIPTestCase.testInContainerFailureGZIPServerSideOnlyInterceptorsOnBus
> org.jboss.test.ws.jaxws.cxf.jbws3879.JBWS3879TestCase.testInContainerFailureGZIPServerSideOnlyInterceptorOnClient
> org.jboss.test.ws.jaxws.cxf.jbws3879.JBWS3879TestCase.testInContainerGZIPServerSideOnlyInterceptorOnClient
> I tracked it down to the commit https://github.com/wildfly/wildfly-core/commit/6d707d2ffce8789cdedc75838d... in WF core that added new module into server WFCORE-3658.
> Check response headers received as a response to a client request accepting gzip:
> {code:java}
> https://github.com/wildfly/wildfly-core/commit/f70e3be8e98798c4d3fee381c7...
> 10:52:22,753 INFO [stdout] (default task-1) connection :: [keep-alive]
> 10:52:22,753 INFO [stdout] (default task-1) content-encoding :: [gzip]
> 10:52:22,753 INFO [stdout] (default task-1) Content-Length :: [157]
> 10:52:22,754 INFO [stdout] (default task-1) content-type :: [text/xml;charset=UTF-8]
> 10:52:22,754 INFO [stdout] (default task-1) Date :: [Fri, 23 Mar 2018 09:52:22 GMT]
> 10:52:22,754 INFO [stdout] (default task-1) Vary :: [Accept-Encoding]
> https://github.com/wildfly/wildfly-core/commit/6d707d2ffce8789cdedc75838d...
> 10:49:37,316 INFO [stdout] (default task-1) connection :: [keep-alive]
> 10:49:37,317 INFO [stdout] (default task-1) content-type :: [text/xml;charset=UTF-8]
> 10:49:37,317 INFO [stdout] (default task-1) Date :: [Fri, 23 Mar 2018 09:49:37 GMT]
> 10:49:37,317 INFO [stdout] (default task-1) Vary :: [Accept-Encoding]
> 10:49:37,317 INFO [stdout] (default task-1)
> {code}
> The BusTestCase fails after the same commit, just the exception is different:
> {code:java}
> ERROR [org.jboss.test.ws.jaxws.cxf.bus.EJB3Client] (default task-1) Could not run 'testSOAPConnection': javax.xml.soap.SOAPException: JBWS024004: SOAP message could not be sent
> at org.jboss.wsf.stack.cxf.saaj.SOAPConnectionImpl.call(SOAPConnectionImpl.java:130)
> at org.jboss.test.ws.jaxws.cxf.bus.AbstractClient.performSOAPCall(AbstractClient.java:167)
> at org.jboss.test.ws.jaxws.cxf.bus.AbstractClient.testSOAPConnection(AbstractClient.java:73)
> at org.jboss.test.ws.jaxws.cxf.bus.EJB3Client.testSOAPConnection(EJB3Client.java:54)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509)
> at org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:90)
> at org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:101)
> at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:40)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53)
> at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:273)
> at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:330)
> at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:238)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509)
> at org.jboss.weld.module.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:81)
> at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:89)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:89)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:47)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.deployment.processors.StartupAwaitInterceptor.processInvocation(StartupAwaitInterceptor.java:22)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.deployment.processors.EjbSuspendInterceptor.processInvocation(EjbSuspendInterceptor.java:57)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:67)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:60)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:438)
> at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:619)
> at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:57)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53)
> at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:198)
> at org.wildfly.security.auth.server.SecurityIdentity.runAsFunctionEx(SecurityIdentity.java:380)
> at org.jboss.as.ejb3.remote.AssociationImpl.invokeWithIdentity(AssociationImpl.java:541)
> at org.jboss.as.ejb3.remote.AssociationImpl.invokeMethod(AssociationImpl.java:536)
> at org.jboss.as.ejb3.remote.AssociationImpl.lambda$receiveInvocationRequest$0(AssociationImpl.java:194)
> at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
> at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
> at java.lang.Thread.run(Thread.java:748)
> Caused by: org.apache.http.client.ClientProtocolException: ClientProtocolException invoking http://172.16.130.36:8080/jaxws-cxf-bus/EndpointService/Endpoint: null
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
> at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1387)
> at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1371)
> at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
> at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:658)
> at org.jboss.wsf.stack.cxf.saaj.SOAPConnectionImpl.call(SOAPConnectionImpl.java:126)
> ... 72 more
> Caused by: org.apache.http.client.ClientProtocolException
> at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:187)
> at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
> at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
> at org.wildfly.url.http.HttpClientURLConnection.doRequest(HttpClientURLConnection.java:189)
> at org.wildfly.url.http.HttpClientURLConnection.getResponseCode(HttpClientURLConnection.java:295)
> at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream$2.run(URLConnectionHTTPConduit.java:377)
> at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream$2.run(URLConnectionHTTPConduit.java:373)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.getResponseCode(URLConnectionHTTPConduit.java:373)
> at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.doProcessResponseCode(HTTPConduit.java:1584)
> at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1612)
> at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1557)
> at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1358)
> ... 75 more
> Caused by: org.apache.http.ProtocolException: Content-Length header already present
> at org.apache.http.protocol.RequestContent.process(RequestContent.java:97)
> at org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:133)
> at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:183)
> at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
> at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111)
> at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
> ... 87 more
> {code}
> After some debugging, this where correct request headers are sent from client https://github.com/wildfly/wildfly-url-http/blob/master/src/main/java/org..., on the next line incorrect response headers received.
> CC: [~honza889]
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 9 months
[JBoss JIRA] (JBWS-4109) Failures of response headers checking tests with latest wildfly
by Alessio Soldano (JIRA)
[ https://issues.jboss.org/browse/JBWS-4109?page=com.atlassian.jira.plugin.... ]
Alessio Soldano updated JBWS-4109:
----------------------------------
Fix Version/s: jbossws-cxf-5.2.1.Final
> Failures of response headers checking tests with latest wildfly
> ---------------------------------------------------------------
>
> Key: JBWS-4109
> URL: https://issues.jboss.org/browse/JBWS-4109
> Project: JBoss Web Services
> Issue Type: Bug
> Components: jbossws-cxf
> Reporter: Jan Blizňák
> Fix For: jbossws-cxf-5.2.1.Final
>
>
> https://jbossws-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/jenkins/job/CXF-C...
> We have few new test failures:
> org.jboss.test.ws.jaxws.cxf.bus.BusTestCase.testBusLeakageInServletClient
> org.jboss.test.ws.jaxws.cxf.bus.BusTestCase.testBusLeakageInEJB3Client
> org.jboss.test.ws.jaxws.cxf.gzip.GZIPTestCase.testInContainerFailureGZIPServerSideOnlyInterceptorOnClient
> org.jboss.test.ws.jaxws.cxf.gzip.GZIPTestCase.testInContainerGZIPServerSideOnlyInterceptorsOnBus
> org.jboss.test.ws.jaxws.cxf.gzip.GZIPTestCase.testInContainerGZIPServerSideOnlyInterceptorOnClient
> org.jboss.test.ws.jaxws.cxf.gzip.GZIPTestCase.testInContainerFailureGZIPServerSideOnlyInterceptorsOnBus
> org.jboss.test.ws.jaxws.cxf.jbws3879.JBWS3879TestCase.testInContainerFailureGZIPServerSideOnlyInterceptorOnClient
> org.jboss.test.ws.jaxws.cxf.jbws3879.JBWS3879TestCase.testInContainerGZIPServerSideOnlyInterceptorOnClient
> I tracked it down to the commit https://github.com/wildfly/wildfly-core/commit/6d707d2ffce8789cdedc75838d... in WF core that added new module into server WFCORE-3658.
> Check response headers received as a response to a client request accepting gzip:
> {code:java}
> https://github.com/wildfly/wildfly-core/commit/f70e3be8e98798c4d3fee381c7...
> 10:52:22,753 INFO [stdout] (default task-1) connection :: [keep-alive]
> 10:52:22,753 INFO [stdout] (default task-1) content-encoding :: [gzip]
> 10:52:22,753 INFO [stdout] (default task-1) Content-Length :: [157]
> 10:52:22,754 INFO [stdout] (default task-1) content-type :: [text/xml;charset=UTF-8]
> 10:52:22,754 INFO [stdout] (default task-1) Date :: [Fri, 23 Mar 2018 09:52:22 GMT]
> 10:52:22,754 INFO [stdout] (default task-1) Vary :: [Accept-Encoding]
> https://github.com/wildfly/wildfly-core/commit/6d707d2ffce8789cdedc75838d...
> 10:49:37,316 INFO [stdout] (default task-1) connection :: [keep-alive]
> 10:49:37,317 INFO [stdout] (default task-1) content-type :: [text/xml;charset=UTF-8]
> 10:49:37,317 INFO [stdout] (default task-1) Date :: [Fri, 23 Mar 2018 09:49:37 GMT]
> 10:49:37,317 INFO [stdout] (default task-1) Vary :: [Accept-Encoding]
> 10:49:37,317 INFO [stdout] (default task-1)
> {code}
> The BusTestCase fails after the same commit, just the exception is different:
> {code:java}
> ERROR [org.jboss.test.ws.jaxws.cxf.bus.EJB3Client] (default task-1) Could not run 'testSOAPConnection': javax.xml.soap.SOAPException: JBWS024004: SOAP message could not be sent
> at org.jboss.wsf.stack.cxf.saaj.SOAPConnectionImpl.call(SOAPConnectionImpl.java:130)
> at org.jboss.test.ws.jaxws.cxf.bus.AbstractClient.performSOAPCall(AbstractClient.java:167)
> at org.jboss.test.ws.jaxws.cxf.bus.AbstractClient.testSOAPConnection(AbstractClient.java:73)
> at org.jboss.test.ws.jaxws.cxf.bus.EJB3Client.testSOAPConnection(EJB3Client.java:54)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509)
> at org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:90)
> at org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:101)
> at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:40)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53)
> at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:273)
> at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:330)
> at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:238)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509)
> at org.jboss.weld.module.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:81)
> at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:89)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:89)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:47)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.deployment.processors.StartupAwaitInterceptor.processInvocation(StartupAwaitInterceptor.java:22)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.deployment.processors.EjbSuspendInterceptor.processInvocation(EjbSuspendInterceptor.java:57)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:67)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:60)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:438)
> at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:619)
> at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:57)
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53)
> at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:198)
> at org.wildfly.security.auth.server.SecurityIdentity.runAsFunctionEx(SecurityIdentity.java:380)
> at org.jboss.as.ejb3.remote.AssociationImpl.invokeWithIdentity(AssociationImpl.java:541)
> at org.jboss.as.ejb3.remote.AssociationImpl.invokeMethod(AssociationImpl.java:536)
> at org.jboss.as.ejb3.remote.AssociationImpl.lambda$receiveInvocationRequest$0(AssociationImpl.java:194)
> at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
> at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
> at java.lang.Thread.run(Thread.java:748)
> Caused by: org.apache.http.client.ClientProtocolException: ClientProtocolException invoking http://172.16.130.36:8080/jaxws-cxf-bus/EndpointService/Endpoint: null
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
> at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1387)
> at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1371)
> at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
> at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:658)
> at org.jboss.wsf.stack.cxf.saaj.SOAPConnectionImpl.call(SOAPConnectionImpl.java:126)
> ... 72 more
> Caused by: org.apache.http.client.ClientProtocolException
> at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:187)
> at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
> at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
> at org.wildfly.url.http.HttpClientURLConnection.doRequest(HttpClientURLConnection.java:189)
> at org.wildfly.url.http.HttpClientURLConnection.getResponseCode(HttpClientURLConnection.java:295)
> at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream$2.run(URLConnectionHTTPConduit.java:377)
> at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream$2.run(URLConnectionHTTPConduit.java:373)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.getResponseCode(URLConnectionHTTPConduit.java:373)
> at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.doProcessResponseCode(HTTPConduit.java:1584)
> at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1612)
> at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1557)
> at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1358)
> ... 75 more
> Caused by: org.apache.http.ProtocolException: Content-Length header already present
> at org.apache.http.protocol.RequestContent.process(RequestContent.java:97)
> at org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:133)
> at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:183)
> at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
> at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111)
> at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
> ... 87 more
> {code}
> After some debugging, this where correct request headers are sent from client https://github.com/wildfly/wildfly-url-http/blob/master/src/main/java/org..., on the next line incorrect response headers received.
> CC: [~honza889]
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 9 months
[JBoss JIRA] (JBWS-4109) Failures of response headers checking tests with latest wildfly
by Jan Blizňák (JIRA)
Jan Blizňák created JBWS-4109:
---------------------------------
Summary: Failures of response headers checking tests with latest wildfly
Key: JBWS-4109
URL: https://issues.jboss.org/browse/JBWS-4109
Project: JBoss Web Services
Issue Type: Bug
Components: jbossws-cxf
Reporter: Jan Blizňák
https://jbossws-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/jenkins/job/CXF-C...
We have few new test failures:
org.jboss.test.ws.jaxws.cxf.bus.BusTestCase.testBusLeakageInServletClient
org.jboss.test.ws.jaxws.cxf.bus.BusTestCase.testBusLeakageInEJB3Client
org.jboss.test.ws.jaxws.cxf.gzip.GZIPTestCase.testInContainerFailureGZIPServerSideOnlyInterceptorOnClient
org.jboss.test.ws.jaxws.cxf.gzip.GZIPTestCase.testInContainerGZIPServerSideOnlyInterceptorsOnBus
org.jboss.test.ws.jaxws.cxf.gzip.GZIPTestCase.testInContainerGZIPServerSideOnlyInterceptorOnClient
org.jboss.test.ws.jaxws.cxf.gzip.GZIPTestCase.testInContainerFailureGZIPServerSideOnlyInterceptorsOnBus
org.jboss.test.ws.jaxws.cxf.jbws3879.JBWS3879TestCase.testInContainerFailureGZIPServerSideOnlyInterceptorOnClient
org.jboss.test.ws.jaxws.cxf.jbws3879.JBWS3879TestCase.testInContainerGZIPServerSideOnlyInterceptorOnClient
I tracked it down to the commit https://github.com/wildfly/wildfly-core/commit/6d707d2ffce8789cdedc75838d... in WF core that added new module into server WFCORE-3658.
Check response headers received as a response to a client request accepting gzip:
{code:java}
https://github.com/wildfly/wildfly-core/commit/f70e3be8e98798c4d3fee381c7...
10:52:22,753 INFO [stdout] (default task-1) connection :: [keep-alive]
10:52:22,753 INFO [stdout] (default task-1) content-encoding :: [gzip]
10:52:22,753 INFO [stdout] (default task-1) Content-Length :: [157]
10:52:22,754 INFO [stdout] (default task-1) content-type :: [text/xml;charset=UTF-8]
10:52:22,754 INFO [stdout] (default task-1) Date :: [Fri, 23 Mar 2018 09:52:22 GMT]
10:52:22,754 INFO [stdout] (default task-1) Vary :: [Accept-Encoding]
https://github.com/wildfly/wildfly-core/commit/6d707d2ffce8789cdedc75838d...
10:49:37,316 INFO [stdout] (default task-1) connection :: [keep-alive]
10:49:37,317 INFO [stdout] (default task-1) content-type :: [text/xml;charset=UTF-8]
10:49:37,317 INFO [stdout] (default task-1) Date :: [Fri, 23 Mar 2018 09:49:37 GMT]
10:49:37,317 INFO [stdout] (default task-1) Vary :: [Accept-Encoding]
10:49:37,317 INFO [stdout] (default task-1)
{code}
The BusTestCase fails after the same commit, just the exception is different:
{code:java}
ERROR [org.jboss.test.ws.jaxws.cxf.bus.EJB3Client] (default task-1) Could not run 'testSOAPConnection': javax.xml.soap.SOAPException: JBWS024004: SOAP message could not be sent
at org.jboss.wsf.stack.cxf.saaj.SOAPConnectionImpl.call(SOAPConnectionImpl.java:130)
at org.jboss.test.ws.jaxws.cxf.bus.AbstractClient.performSOAPCall(AbstractClient.java:167)
at org.jboss.test.ws.jaxws.cxf.bus.AbstractClient.testSOAPConnection(AbstractClient.java:73)
at org.jboss.test.ws.jaxws.cxf.bus.EJB3Client.testSOAPConnection(EJB3Client.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509)
at org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:90)
at org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:101)
at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:40)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53)
at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:273)
at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:330)
at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:238)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509)
at org.jboss.weld.module.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:81)
at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:89)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:89)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:47)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.as.ejb3.deployment.processors.StartupAwaitInterceptor.processInvocation(StartupAwaitInterceptor.java:22)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.as.ejb3.deployment.processors.EjbSuspendInterceptor.processInvocation(EjbSuspendInterceptor.java:57)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:67)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:60)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:438)
at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:619)
at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:57)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53)
at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:198)
at org.wildfly.security.auth.server.SecurityIdentity.runAsFunctionEx(SecurityIdentity.java:380)
at org.jboss.as.ejb3.remote.AssociationImpl.invokeWithIdentity(AssociationImpl.java:541)
at org.jboss.as.ejb3.remote.AssociationImpl.invokeMethod(AssociationImpl.java:536)
at org.jboss.as.ejb3.remote.AssociationImpl.lambda$receiveInvocationRequest$0(AssociationImpl.java:194)
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.http.client.ClientProtocolException: ClientProtocolException invoking http://172.16.130.36:8080/jaxws-cxf-bus/EndpointService/Endpoint: null
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1387)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1371)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:658)
at org.jboss.wsf.stack.cxf.saaj.SOAPConnectionImpl.call(SOAPConnectionImpl.java:126)
... 72 more
Caused by: org.apache.http.client.ClientProtocolException
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:187)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
at org.wildfly.url.http.HttpClientURLConnection.doRequest(HttpClientURLConnection.java:189)
at org.wildfly.url.http.HttpClientURLConnection.getResponseCode(HttpClientURLConnection.java:295)
at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream$2.run(URLConnectionHTTPConduit.java:377)
at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream$2.run(URLConnectionHTTPConduit.java:373)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.getResponseCode(URLConnectionHTTPConduit.java:373)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.doProcessResponseCode(HTTPConduit.java:1584)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1612)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1557)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1358)
... 75 more
Caused by: org.apache.http.ProtocolException: Content-Length header already present
at org.apache.http.protocol.RequestContent.process(RequestContent.java:97)
at org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:133)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:183)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
... 87 more
{code}
After some debugging, this where correct request headers are sent from client https://github.com/wildfly/wildfly-url-http/blob/master/src/main/java/org..., on the next line incorrect response headers received.
CC: [~honza889]
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
6 years, 9 months