Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    Expert tip

    If you're using wiremock, configure your code to accept wiremock self-signed certificate or create a keystore and certificate that are trusted by your HTTP client and configure wiremock to use that

  2. ,
    via Stack Overflow by carlos

    Set the mail.smtp.ssl.trust system property to an smtp host, like smtp.gmail.com.

Solutions on the web

via GitHub by clarsonneur
, 1 year ago
javax.net.ssl.SSLHandshakeException: General SSLEngine problem
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target	at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)	at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)	at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)	at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382)	at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292)	at sun.security.validator.Validator.validate(Validator.java:260)	at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)	at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:281)	at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:136)	at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1496)	at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)	at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)	at sun.security.ssl.Handshaker$1.run(Handshaker.java:919)	at sun.security.ssl.Handshaker$1.run(Handshaker.java:916)	at java.security.AccessController.doPrivileged(Native Method)	at sun.security.ssl.Handshaker$DelegatedTask.run(Handshaker.java:1369)	at com.github.kostyasha.yad_docker_java.io.netty.handler.ssl.SslHandler.runDelegatedTasks(SslHandler.java:1120)	at com.github.kostyasha.yad_docker_java.io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1005)	at com.github.kostyasha.yad_docker_java.io.netty.handler.ssl.SslHandler.decode(SslHandler.java:900)	at com.github.kostyasha.yad_docker_java.io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:411)	at com.github.kostyasha.yad_docker_java.io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:248)	at com.github.kostyasha.yad_docker_java.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)	at com.github.kostyasha.yad_docker_java.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)	at com.github.kostyasha.yad_docker_java.io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:350)	at com.github.kostyasha.yad_docker_java.io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334)	at com.github.kostyasha.yad_docker_java.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)	at com.github.kostyasha.yad_docker_java.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)	at com.github.kostyasha.yad_docker_java.io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926)	at com.github.kostyasha.yad_docker_java.io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:123)	at com.github.kostyasha.yad_docker_java.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:571)	at com.github.kostyasha.yad_docker_java.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:512)	at com.github.kostyasha.yad_docker_java.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:426)	at com.github.kostyasha.yad_docker_java.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:398)	at com.github.kostyasha.yad_docker_java.io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:877)	at com.github.kostyasha.yad_docker_java.io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)	at java.lang.Thread.run(Thread.java:745)