【重要--报错log分析{java.net.ConnectException} & 重要的 源码阅读】后台报错分析【读源码: String】

jdk类库源码分析-String类

1、报错截图:
在这里插入图片描述

2、报错分析:
java.net.ConnectException, 看源码类的注释,说的很清楚,典型情况就是:没有进程侦听指定的远端 地址/port。而log也说得很清楚:Connection refused
connect a socket to a remote address and port

/**
 * Signals that an error occurred while attempting to connect a
 * socket to a remote address and port.  Typically, the connection
 * was refused remotely (e.g., no process is listening on the
 * remote address/port).
 *
 * @since   JDK1.1
 */

二、多读源码,并理解

发布了555 篇原创文章 · 获赞 2 · 访问量 2721

猜你喜欢

转载自blog.csdn.net/m0_37681589/article/details/98729838
今日推荐