当前位置:网站首页>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
边栏推荐
- stm32F407-------DMA
- Redis:Redis的简单使用
- Redis: simple use of redis
- 小程序開發的部分功能
- [Yu Yue education] Jiujiang University material analysis and testing technology reference
- Kotlin middle process understanding and Practice (II)
- Anna: Beibei, can you draw?
- 502 (bad gateway) causes and Solutions
- Method of removing webpage scroll bar and inner and outer margins
- Depth (penetration) selector:: v-deep/deep/ and > > >
猜你喜欢
Anna: Beibei, can you draw?
The testing process that software testers should know
Recommendation letter of "listing situation" -- courage is the most valuable
[shutter] shutter debugging (debugging control related functions | breakpoint management | code operation control)
小程序開發的部分功能
【Camera专题】手把手撸一份驱动 到 点亮Camera
Redis: simple use of redis
使用Go语言实现try{}catch{}finally
Introduce in detail how to communicate with Huawei cloud IOT through mqtt protocol
深度学习笔记(持续更新中。。。)
随机推荐
Custom components, using NPM packages, global data sharing, subcontracting
Leetcode(540)——有序数组中的单一元素
How can retail enterprises open the second growth curve under the full link digital transformation
人脸识别6- face_recognition_py-基于OpenCV使用Haar级联与dlib库进行人脸检测及实时跟踪
DDL basic operation
Basic operation of view
Reprint some Qt development experience written by great Xia 6.5
Kotlin middle process understanding and Practice (II)
When the epidemic comes, how to manage the team as a leader| Community essay solicitation
Rockchip3399 start auto load driver
[shutter] pull the navigation bar sideways (drawer component | pageview component)
How to deal with cache hot key in redis
Redis:Redis的简单使用
Network security - talking about security threats
Network security - password cracking
Recommendation letter of "listing situation" -- courage is the most valuable
Iptables layer 4 forwarding
返回一个树形结构数据
Use go language to realize try{}catch{}finally
Learn BeanShell before you dare to say you know JMeter