POST请求Connect的I/O错误超时;嵌套异常是java.net.SocketTimeoutException:连



POST请求"的I/O错误;http://localhost:9411/api/v2/spans"连接超时;嵌套异常是java.net.SocketTimeoutException:连接超时

2021-11-24 10:17:30.642  INFO [,,,] 7872 --- [  restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
.   ____          _            __ _ _
/\ / ___'_ __ _ _(_)_ __  __ _    
( ( )___ | '_ | '_| | '_ / _` |    
\/  ___)| |_)| | | | | || (_| |  ) ) ) )
'  |____| .__|_| |_|_| |___, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot ::        (v2.3.2.RELEASE)
2021-11-24 10:17:31.942  INFO [service,,,] 7872 --- [  restartedMain] ServiceApplication      : No active profile set, falling back to default profiles: default
2021-11-24 10:17:35.956  INFO [service,,,] 7872 --- [  restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFERRED mode.
2021-11-24 10:17:36.883  INFO [service,,,] 7872 --- [  restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 901ms. Found 27 JPA repository interfaces.
2021-11-24 10:17:38.737  INFO [service,,,] 7872 --- [  restartedMain] o.s.cloud.context.scope.GenericScope     : BeanFactory id=f090e4ad-27c8-34fa-89ba-eeeccacd1fd9
2021-11-24 10:17:42.104  INFO [service,,,] 7872 --- [  restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 9194 (http)
2021-11-24 10:17:42.149  INFO [service,,,] 7872 --- [  restartedMain] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2021-11-24 10:17:42.150  INFO [service,,,] 7872 --- [  restartedMain] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.37]
2021-11-24 10:17:42.661  INFO [service,,,] 7872 --- [  restartedMain] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2021-11-24 10:17:42.662  INFO [service,,,] 7872 --- [  restartedMain] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 10646 ms
2021-11-24 10:17:43.074  INFO [service,,,] 7872 --- [  restartedMain] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
2021-11-24 10:17:43.494  INFO [service,,,] 7872 --- [  restartedMain] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.
2021-11-24 10:17:43.517  INFO [service,,,] 7872 --- [  restartedMain] o.s.b.a.h2.H2ConsoleAutoConfiguration    : H2 console available at '/h2-console'. Database available at 'jdbc:postgresql://localhost:5432/codeis'
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils (file:/C:/Users/Hp/.m2/repository/org/springframework/spring-core/5.2.8.RELEASE/spring-core-5.2.8.RELEASE.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of org.springframework.cglib.core.ReflectUtils
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2021-11-24 10:17:46.238  WARN [school-erp-service,,,] 7872 --- [  restartedMain] o.s.c.s.zipkin2.ZipkinAutoConfiguration  : Check result of the [org.springframework.cloud.sleuth.zipkin2.sender.RestTemplateSender@41a2805a] contains an error [CheckResult{ok=false, error=org.springframework.web.client.ResourceAccessException: I/O error on POST request for "http://localhost:9411/api/v2/spans": Connect timed out; nested exception is java.net.SocketTimeoutException: Connect timed out}]

我犯了什么错误?我没有使用Zipkin服务器。为什么抛出这种类型的错误如何解决?我正在使用zuul API网关。

检查您的构建依赖树,必须有spring-cloud-starter-sleuth的条目。如果你打算不使用它,那么就把它删除。

防火墙未关闭

$ systemctl stop firewalld

相关内容

最新更新