HttpClientOptions options = new HttpClientOptions().setSsl(true).setTrustAll(true);
HttpClient client = vertx.createHttpClient(options);
// read all the URLs and send requests with getAbsio.vertx.core.http.impl.HttpClientImpl.lambda$null$72(HttpClientImpl.java:763)
io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:680)
io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:603)
io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:563)
io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:424)
io.netty.handler.ssl.SslHandler.notifyHandshakeFailure(SslHandler.java:1122)
io.netty.handler.ssl.SslHandler.setHandshakeFailure(SslHandler.java:1117)
io.netty.handler.ssl.SslHandler.decode(SslHandler.java:864)
io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:249)
io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:149)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)
io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)
io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846)
io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)
java.lang.Thread.run(Thread.java:745)
javax.net.ssl.SSLHandshakeException: Failed to create SSL connection
at com.visualdna.nqs.scraping.verticles.CrawlerVerticle.handleHttpException(CrawlerVerticle.java:84)
at io.vertx.core.http.impl.HttpClientRequestImpl.lambda$exceptionHandler$80(HttpClientRequestImpl.java:262)
at io.vertx.core.http.impl.HttpClientImpl.lambda$connectionFailed$76(HttpClientImpl.java:840)
at io.vertx.core.impl.ContextImpl.lambda$wrapTask$18(ContextImpl.java:333)
at io.vertx.core.impl.ContextImpl.executeFromIO(ContextImpl.java:225)
at io.vertx.core.http.impl.HttpClientImpl.connectionFailed(HttpClientImpl.java:833)
at io.vertx.core.http.impl.HttpClientImpl.lambda$null$72(HttpClientImpl.java:765)
at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:680)
at io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:603)
at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:563)
at io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:424)
at io.netty.handler.ssl.SslHandler.notifyHandshakeFailure(SslHandler.java:1122)
at io.netty.handler.ssl.SslHandler.setHandshakeFailure(SslHandler.java:1117)
at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:864)
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:249)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:149)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)
at java.lang.Thread.run(Thread.java:745)
Caused by: io.netty.handler.ssl.NotSslRecordException: not an SSL/TLS record: numbers
at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:860) ... 12 more
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/5da93f95-bcb2-4ba0-86ba-b228967a9871%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
...
Tim, thanks for your reply
I've got 2 questions regarding your suggested solution:1. I know you can set the port when using the regular get/post methods, but since I need to use the getAbs method, is it also possible to set the port for it (getAbs) as well? If so, how?
2. Is it ok if I'll be using the same HttpClient for both the HTTP and HTTPS requests or should I separate them and use 1 HttpClient for each?
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/48d5cf12-e4f2-40f4-b656-419a74215825%40googlegroups.com.