Class groovyx.net.http.OkHttpTraceSpec

5

tests

0

failures

0

ignored

0.132s

duration

100%

successful

Tests

Test Duration Result
trace() 0.031s passed
trace(Class,Closure) 0.024s passed
trace(Class,Consumer) 0.034s passed
trace(Closure) 0.025s passed
trace(Consumer) 0.018s passed

Standard output

06:25:25.975 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@1c0f99a0
06:25:25.980 [XNIO-103 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-103 I/O-2', selector sun.nio.ch.EPollSelectorImpl@4273c166
06:25:25.981 [XNIO-103 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-103 I/O-1', selector sun.nio.ch.EPollSelectorImpl@2032b89b
06:25:25.980 [XNIO-103 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-103 I/O-4', selector sun.nio.ch.EPollSelectorImpl@63c0851f
06:25:25.981 [XNIO-103 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-103 I/O-6', selector sun.nio.ch.EPollSelectorImpl@798cdc55
06:25:25.981 [XNIO-103 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-103 I/O-7', selector sun.nio.ch.EPollSelectorImpl@4d4da75c
06:25:25.980 [XNIO-103 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-103 I/O-3', selector sun.nio.ch.EPollSelectorImpl@6eca8197
06:25:25.981 [XNIO-103 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-103 I/O-8', selector sun.nio.ch.EPollSelectorImpl@2f420be4
06:25:25.981 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
06:25:25.980 [XNIO-103 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-103 I/O-5', selector sun.nio.ch.EPollSelectorImpl@7962935d
06:25:25.981 [XNIO-103 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-103 Accept', selector sun.nio.ch.EPollSelectorImpl@112eb22d
06:25:25.982 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTPS for interface localhost and port 0
06:25:25.996 [Test worker] DEBUG ersatz.undertow - stopping undertow server ersatz.undertow.Undertow@1c0f99a0
06:25:25.998 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@30f494db
06:25:26.002 [XNIO-104 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-104 I/O-1', selector sun.nio.ch.EPollSelectorImpl@48427640
06:25:26.006 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
06:25:26.006 [XNIO-104 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-104 I/O-6', selector sun.nio.ch.EPollSelectorImpl@17aa0b1
06:25:26.006 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTPS for interface localhost and port 0
06:25:26.002 [XNIO-104 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-104 I/O-2', selector sun.nio.ch.EPollSelectorImpl@e80d899
06:25:26.002 [XNIO-104 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-104 I/O-3', selector sun.nio.ch.EPollSelectorImpl@7691c573
06:25:26.002 [XNIO-104 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-104 I/O-4', selector sun.nio.ch.EPollSelectorImpl@4af7f313
06:25:26.006 [XNIO-104 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-104 I/O-5', selector sun.nio.ch.EPollSelectorImpl@78096eb8
06:25:26.006 [XNIO-104 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-104 I/O-8', selector sun.nio.ch.EPollSelectorImpl@1833b6c0
06:25:26.006 [XNIO-104 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-104 Accept', selector sun.nio.ch.EPollSelectorImpl@3ef7e399
06:25:26.006 [XNIO-104 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-104 I/O-7', selector sun.nio.ch.EPollSelectorImpl@230c617
06:25:26.022 [Test worker] DEBUG ersatz.undertow - stopping undertow server ersatz.undertow.Undertow@30f494db
06:25:26.025 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@4c8cda24
06:25:26.026 [XNIO-105 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-105 I/O-1', selector sun.nio.ch.EPollSelectorImpl@4f66b986
06:25:26.029 [XNIO-105 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-105 I/O-2', selector sun.nio.ch.EPollSelectorImpl@572cb2c6
06:25:26.029 [XNIO-105 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-105 I/O-3', selector sun.nio.ch.EPollSelectorImpl@5cd9a140
06:25:26.030 [XNIO-105 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-105 I/O-6', selector sun.nio.ch.EPollSelectorImpl@72cdd73e
06:25:26.030 [XNIO-105 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-105 I/O-5', selector sun.nio.ch.EPollSelectorImpl@46cb42f5
06:25:26.030 [XNIO-105 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-105 I/O-4', selector sun.nio.ch.EPollSelectorImpl@109bd048
06:25:26.034 [XNIO-105 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-105 I/O-8', selector sun.nio.ch.EPollSelectorImpl@1dd27c31
06:25:26.034 [XNIO-105 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-105 I/O-7', selector sun.nio.ch.EPollSelectorImpl@3ab4e896
06:25:26.034 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
06:25:26.034 [XNIO-105 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-105 Accept', selector sun.nio.ch.EPollSelectorImpl@50ebec25
06:25:26.034 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTPS for interface localhost and port 0
06:25:26.046 [Test worker] DEBUG ersatz.undertow - stopping undertow server ersatz.undertow.Undertow@4c8cda24
06:25:26.049 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@5ba7bdb5
06:25:26.051 [XNIO-106 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-106 I/O-2', selector sun.nio.ch.EPollSelectorImpl@68bdd6a4
06:25:26.051 [XNIO-106 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-106 I/O-1', selector sun.nio.ch.EPollSelectorImpl@10a752f5
06:25:26.052 [XNIO-106 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-106 I/O-3', selector sun.nio.ch.EPollSelectorImpl@5fccfc17
06:25:26.052 [XNIO-106 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-106 I/O-6', selector sun.nio.ch.EPollSelectorImpl@2b326537
06:25:26.052 [XNIO-106 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-106 I/O-4', selector sun.nio.ch.EPollSelectorImpl@7ec4c13d
06:25:26.052 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
06:25:26.052 [XNIO-106 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-106 I/O-8', selector sun.nio.ch.EPollSelectorImpl@7128db7d
06:25:26.052 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTPS for interface localhost and port 0
06:25:26.052 [XNIO-106 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-106 I/O-5', selector sun.nio.ch.EPollSelectorImpl@295427e0
06:25:26.052 [XNIO-106 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-106 I/O-7', selector sun.nio.ch.EPollSelectorImpl@7c9cc368
06:25:26.052 [XNIO-106 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-106 Accept', selector sun.nio.ch.EPollSelectorImpl@62e50d7e
06:25:26.065 [Test worker] DEBUG ersatz.undertow - stopping undertow server ersatz.undertow.Undertow@5ba7bdb5
06:25:26.066 [XNIO-106 task-2] ERROR ersatz.undertow.request - UT005071: Undertow request failed HttpServerExchange{ TRACE /something request {Connection=[Keep-Alive], Accept-Encoding=[gzip], User-Agent=[okhttp/3.5.0], Host=[localhost:45361]} response {Content-Encoding=[gzip], Connection=[keep-alive], Content-Type=[message/http], Content-Length=[136], Date=[Mon, 20 Nov 2017 12:25:18 GMT]}}
java.lang.NullPointerException: null
	at ersatz.undertow.conduits.DeflatingStreamSinkConduit.performFlushIfRequired(DeflatingStreamSinkConduit.java:427)
	at ersatz.undertow.conduits.DeflatingStreamSinkConduit.flush(DeflatingStreamSinkConduit.java:349)
	at ersatz.xnio.conduits.ConduitStreamSinkChannel.flush(ConduitStreamSinkChannel.java:162)
	at ersatz.undertow.channels.DetachableStreamSinkChannel.flush(DetachableStreamSinkChannel.java:119)
	at ersatz.xnio.channels.Channels.flushBlocking(Channels.java:63)
	at ersatz.undertow.io.UndertowOutputStream.close(UndertowOutputStream.java:344)
	at ersatz.undertow.io.BlockingSenderImpl.close(BlockingSenderImpl.java:170)
	at ersatz.undertow.io.DefaultIoCallback.onComplete(DefaultIoCallback.java:54)
	at ersatz.undertow.io.BlockingSenderImpl.invokeOnComplete(BlockingSenderImpl.java:227)
	at ersatz.undertow.io.BlockingSenderImpl.send(BlockingSenderImpl.java:95)
	at ersatz.undertow.io.BlockingSenderImpl.send(BlockingSenderImpl.java:117)
	at ersatz.undertow.server.handlers.HttpTraceHandler.handleRequest(HttpTraceHandler.java:68)
	at ersatz.undertow.server.handlers.encoding.EncodingHandler.handleRequest(EncodingHandler.java:72)
	at ersatz.undertow.server.Connectors.executeRootHandler(Connectors.java:332)
	at ersatz.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:812)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
06:25:26.067 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@6344afb8
06:25:26.068 [XNIO-107 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-107 I/O-1', selector sun.nio.ch.EPollSelectorImpl@44cc6b17
06:25:26.068 [XNIO-107 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-107 I/O-2', selector sun.nio.ch.EPollSelectorImpl@3c8c3c1e
06:25:26.068 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
06:25:26.068 [XNIO-107 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-107 I/O-8', selector sun.nio.ch.EPollSelectorImpl@2cdbf8
06:25:26.068 [XNIO-107 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-107 I/O-4', selector sun.nio.ch.EPollSelectorImpl@2a8011c5
06:25:26.068 [XNIO-107 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-107 I/O-7', selector sun.nio.ch.EPollSelectorImpl@47550439
06:25:26.068 [XNIO-107 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-107 I/O-3', selector sun.nio.ch.EPollSelectorImpl@155289e7
06:25:26.068 [XNIO-107 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-107 I/O-6', selector sun.nio.ch.EPollSelectorImpl@391a401d
06:25:26.068 [XNIO-107 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-107 Accept', selector sun.nio.ch.EPollSelectorImpl@4f80ea95
06:25:26.068 [XNIO-107 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-107 I/O-5', selector sun.nio.ch.EPollSelectorImpl@6bd1abc8
06:25:26.069 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTPS for interface localhost and port 0
06:25:26.098 [Test worker] DEBUG ersatz.undertow - stopping undertow server ersatz.undertow.Undertow@6344afb8