question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Infinity loop when starting spring boot server

See original GitHub issue

Springfox version 2.9.2 Spring boot 2.1.2.RELEASE

im getting an infinite loop when starting up.

@Bean public Docket api() { return new Docket(DocumentationType.SWAGGER_2) .useDefaultResponseMessages(false) .select() .apis(RequestHandlerSelectors.basePackage("my.package.yay")) .paths(PathSelectors.any()) .build() .apiInfo(apiInfo());

2019-02-15 17:52:20.702 DEBUG 58784 --- [nio-8080-exec-5] o.s.web.servlet.DispatcherServlet : "ERROR" dispatch for GET "/bank-transfer-calculation-service/error", parameters={} 2019-02-15 17:52:20.703 DEBUG 58784 --- [nio-8080-exec-5] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.error(javax.servlet.http.HttpServletRequest) 2019-02-15 17:52:20.703 DEBUG 58784 --- [nio-8080-exec-5] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Using 'application/json', given [application/json] and supported [application/json, application/*+json, application/json, application/*+json] 2019-02-15 17:52:20.703 DEBUG 58784 --- [nio-8080-exec-5] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Writing [{timestamp=Fri Feb 15 17:52:20 CET 2019, status=404, error=Not Found, message=No message available, path=/bank-transfer-calculation-service/null/swagger-resources}] 2019-02-15 17:52:20.704 DEBUG 58784 --- [nio-8080-exec-5] o.s.web.servlet.DispatcherServlet : Exiting from "ERROR" dispatch, status 404 2019-02-15 17:52:20.710 DEBUG 58784 --- [nio-8080-exec-6] o.s.web.servlet.DispatcherServlet : GET "/bank-transfer-calculation-service/null/swagger-resources/configuration/ui", parameters={} 2019-02-15 17:52:20.711 DEBUG 58784 --- [nio-8080-exec-6] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped to ResourceHttpRequestHandler ["classpath:/META-INF/resources/", "classpath:/resources/", "classpath:/static/", "classpath:/public/", "/"] 2019-02-15 17:52:20.711 DEBUG 58784 --- [nio-8080-exec-6] o.s.w.s.r.ResourceHttpRequestHandler : Resource not found 2019-02-15 17:52:20.711 DEBUG 58784 --- [nio-8080-exec-6] o.s.web.servlet.DispatcherServlet : Completed 404 NOT_FOUND 2019-02-15 17:52:20.712 DEBUG 58784 --- [nio-8080-exec-6] o.s.web.servlet.DispatcherServlet : "ERROR" dispatch for GET "/bank-transfer-calculation-service/error", parameters={} 2019-02-15 17:52:20.712 DEBUG 58784 --- [nio-8080-exec-6] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.error(javax.servlet.http.HttpServletRequest) 2019-02-15 17:52:20.713 DEBUG 58784 --- [nio-8080-exec-6] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Using 'application/json', given [application/json] and supported [application/json, application/*+json, application/json, application/*+json] 2019-02-15 17:52:20.713 DEBUG 58784 --- [nio-8080-exec-6] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Writing [{timestamp=Fri Feb 15 17:52:20 CET 2019, status=404, error=Not Found, message=No message available, path=/bank-transfer-calculation-service/null/swagger-resources/configuration/ui}] 2019-02-15 17:52:20.714 DEBUG 58784 --- [nio-8080-exec-6] o.s.web.servlet.DispatcherServlet : Exiting from "ERROR" dispatch, status 404 2019-02-15 17:52:20.718 DEBUG 58784 --- [nio-8080-exec-7] o.s.web.servlet.DispatcherServlet : GET "/bank-transfer-calculation-service/null/swagger-resources/configuration/security", parameters={} 2019-02-15 17:52:20.720 DEBUG 58784 --- [nio-8080-exec-7] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped to ResourceHttpRequestHandler ["classpath:/META-INF/resources/", "classpath:/resources/", "classpath:/static/", "classpath:/public/", "/"] 2019-02-15 17:52:20.721 DEBUG 58784 --- [nio-8080-exec-7] o.s.w.s.r.ResourceHttpRequestHandler : Resource not found 2019-02-15 17:52:20.721 DEBUG 58784 --- [nio-8080-exec-7] o.s.web.servlet.DispatcherServlet : Completed 404 NOT_FOUND 2019-02-15 17:52:20.722 DEBUG 58784 --- [nio-8080-exec-7] o.s.web.servlet.DispatcherServlet : "ERROR" dispatch for GET "/bank-transfer-calculation-service/error", parameters={} 2019-02-15 17:52:20.724 DEBUG 58784 --- [nio-8080-exec-7] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.error(javax.servlet.http.HttpServletRequest) 2019-02-15 17:52:20.726 DEBUG 58784 --- [nio-8080-exec-7] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Using 'application/json', given [application/json] and supported [application/json, application/*+json, application/json, application/*+json] 2019-02-15 17:52:20.726 DEBUG 58784 --- [nio-8080-exec-7] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Writing [{timestamp=Fri Feb 15 17:52:20 CET 2019, status=404, error=Not Found, message=No message available, path=/bank-transfer-calculation-service/null/swagger-resources/configuration/security}] 2019-02-15 17:52:20.727 DEBUG 58784 --- [nio-8080-exec-7] o.s.web.servlet.DispatcherServlet : Exiting from "ERROR" dispatch, status 404 2019-02-15 17:52:20.731 DEBUG 58784 --- [nio-8080-exec-8] o.s.web.servlet.DispatcherServlet : GET "/bank-transfer-calculation-service/null/swagger-resources", parameters={} 2019-02-15 17:52:20.732 DEBUG 58784 --- [nio-8080-exec-8] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped to ResourceHttpRequestHandler ["classpath:/META-INF/resources/", "classpath:/resources/", "classpath:/static/", "classpath:/public/", "/"] 2019-02-15 17:52:20.733 DEBUG 58784 --- [nio-8080-exec-8] o.s.w.s.r.ResourceHttpRequestHandler : Resource not found 2019-02-15 17:52:20.734 DEBUG 58784 --- [nio-8080-exec-8] o.s.web.servlet.DispatcherServlet : Completed 404 NOT_FOUND 2019-02-15 17:52:20.734 DEBUG 58784 --- [nio-8080-exec-8] o.s.web.servlet.DispatcherServlet : "ERROR" dispatch for GET "/bank-transfer-calculation-service/error", parameters={} 2019-02-15 17:52:20.735 DEBUG 58784 --- [nio-8080-exec-8] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.error(javax.servlet.http.HttpServletRequest) 2019-02-15 17:52:20.735 DEBUG 58784 --- [nio-8080-exec-8] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Using 'application/json', given [application/json] and supported [application/json, application/*+json, application/json, application/*+json] 2019-02-15 17:52:20.735 DEBUG 58784 --- [nio-8080-exec-8] o.s.w.s.m.m.a.HttpEntityMethodProcessor : Writing [{timestamp=Fri Feb 15 17:52:20 CET 2019, status=404, error=Not Found, message=No message available, path=/bank-transfer-calculation-service/null/swagger-resources}] 2019-02-15 17:52:20.736 DEBUG 58784 --- [nio-8080-exec-8] o.s.web.servlet.DispatcherServlet : Exiting from "ERROR" dispatch, status 404 2019-02-15 17:52:20.742 DEBUG 58784 --- [nio-8080-exec-9] o.s.web.servlet.DispatcherServlet : GET "/bank-transfer-calculation-service/null/swagger-resources/configuration/ui", parameters={} 2019-02-15 17:52:20.743 DEBUG 58784 --- [nio-8080-exec-9] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped to ResourceHttpRequestHandler ["classpath:/ME

Why is it looking for path: “/bank-transfer-calculation-service/null/swagger-resources/configuration/ui”?

Whats the null value?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:23 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
kirillt-homecommented, Mar 12, 2021

In my case it was old swagger (from previous app launch) openned in browser who did this calls

5reactions
rabaccommented, Oct 22, 2020

I don’t think this is fixed. I still see this error in version 3.0.0 - and I don’t see it when running the application locally but only when it runs on Openshift. Any idea what’s going on?

Read more comments on GitHub >

github_iconTop Results From Across the Web

java - Spring Boot - infinite loop service - Stack Overflow
My approach is to start a loop on an ApplicationReadyEvent, and abstract away the loop logic into an injectable service.
Read more >
infinite loop while starting spring boot server , without having ...
infinite loop while starting spring boot server , without having swagger dependency in project but showing it shows /null/swagger-resources # ...
Read more >
Infinite Loop with ApplicationReadyEvent - Spring Boot
Infinite Loop with ApplicationReadyEvent – Spring Boot · A better way to handle the infinite loop · In "Programming".
Read more >
[Solved]-Spring Boot - infinite loop service-Springboot
There are several options. My approach is to start a loop on an ApplicationReadyEvent, and abstract away the loop logic into an injectable...
Read more >
Spring Boot Reference Documentation
Build tool plugins: Maven | Gradle. Appendix: Application Properties | Configuration Metadata | Auto-configuration Classes | Test Auto-configuration Annotations ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found