-
Bug
-
Resolution: Done
-
Major
-
None
-
None
The VertxClientEngineTest seems to fail frequently on Windows. This might be a sign of a timing issue where the HttpClientResponse is completed before the InputStreamAdapter is created resulting in the following exception.
2021-04-08T17:55:47.7273988Z [INFO] ------------------------------------------------------- 2021-04-08T17:55:47.7277008Z [INFO] T E S T S 2021-04-08T17:55:47.7287078Z [INFO] ------------------------------------------------------- 2021-04-08T17:55:48.2633844Z [INFO] Running org.jboss.resteasy.test.client.vertx.InputStreamAdapterTest 2021-04-08T17:55:49.1053938Z [INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.826 s - in org.jboss.resteasy.test.client.vertx.InputStreamAdapterTest 2021-04-08T17:55:49.1057317Z [INFO] Running org.jboss.resteasy.test.client.vertx.VertxClientEngineTest 2021-04-08T17:55:56.3004890Z [ERROR] Tests run: 12, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 7.204 s <<< FAILURE! - in org.jboss.resteasy.test.client.vertx.VertxClientEngineTest 2021-04-08T17:55:56.3035113Z [ERROR] testSimpleStringRx(org.jboss.resteasy.test.client.vertx.VertxClientEngineTest) Time elapsed: 0.15 s <<< ERROR! 2021-04-08T17:55:56.3038056Z java.util.concurrent.ExecutionException: java.lang.IllegalStateException 2021-04-08T17:55:56.3054718Z at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:395) 2021-04-08T17:55:56.3057436Z at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1999) 2021-04-08T17:55:56.3061135Z at org.jboss.resteasy.test.client.vertx.VertxClientEngineTest.testSimpleStringRx(VertxClientEngineTest.java:156) 2021-04-08T17:55:56.3064326Z at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2021-04-08T17:55:56.3066661Z at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 2021-04-08T17:55:56.3069345Z at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 2021-04-08T17:55:56.3071805Z at java.base/java.lang.reflect.Method.invoke(Method.java:566) 2021-04-08T17:55:56.3081769Z at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) 2021-04-08T17:55:56.3084403Z at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) 2021-04-08T17:55:56.3093750Z at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) 2021-04-08T17:55:56.3100349Z at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) 2021-04-08T17:55:56.3103212Z at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) 2021-04-08T17:55:56.3106065Z at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) 2021-04-08T17:55:56.3107877Z at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) 2021-04-08T17:55:56.3109731Z at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) 2021-04-08T17:55:56.3111511Z at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) 2021-04-08T17:55:56.3115552Z at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) 2021-04-08T17:55:56.3118883Z at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) 2021-04-08T17:55:56.3120599Z at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) 2021-04-08T17:55:56.3121756Z at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) 2021-04-08T17:55:56.3124071Z at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) 2021-04-08T17:55:56.3126169Z at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) 2021-04-08T17:55:56.3128062Z at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) 2021-04-08T17:55:56.3129254Z at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) 2021-04-08T17:55:56.3131289Z at org.junit.runners.ParentRunner.run(ParentRunner.java:413) 2021-04-08T17:55:56.3133696Z at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365) 2021-04-08T17:55:56.3136275Z at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273) 2021-04-08T17:55:56.3140661Z at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238) 2021-04-08T17:55:56.3149472Z at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159) 2021-04-08T17:55:56.3152562Z at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:383) 2021-04-08T17:55:56.3156449Z at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344) 2021-04-08T17:55:56.3159889Z at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125) 2021-04-08T17:55:56.3162360Z at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417) 2021-04-08T17:55:56.3163964Z Caused by: java.lang.IllegalStateException 2021-04-08T17:55:56.3166003Z at io.vertx.core.http.impl.HttpClientResponseImpl.checkEnded(HttpClientResponseImpl.java:150) 2021-04-08T17:55:56.3169272Z at io.vertx.core.http.impl.HttpClientResponseImpl.handler(HttpClientResponseImpl.java:158) 2021-04-08T17:55:56.3172316Z at io.vertx.core.http.impl.HttpClientResponseImpl.handler(HttpClientResponseImpl.java:38) 2021-04-08T17:55:56.3184268Z at org.jboss.resteasy.client.jaxrs.engines.vertx.InputStreamAdapter.<init>(InputStreamAdapter.java:28) 2021-04-08T17:55:56.3188337Z at org.jboss.resteasy.client.jaxrs.engines.vertx.VertxClientHttpEngine.toRestEasyResponse(VertxClientHttpEngine.java:236) 2021-04-08T17:55:56.3193951Z at org.jboss.resteasy.client.jaxrs.engines.vertx.VertxClientHttpEngine.lambda$submit$7(VertxClientHttpEngine.java:152) 2021-04-08T17:55:56.3196795Z at io.vertx.core.impl.future.Mapping.onSuccess(Mapping.java:35) 2021-04-08T17:55:56.3198488Z at io.vertx.core.impl.future.FutureBase.lambda$emitSuccess$0(FutureBase.java:54) 2021-04-08T17:55:56.3201301Z at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164) 2021-04-08T17:55:56.3205056Z at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472) 2021-04-08T17:55:56.3207411Z at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500) 2021-04-08T17:55:56.3209416Z at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) 2021-04-08T17:55:56.3211653Z at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) 2021-04-08T17:55:56.3214029Z at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) 2021-04-08T17:55:56.3217442Z at java.base/java.lang.Thread.run(Thread.java:834) 2021-04-08T17:55:56.3218293Z 2021-04-08T17:55:56.7247710Z [INFO] 2021-04-08T17:55:56.7267053Z [INFO] Results: 2021-04-08T17:55:56.7267727Z [INFO] 2021-04-08T17:55:56.7268735Z [ERROR] Errors: 2021-04-08T17:55:56.7270350Z [ERROR] VertxClientEngineTest.testSimpleStringRx:156 � Execution java.lang.IllegalStat... 2021-04-08T17:55:56.7273288Z [INFO] 2021-04-08T17:55:56.7274720Z [ERROR] Tests run: 18, Failures: 0, Errors: 1, Skipped: 0 2021-04-08T17:55:56.7275631Z [INFO] 2021-04-08T17:55:56.7282773Z [INFO]