当前位置:网站首页>Unrecognized SSL message, plaintext connection?
Unrecognized SSL message, plaintext connection?
2022-07-03 02:09:00 【Aegean child】
Preface
It was almost off work yesterday , A colleague posted an exception log in the Group , The contents are as follows
Failed to send email :{}
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at sun.security.ssl.InputRecord.handleUnknownRecord(InputRecord.java:710)
at sun.security.ssl.InputRecord.read(InputRecord.java:527)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
at com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:619)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:393)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:217)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2160)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:726)
at javax.mail.Service.connect(Service.java:366)
Error reporting log is a function of sending email , He wondered if the email content contained escape characters , As a result, some emails can be sent normally , Some emails fail to be sent .
Nature of the problem
Look at this abnormal log , Like SSL Analytical problem , Services involving email sending have been upgraded to SSL 了 , The services have been launched , Sending email related codes is theoretically no problem , Later I thought of sending mail 25 Port and 465 port , Give it a try , Go to the integrated environment server and check the configuration of the mail server , The truth is clear ,66 The mailbox port on the server is 25 Of , and 169 The port on the server is 465 Of , Two nodes on the server , Request polling on both nodes , This explains , Why are some emails sent ok Of . It is clear that it will 25 Port to 465 Just ok 了 .
When troubleshooting , Occasional problems often occur , At this time, it is necessary to consider whether the environment has multiple nodes , Node environment 、 Is the configuration consistent . It has appeared before mq Misconfigured , Test environment mq Consume the message problem of the integrated environment , So be calm when troubleshooting problems , It depends on the actual error information in the exception log , So as to check the problem again .
Specific email support SSL Related information , You can see Email sending tool class
边栏推荐
- The technology boss is ready, and the topic of position C is up to you
- Network security - scan
- Internal connection query and external connection
- [leetcode] 797 and 1189 (basis of graph theory)
- easyPOI
- [Yu Yue education] Jiujiang University material analysis and testing technology reference
- udp接收队列以及多次初始化的测试
- 《上市风云》荐书——唯勇气最可贵
- Button button adaptive size of wechat applet
- Swift development learning
猜你喜欢
Use go language to realize try{}catch{}finally
PyTorch 卷积网络正则化 DropBlock
elastic stack
微信小程序开发工具 POST net::ERR_PROXY_CONNECTION_FAILED 代理问题
How to deal with cache hot key in redis
ByteDance data Lake integration practice based on Hudi
Custom components, using NPM packages, global data sharing, subcontracting
[shutter] bottom navigation bar implementation (bottomnavigationbar bottom navigation bar | bottomnavigationbaritem navigation bar entry | pageview)
[shutter] top navigation bar implementation (scaffold | defaulttabcontroller | tabbar | tab | tabbarview)
Asian Games countdown! AI target detection helps host the Asian Games!
随机推荐
小程序開發的部分功能
【Camera专题】HAL层-addChannel和startChannel简析
Explore the conversion between PX pixels and Pt pounds, mm and MM
[Yu Yue education] reference materials of chemical experiment safety knowledge of University of science and technology of China
Use go language to realize try{}catch{}finally
In the face of difficult SQL requirements, HQL is not afraid
[camera topic] how to save OTP data in user-defined nodes
The Sandbox阐释对元宇宙平台的愿景
Return the only different value (de duplication)
Detailed introduction to the usage of Nacos configuration center
[shutter] shutter debugging (debugging fallback function | debug method of viewing variables in debugging | console information)
Huakaiyun (Zhiyin) | virtual host: what is a virtual host
Query product cases - page rendering data
Basic operation of view
我的创作纪念日
查询商品案例-页面渲染数据
各国Web3现状与未来
力扣(LeetCode)183. 从不订购的客户(2022.07.02)
What are the key points often asked in the redis interview
微服务组件Sentinel (Hystrix)详细分析