Something with the setup/teardown or cleanup of REST resources is causing RESTEasyGatewayTest to fail under surefire 2.19.1. It succeeds under surefire 2.6, and succeeds under surefire 2.19.1 if run in isolation (no other tests run).
Results :
Failed tests: RESTEasyGatewayTest.restGatewayServiceTest:130 expected:<1> but was:<0> Tests in error: RESTEasyGatewayTest.restGatewayReferenceTest:144 » InvocationFault
09:25:15,004 ERROR [org.switchyard.component.resteasy.OutboundHandler] SWITCHYARD038019: Unexpected exception composing inbound REST response org.jboss.resteasy.client.exception.ResteasyIOException: IOException at org.jboss.resteasy.client.exception.mapper.ApacheHttpClient4ExceptionMapper.mapIOException(ApacheHttpClient4ExceptionMapper.java:110) at org.jboss.resteasy.client.exception.mapper.ApacheHttpClient4ExceptionMapper.toException(ApacheHttpClient4ExceptionMapper.java:67) at org.jboss.resteasy.client.exception.mapper.ApacheHttpClient4ExceptionMapper.toException(ApacheHttpClient4ExceptionMapper.java:59) at org.switchyard.component.resteasy.util.ClientInvoker.invoke(ClientInvoker.java:459) at org.switchyard.component.resteasy.OutboundHandler.handleMessage(OutboundHandler.java:151) at org.switchyard.handlers.ProviderHandler.handleMessage(ProviderHandler.java:77) at org.switchyard.bus.camel.processors.HandlerProcessor.process(HandlerProcessor.java:61) at org.apache.camel.processor.DelegateSyncProcessor.process(DelegateSyncProcessor.java:63) at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:91) at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:91) at org.switchyard.bus.camel.audit.FaultProcessor.process(FaultProcessor.java:45) at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:91) at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191) at org.apache.camel.processor.Pipeline.process(Pipeline.java:118) at org.apache.camel.processor.Pipeline.process(Pipeline.java:80) at org.apache.camel.processor.TryProcessor.process(TryProcessor.java:113) at org.apache.camel.processor.TryProcessor.process(TryProcessor.java:84) at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:91) at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:91) at org.switchyard.bus.camel.audit.FaultProcessor.process(FaultProcessor.java:45) at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:91) at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191) at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191) at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:51) at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191) at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:109) at org.apache.camel.processor.UnitOfWorkProducer.process(UnitOfWorkProducer.java:68) at org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:375) at org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:343) at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:233) at org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:343) at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:168) at org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:119) at org.switchyard.bus.camel.ExchangeDispatcher.dispatch(ExchangeDispatcher.java:94) at org.switchyard.bus.camel.CamelExchange.sendInternal(CamelExchange.java:238) at org.switchyard.bus.camel.CamelExchange.send(CamelExchange.java:175) at org.switchyard.test.Invoker.sendInOut(Invoker.java:320) at org.switchyard.component.resteasy.RESTEasyGatewayTest.restGatewayReferenceTimeout(RESTEasyGatewayTest.java:168) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:344) at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:269) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:240) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:184) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:286) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:240) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121) Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:152) at java.net.SocketInputStream.read(SocketInputStream.java:122) at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:160) at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:84) at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:273) at org.apache.http.impl.conn.LoggingSessionInputBuffer.readLine(LoggingSessionInputBuffer.java:116) at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:140) at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:57) at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:260) at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:283) at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:251) at org.apache.http.impl.conn.ManagedClientConnectionImpl.receiveResponseHeader(ManagedClientConnectionImpl.java:197) at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:271) at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123) at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:685) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:487) at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57) at org.jboss.resteasy.client.core.executors.ApacheHttpClient4Executor.execute(ApacheHttpClient4Executor.java:177) at org.jboss.resteasy.core.interception.ClientExecutionContextImpl.proceed(ClientExecutionContextImpl.java:39) at org.jboss.resteasy.plugins.interceptors.encoding.AcceptEncodingGZIPInterceptor.execute(AcceptEncodingGZIPInterceptor.java:40) at org.jboss.resteasy.core.interception.ClientExecutionContextImpl.proceed(ClientExecutionContextImpl.java:45) at org.jboss.resteasy.client.ClientRequest.execute(ClientRequest.java:445) at org.jboss.resteasy.client.ClientRequest.httpMethod(ClientRequest.java:688) at org.switchyard.component.resteasy.util.ClientInvoker.invoke(ClientInvoker.java:453) ... 62 more 09:25:15,011 TRACE [org.switchyard.component.resteasy.resource.StandaloneResourcePublisher] Stopping StandaloneResource: context=/, resouces=[org.switchyard.component.resteasy.util.RESTEasyProxy@64de9461], providers=null 09:25:15,011 TRACE [org.switchyard.component.resteasy.resource.StandaloneResourcePublisher] Removing RESTEasy Resource: org.switchyard.component.resteasy.util.RESTEasyProxy@64de9461 09:25:15,011 TRACE [org.switchyard.component.resteasy.resource.StandaloneResourcePublisher] Stopped StandaloneResource - Refreshing Sun HTTP Server: context=/, resources=[], providers=[] Tests run: 3, Failures: 1, Errors: 1, Skipped: 0, Time elapsed: 5.263 sec <<< FAILURE! - in org.switchyard.component.resteasy.RESTEasyGatewayTest restGatewayServiceTest(org.switchyard.component.resteasy.RESTEasyGatewayTest) Time elapsed: 1.292 sec <<< FAILURE! java.lang.AssertionError: expected:<1> but was:<0> at org.switchyard.component.resteasy.RESTEasyGatewayTest.restGatewayServiceTest(RESTEasyGatewayTest.java:130)
restGatewayReferenceTest(org.switchyard.component.resteasy.RESTEasyGatewayTest) Time elapsed: 1.243 sec <<< ERROR! org.switchyard.test.InvocationFaultException at org.switchyard.component.resteasy.RESTEasyGatewayTest.restGatewayReferenceTest(RESTEasyGatewayTest.java:144) Caused by: org.switchyard.HandlerException: SWITCHYARD038019: Unexpected exception composing inbound REST response at org.switchyard.component.resteasy.RESTEasyGatewayTest.restGatewayReferenceTest(RESTEasyGatewayTest.java:144) Caused by: org.jboss.resteasy.client.ClientResponseFailure: RESTEASY001130: Error status 400 Bad Request returned at org.switchyard.component.resteasy.RESTEasyGatewayTest.restGatewayReferenceTest(RESTEasyGatewayTest.java:144)
|