当前位置:网站首页>Unrecognized SSL message, plaintext connection?
Unrecognized SSL message, plaintext connection?
2022-07-03 02:00:00 【爱琴孩】
前言
昨天快下班了,一同事在群里发了一个异常日志,内容如下
发送邮件失败:{}
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)
报错日志是一个发送邮件功能,他怀疑是不是邮件内容中包含了转义字符,导致有的邮件可以正常发送,有的邮件发送失败。
问题本质
看这异常日志,像是SSL解析问题,涉及邮件发送的服务之前都升级为SSL了,服务都已经上线了,发送邮件相关代码理论上是没问题的,后来想到邮件发送的25端口和465端口,报着试试的态度,去集成环境服务器上查看了下邮件服务器的配置,真相大白了,66服务器上邮箱端口居然是25的,而169服务器上的端口是465的,服务端两个节点,请求在两个节点上轮询,这就解释了,为啥有的邮件发送是ok的。显然将25端口改为465就ok了。
在排查问题的时候,经常会出现偶现问题,这时候就要考虑环境的是否有多节点,节点环境、配置是否一致。之前还出现过mq配置错的,测试环境的mq消费了集成环境的消息问题,所以在排查问题的时候要冷静,要看异常日志的实际报错信息,从而再排查问题。
具体邮件支持SSL相关信息,可以查看邮件发送工具类
边栏推荐
- Use go language to realize try{}catch{}finally
- 使用Go语言实现try{}catch{}finally
- Bottleneck period must see: how can testers who have worked for 3-5 years avoid detours and break through smoothly
- Where is the future of test engineers? Confused to see
- Internal connection query and external connection
- A 30-year-old software tester, who has been unemployed for 4 months, is confused and doesn't know what to do?
- Comment communiquer avec Huawei Cloud IOT via le Protocole mqtt
- String replace space
- His experience in choosing a startup company or a big Internet company may give you some inspiration
- 力扣(LeetCode)183. 从不订购的客户(2022.07.02)
猜你喜欢
深度(穿透)选择器 ::v-deep/deep/及 > > >
[camera topic] how to save OTP data in user-defined nodes
8 free, HD, copyright free video material download websites are recommended
What are MySQL locks and classifications
Everything file search tool
Distributed transaction solution
What are the key points often asked in the redis interview
Bottleneck period must see: how can testers who have worked for 3-5 years avoid detours and break through smoothly
Deep learning notes (constantly updating...)
How can retail enterprises open the second growth curve under the full link digital transformation
随机推荐
[shutter] bottom navigation bar implementation (bottomnavigationbar bottom navigation bar | bottomnavigationbaritem navigation bar entry | pageview)
Network security - Information Collection
Cfdiv2 Fixed Point Guessing - (2 points for Interval answer)
stm32F407-------DMA
LabVIEW安装第三方VISA软件后NI VISA失效
技术大佬准备就绪,话题C位由你决定
CFdiv2-Fixed Point Guessing-(區間答案二分)
elastic stack
Network security ACL access control list
How to refresh the opening amount of Oracle ERP
缺少库while loading shared libraries: libisl.so.15: cannot open shared object file: No such file
Redis: simple use of redis
Depth (penetration) selector:: v-deep/deep/ and > > >
Processing of tree structure data
Button button adaptive size of wechat applet
Ni visa fails after LabVIEW installs the third-party visa software
去除网页滚动条方法以及内外边距
PyTorch 卷积网络正则化 DropBlock
Missing library while loading shared libraries: libisl so. 15: cannot open shared object file: No such file
Groovy, "try with resources" construction alternative