开发者社区> 问答> 正文

cat报错?报错

[03-31 05:49:01.526] [ERROR] [AbstractSender] test
java.net.UnknownHostException: test
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:579)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
        at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
        at sun.net.www.http.HttpClient.New(HttpClient.java:308)
        at sun.net.www.http.HttpClient.New(HttpClient.java:326)
        at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:996)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:932)
        at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:850)
        at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1091)
        at com.dianping.cat.report.alert.sender.sender.AbstractSender.httpPostSend(AbstractSender.java:78)
        at com.dianping.cat.report.alert.sender.sender.AbstractSender.httpSend(AbstractSender.java:112)
        at com.dianping.cat.report.alert.sender.sender.MailSender.sendEmail(MailSender.java:59)
        at com.dianping.cat.report.alert.sender.sender.MailSender.send(MailSender.java:30)
        at com.dianping.cat.report.alert.sender.sender.SenderManager.sendAlert(SenderManager.java:39)
        at com.dianping.cat.report.alert.sender.AlertManager.send(AlertManager.java:165)
        at com.dianping.cat.report.alert.sender.AlertManager.access$600(AlertManager.java:34)
        at com.dianping.cat.report.alert.sender.AlertManager$SendExecutor.run(AlertManager.java:277)
        at java.lang.Thread.run(Thread.java:744)
 

展开
收起
爱吃鱼的程序员 2020-06-08 15:50:20 436 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    这个是由于打开了cat的告警,而告警ip是test,导致告警发不出去,报错的。

    方法1、把server.xml中的告警设置为false

    方法2、全局告警配置-》告警服务端 里面的告警注释掉

    2020-06-08 15:50:37
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载