Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during shutdown #496

Closed
davideicardi opened this issue Apr 1, 2023 · 9 comments
Closed

Error during shutdown #496

davideicardi opened this issue Apr 1, 2023 · 9 comments
Labels
bug Something isn't working investigate We are currently investigating the issue stale
Milestone

Comments

@davideicardi
Copy link
Collaborator

After upgrading SpringBoot and JDK (#482), there is an error during shutdown:

2023-03-27 18:38:59.908  INFO 82457 [           main] k.s.BuildInfo                            : Kafdrop version: 4.0.0-SNAPSHOT, build time: 2023-03-27T16:38:57.091Z
2023-03-27 18:39:00.529  INFO 82457 [           main] o.s.b.a.e.w.EndpointLinksResolver        : Exposing 13 endpoint(s) beneath base path '/actuator'
2023-03-27 18:39:00.573  INFO 82457 [           main] i.u.Undertow                             : starting server: Undertow - 2.3.4.Final
2023-03-27 18:39:00.577  INFO 82457 [           main] o.x.Xnio                                 : XNIO version 3.8.8.Final
2023-03-27 18:39:00.582  INFO 82457 [           main] o.x.n.NioXnio                            : XNIO NIO Implementation Version 3.8.8.Final
2023-03-27 18:39:00.594  INFO 82457 [           main] o.j.t.Version                            : JBoss Threads version 3.5.0.Final
2023-03-27 18:39:00.614  INFO 82457 [           main] o.s.b.w.e.u.UndertowWebServer            : Undertow started on port(s) 9000 (http)
2023-03-27 18:39:00.624  INFO 82457 [           main] o.s.b.StartupInfoLogger                  : Started Kafdrop in 2.094 seconds (process running for 2.445)
2023-03-27 18:41:20.915  INFO 82457 [ionShutdownHook] i.u.Undertow                             : stopping server: Undertow - 2.3.4.Final
Exception in thread "SpringApplicationShutdownHook" java.lang.IllegalStateException: UT015023: This Context has been already destroyed
	at io.undertow.servlet.spec.ServletContextImpl.getDeploymentInfo(ServletContextImpl.java:210)
	at io.undertow.servlet.spec.ServletContextImpl.getInitParameterNames(ServletContextImpl.java:434)
	at org.springframework.web.context.support.ServletContextPropertySource.getPropertyNames(ServletContextPropertySource.java:41)
	at org.springframework.core.env.EnumerablePropertySource.containsProperty(EnumerablePropertySource.java:74)
	at org.springframework.core.env.PropertySourcesPropertyResolver.containsProperty(PropertySourcesPropertyResolver.java:51)
	at org.springframework.boot.context.properties.source.ConfigurationPropertySourcesPropertyResolver.containsProperty(ConfigurationPropertySourcesPropertyResolver.java:55)
	at org.springframework.core.env.AbstractEnvironment.containsProperty(AbstractEnvironment.java:546)
	at org.springframework.boot.logging.log4j2.SpringEnvironmentPropertySource.containsProperty(SpringEnvironmentPropertySource.java:55)
	at org.apache.logging.log4j.util.PropertiesUtil$Environment.get(PropertiesUtil.java:537)
	at org.apache.logging.log4j.util.PropertiesUtil$Environment.access$200(PropertiesUtil.java:444)
	at org.apache.logging.log4j.util.PropertiesUtil.getStringProperty(PropertiesUtil.java:392)
	at org.apache.logging.log4j.util.PropertiesUtil.getBooleanProperty(PropertiesUtil.java:179)
	at org.apache.logging.log4j.status.StatusLogger.isDebugPropertyEnabled(StatusLogger.java:143)
	at org.apache.logging.log4j.status.StatusLogger.isEnabled(StatusLogger.java:426)
	at org.apache.logging.log4j.status.StatusLogger.isEnabled(StatusLogger.java:348)
	at org.apache.logging.log4j.spi.AbstractLogger.logIfEnabled(AbstractLogger.java:1906)
	at org.apache.logging.log4j.spi.AbstractLogger.debug(AbstractLogger.java:458)
	at org.apache.logging.log4j.core.LoggerContext.stop(LoggerContext.java:355)
	at org.apache.logging.log4j.core.AbstractLifeCycle.stop(AbstractLifeCycle.java:136)
	at org.springframework.boot.logging.log4j2.Log4J2LoggingSystem.lambda$getShutdownHandler$2(Log4J2LoggingSystem.java:446)
	at java.base/java.lang.Iterable.forEach(Iterable.java:75)
	at org.springframework.boot.SpringApplicationShutdownHook.run(SpringApplicationShutdownHook.java:110)
	at java.base/java.lang.Thread.run(Thread.java:833)

The error is probably related to spring-projects/spring-boot#33450 issue.

The above issue can be avoided using the following Springboot configuration:

spring.main.register-shutdown-hook: false

See also #482 (comment)

cc @mehdihasan @Bert-R

@davideicardi davideicardi added bug Something isn't working investigate We are currently investigating the issue labels Apr 1, 2023
@davideicardi davideicardi added this to the 4.0 milestone Apr 1, 2023
@mehdihasan
Copy link
Contributor

Will keep an eye on this.

@github-actions
Copy link

github-actions bot commented May 3, 2023

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label May 3, 2023
@Bert-R
Copy link
Collaborator

Bert-R commented May 3, 2023

There is some movement on the related Spring Boot issue, so let's not close this yet.

@github-actions github-actions bot removed the stale label May 4, 2023
@github-actions
Copy link

github-actions bot commented Jun 4, 2023

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Jun 4, 2023
@github-actions
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 19, 2023
@davideicardi davideicardi reopened this Jun 19, 2023
@github-actions github-actions bot removed the stale label Jun 20, 2023
@github-actions
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Jul 21, 2023
@github-actions
Copy link

github-actions bot commented Aug 5, 2023

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 5, 2023
@davideicardi davideicardi reopened this Aug 5, 2023
@github-actions github-actions bot removed the stale label Aug 6, 2023
@github-actions
Copy link

github-actions bot commented Sep 6, 2023

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Sep 6, 2023
@github-actions
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working investigate We are currently investigating the issue stale
Projects
None yet
Development

No branches or pull requests

3 participants