spring-cloud-commons icon indicating copy to clipboard operation
spring-cloud-commons copied to clipboard

Actuator endpoint restart does not work properly

Open wxibm333 opened this issue 6 years ago • 6 comments

When I use the endpoint restart, I get the following error, causing the restart to fail. Environment:

  • Spring Boot 2.1.2
  • Spring Cloud Greenwich.RELEASE
  • Java 8

1550202560 1

wxibm333 avatar Feb 15 '19 03:02 wxibm333

I'm not sure it ever worked in a war container

spencergibb avatar Feb 15 '19 06:02 spencergibb

I'm not sure it ever worked in a war container

Thank you for your answer. If you remove the following code, the endpoint restart works fine, what does the code do, and what happens if you remove it.

code: this.application.setEnvironment(this.context.getEnvironment());

code

wxibm333 avatar Feb 15 '19 13:02 wxibm333

I use @EnableSidecar and in Springboot admin I see, actuator does not work. I used @EnableZuulProxy, and actuator and SpringBoot admin work.

management:
  server:
    port: 28080

yankhonskikendaxa avatar Apr 23 '19 13:04 yankhonskikendaxa

Any news on this issue ? restart endpoint is also not working for me with same stracktrace than above

jfougere avatar Feb 21 '20 07:02 jfougere

I also observed this issue. It looks like the restart endpoint only works with Tomcat server. It produces the above exception when we use Undertow as Spring Boot's embedded server.

Stephen-X avatar Jun 01 '20 20:06 Stephen-X

Maybe is related to #788

olagache avatar Nov 06 '20 17:11 olagache