xxl-job连接异常解决
2020-07-02 15:18:47.892 ERROR [search-web,,,] 1 search-web [] [] --- [rRegistryThread] c.xxl.job.core.util.XxlJobRemotingUtil : Connection refused (Connection refused)
2020/7/2 下午3:18:47
2020/7/2 下午3:18:47 java.net.ConnectException: Connection refused (Connection refused)
2020/7/2 下午3:18:47 at java.net.PlainSocketImpl.socketConnect(Native Method)
2020/7/2 下午3:18:47 at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
2020/7/2 下午3:18:47 at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
2020/7/2 下午3:18:47 at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
2020/7/2 下午3:18:47 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
2020/7/2 下午3:18:47 at java.net.Socket.connect(Socket.java:589)
2020/7/2 下午3:18:47 at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
2020/7/2 下午3:18:47 at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
2020/7/2 下午3:18:47 at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
2020/7/2 下午3:18:47 at sun.net.www.http.HttpClient.<init>(HttpClient.java:242)
2020/7/2 下午3:18:47 at sun.net.www.http.HttpClient.New(HttpClient.java:339)
2020/7/2 下午3:18:47 at sun.net.www.http.HttpClient.New(HttpClient.java:357)
2020/7/2 下午3:18:47 at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1220)
2020/7/2 下午3:18:47 at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1156)
2020/7/2 下午3:18:47 at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1050)
2020/7/2 下午3:18:47 at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:984)
2020/7/2 下午3:18:47 at com.xxl.job.core.util.XxlJobRemotingUtil.postBody(XxlJobRemotingUtil.java:95)
2020/7/2 下午3:18:47 at com.xxl.job.core.biz.client.AdminBizClient.registry(AdminBizClient.java:42)
2020/7/2 下午3:18:47 at com.xxl.job.core.thread.ExecutorRegistryThread$1.run(ExecutorRegistryThread.java:48)
2020/7/2 下午3:18:47 at java.lang.Thread.run(Thread.java:748)
2020/7/2 下午3:18:47
2020/7/2 下午3:18:47 2020-07-02 15:18:47.893 INFO [search-web,,,] 1 search-web [] [] --- [rRegistryThread] c.x.j.c.thread.ExecutorRegistryThread : >>>>>>>>>>> xxl-job registry fail, registryParam:RegistryParam{registryGroup='EXECUTOR', registryKey='search-web-job-executor', registryValue='http://10.xx.x.xx:9999/'}, registryResult:ReturnT [code=500, msg=xxl-rpc remoting error(Connection refused (Connection refused)), for url : http://10.xx.x.xxx:8088/xxl-job-admin/api/registry, content=null]
2020/7/2 下午3:18:47 2020-07-02 15:18:47.909 INFO [search-web,,,] 1 search-web [] [] --- [ main] s.d.s.w.s.ApiListingReferenceScanner : Scanning for api listing references
2020/7/2 下午3:18:48 2020-07-02 15:18:48.360 INFO [search-web,,,] 1 search-web [] [] --- [ main] o.a.d.config.bootstrap.DubboBootstrap : [DUBBO] DubboBootstrap is starting..., dubbo version: 2.7.6, current host: 10.42.1.42
2020/7/2 下午3:18:48 2020-07-02 15:18:48.369 INFO [search-web,,,] 1 search-web [] [] --- [ main] o.a.d.config.bootstrap.DubboBootstrap : [DUBBO] DubboBootstrap has started., dubbo version: 2.7.6, current host: 10.42.1.42
2020/7/2 下午3:18:48 2020-07-02 15:18:48.398 INFO [search-web,,,] 1 search-web [] [] --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path ''
2020/7/2 下午3:18:48 2020-07-02 15:18:48.401 INFO [search-web,,,] 1 search-web [] [] --- [ main] c.xxx.search.SearchWebApplication : Started SearchWebApplication in 27.77 seconds (JVM running for 31.925)
2020/7/2 下午3:18:48 2020-07-02 15:18:48.758 INFO [search-web,,,] 1 search-web [] [] --- [nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2020/7/2 下午3:18:48 2020-07-02 15:18:48.759 INFO [search-web,,,] 1 search-web [] [] --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
2020/7/2 下午3:18:49 2020-07-02 15:18:48.999 INFO [search-web,,,] 1 search-web [] [] --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 240 ms
2020/7/2 下午3:19:17 2020-07-02 15:19:17.894 ERROR [search-web,,,] 1 search-web [] [] --- [rRegistryThread] c.xxl.job.core.util.XxlJobRemotingUtil : Connection refused (Connection refused)
引起原因是 xxl.job.admin.addresses地址变更。修改为正确的xxl-job地址就能正常连接了
本文地址:https://blog.csdn.net/u014594604/article/details/107085224