Skip to content

Instantly share code, notes, and snippets.

@spmallette
Created December 16, 2022 15:57
Show Gist options
  • Save spmallette/0fbe3542cbe35c19d73267eb01d2ec7a to your computer and use it in GitHub Desktop.
Save spmallette/0fbe3542cbe35c19d73267eb01d2ec7a to your computer and use it in GitHub Desktop.
WebSocketClientBehaviorIntegrateTest#shouldPrintCorrectErrorForRegularWebSocketHandshakeTimeout()
[INFO] org.apache.tinkerpop.gremlin.driver.ConnectionPool - Signalled closing of connection pool on Host{address=localhost/127.0.0.1:45943, hostUri=ws://localhost:45943/gremlin} with core size of 1
[ERROR] org.apache.tinkerpop.gremlin.driver.Client$ClusteredClient - Could not initialize client for Host{address=localhost/127.0.0.1:45943, hostUri=ws://localhost:45943/gremlin}
[ERROR] org.apache.tinkerpop.gremlin.driver.Client$ClusteredClient - Initialization failed
java.util.concurrent.CompletionException: Could not initialize 1 (minPoolSize) connections in pool. Successful connections=0. Closing the connection pool.
at org.apache.tinkerpop.gremlin.driver.ConnectionPool.<init>(ConnectionPool.java:136)
at org.apache.tinkerpop.gremlin.driver.ConnectionPool.<init>(ConnectionPool.java:83)
at org.apache.tinkerpop.gremlin.driver.ConnectionPool.<init>(ConnectionPool.java:78)
at org.apache.tinkerpop.gremlin.driver.Client$ClusteredClient.lambda$new$5(Client.java:583)
at org.apache.tinkerpop.gremlin.driver.Client$ClusteredClient.lambda$initializeImplementation$0(Client.java:533)
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run$$$capture(CompletableFuture.java:1736)
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:264)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: org.apache.tinkerpop.gremlin.driver.exception.ConnectionException: Could not open Connection{channel=0e05abe2 host=Host{address=localhost/127.0.0.1:45943, hostUri=ws://localhost:45943/gremlin} isDead=false borrowed=0 pending=0 markedReplaced=false closing=false created=2022-12-16T15:55:06.391501Z thread=gremlin-driver-conn-scheduler-1}
at org.apache.tinkerpop.gremlin.driver.Connection.<init>(Connection.java:143)
at org.apache.tinkerpop.gremlin.driver.ConnectionFactory.create(ConnectionFactory.java:34)
at org.apache.tinkerpop.gremlin.driver.ConnectionPool.lambda$new$0(ConnectionPool.java:109)
... 9 common frames omitted
Caused by: org.apache.tinkerpop.gremlin.driver.exception.ConnectionException: Timed out while waiting to complete the connection setup. Consider increasing the WebSocket handshake timeout duration.
at org.apache.tinkerpop.gremlin.driver.Channelizer$WebSocketChannelizer.connected(Channelizer.java:231)
at org.apache.tinkerpop.gremlin.driver.Connection.<init>(Connection.java:120)
... 11 common frames omitted
Caused by: java.util.concurrent.TimeoutException: WebSocket handshake not completed in stipulated time=[100]ms
at org.apache.tinkerpop.gremlin.driver.handler.WebSocketClientHandler.userEventTriggered(WebSocketClientHandler.java:118)
at io.netty.channel.AbstractChannelHandlerContext.invokeUserEventTriggered(AbstractChannelHandlerContext.java:400)
at io.netty.channel.AbstractChannelHandlerContext.invokeUserEventTriggered(AbstractChannelHandlerContext.java:376)
at io.netty.channel.AbstractChannelHandlerContext.fireUserEventTriggered(AbstractChannelHandlerContext.java:368)
at io.netty.handler.codec.http.websocketx.WebSocketClientProtocolHandshakeHandler$2.run(WebSocketClientProtocolHandshakeHandler.java:121)
at io.netty.util.concurrent.PromiseTask.runTask(PromiseTask.java:98)
at io.netty.util.concurrent.ScheduledFutureTask.run(ScheduledFutureTask.java:153)
at io.netty.util.concurrent.AbstractEventExecutor.runTask$$$capture(AbstractEventExecutor.java:174)
at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute$$$capture(AbstractEventExecutor.java:167)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:569)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
... 1 common frames omitted
[ERROR] org.apache.tinkerpop.gremlin.driver.handler.WebSocketClientHandler - WebSocket handshake not completed in stipulated time=[100]ms
java.lang.AssertionError
at org.junit.Assert.fail(Assert.java:87)
at org.junit.Assert.assertTrue(Assert.java:42)
at org.junit.Assert.assertTrue(Assert.java:53)
at org.apache.tinkerpop.gremlin.driver.WebSocketClientBehaviorIntegrateTest.shouldPrintCorrectErrorForRegularWebSocketHandshakeTimeout(WebSocketClientBehaviorIntegrateTest.java:371)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment