[jira] [Commented] (CXF-7747) FileUtils.maybeDeleteDefaultTempDir causes an IllegalStateException if it tries to remove the shutdown hook while the JVM is already shutting down
[ https://issues.apache.org/jira/browse/CXF-7747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16501326#comment-16501326 ] George Jiang commented on CXF-7747: --- How do I see the corresponding modified code in the CXF project? The latest tag in the project is cxf-3.2.4. > FileUtils.maybeDeleteDefaultTempDir causes an IllegalStateException if it > tries to remove the shutdown hook while the JVM is already shutting down > -- > > Key: CXF-7747 > URL: https://issues.apache.org/jira/browse/CXF-7747 > Project: CXF > Issue Type: Bug >Affects Versions: 3.2.4 > Environment: Java: jdk1.8.0_144 > Spring-boot: 1.4.1 > CXF: 2.1.4 > Jetty: 9.3.11.v20160721 > Operating system: Windows 7 >Reporter: George Jiang >Assignee: Colm O hEigeartaigh >Priority: Minor > Fix For: 3.1.16, 3.2.5 > > > I have seen this error in Jetty after a failsafe junit validation test suite > finishes. > 2018-05-23T13:58:07,188 +147913 [Thread-28] WARN > org.eclipse.jetty.servlet.ServletHolder - []: > java.lang.IllegalStateException: Shutdown in progress > at > java.lang.ApplicationShutdownHooks.remove(ApplicationShutdownHooks.java:82) > ~[?:1.8.0_144] > at java.lang.Runtime.removeShutdownHook(Runtime.java:239) ~[?:1.8.0_144] > at > org.apache.cxf.helpers.FileUtils.maybeDeleteDefaultTempDir(FileUtils.java:122) > ~[cxf-core-3.1.14.jar:3.1.14] > at > org.apache.cxf.transport.servlet.AbstractHTTPServlet.destroy(AbstractHTTPServlet.java:128) > ~[cxf-rt-transports-http-3.1.14.jar:3.1.14] > at > org.apache.cxf.transport.servlet.CXFNonSpringServlet.destroy(CXFNonSpringServlet.java:214) > ~[cxf-rt-transports-http-3.1.14.jar:3.1.14] > at > org.eclipse.jetty.servlet.ServletHolder.destroyInstance(ServletHolder.java:475) > ~[jetty-servlet-9.3.11.v20160721.jar:9.3.11.v20160721] > at org.eclipse.jetty.servlet.ServletHolder.doStop(ServletHolder.java:446) > [jetty-servlet-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89) > [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.servlet.ServletHandler.doStop(ServletHandler.java:281) > [jetty-servlet-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89) > [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:143) > [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:161) > [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:73) > [jetty-server-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.security.SecurityHandler.doStop(SecurityHandler.java:381) > [jetty-security-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.security.ConstraintSecurityHandler.doStop(ConstraintSecurityHandler.java:456) > [jetty-security-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89) > [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:143) > [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:161) > [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:73) > [jetty-server-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.server.session.SessionHandler.doStop(SessionHandler.java:127) > [jetty-server-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89) > [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:143) > [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:161) > [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:73) > [jetty-server-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.server.handler.ContextHandler.stopContext(ContextHandler.java:825) > [jetty-server-9.3.11.v20160721.jar:9.3.11.v20160721] > at
[jira] [Commented] (CXF-7747) FileUtils.maybeDeleteDefaultTempDir causes an IllegalStateException if it tries to remove the shutdown hook while the JVM is already shutting down
[ https://issues.apache.org/jira/browse/CXF-7747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16497651#comment-16497651 ] George Jiang commented on CXF-7747: --- I have already tried it. This problem still exists. > FileUtils.maybeDeleteDefaultTempDir causes an IllegalStateException if it > tries to remove the shutdown hook while the JVM is already shutting down > -- > > Key: CXF-7747 > URL: https://issues.apache.org/jira/browse/CXF-7747 > Project: CXF > Issue Type: Bug >Affects Versions: 3.2.4 > Environment: Java: jdk1.8.0_144 > Spring-boot: 1.4.1 > CXF: 2.1.4 > Jetty: 9.3.11.v20160721 > Operating system: Windows 7 >Reporter: George Jiang >Priority: Minor > > I have seen this error in Jetty after a failsafe junit validation test suite > finishes. > 2018-05-23T13:58:07,188 +147913 [Thread-28] WARN > org.eclipse.jetty.servlet.ServletHolder - []: > java.lang.IllegalStateException: Shutdown in progress > at > java.lang.ApplicationShutdownHooks.remove(ApplicationShutdownHooks.java:82) > ~[?:1.8.0_144] > at java.lang.Runtime.removeShutdownHook(Runtime.java:239) ~[?:1.8.0_144] > at > org.apache.cxf.helpers.FileUtils.maybeDeleteDefaultTempDir(FileUtils.java:122) > ~[cxf-core-3.1.14.jar:3.1.14] > at > org.apache.cxf.transport.servlet.AbstractHTTPServlet.destroy(AbstractHTTPServlet.java:128) > ~[cxf-rt-transports-http-3.1.14.jar:3.1.14] > at > org.apache.cxf.transport.servlet.CXFNonSpringServlet.destroy(CXFNonSpringServlet.java:214) > ~[cxf-rt-transports-http-3.1.14.jar:3.1.14] > at > org.eclipse.jetty.servlet.ServletHolder.destroyInstance(ServletHolder.java:475) > ~[jetty-servlet-9.3.11.v20160721.jar:9.3.11.v20160721] > at org.eclipse.jetty.servlet.ServletHolder.doStop(ServletHolder.java:446) > [jetty-servlet-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89) > [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.servlet.ServletHandler.doStop(ServletHandler.java:281) > [jetty-servlet-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89) > [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:143) > [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:161) > [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:73) > [jetty-server-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.security.SecurityHandler.doStop(SecurityHandler.java:381) > [jetty-security-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.security.ConstraintSecurityHandler.doStop(ConstraintSecurityHandler.java:456) > [jetty-security-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89) > [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:143) > [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:161) > [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:73) > [jetty-server-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.server.session.SessionHandler.doStop(SessionHandler.java:127) > [jetty-server-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89) > [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:143) > [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:161) > [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:73) > [jetty-server-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.server.handler.ContextHandler.stopContext(ContextHandler.java:825) > [jetty-server-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.servlet.ServletContextHandler.stopContext(ServletContextHandler.java:356) > [jetty-servlet-9.3.11.v20160721.jar:9.3.11
[jira] [Updated] (CXF-7747) FileUtils.maybeDeleteDefaultTempDir causes an IllegalStateException if it tries to remove the shutdown hook while the JVM is already shutting down
[ https://issues.apache.org/jira/browse/CXF-7747?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] George Jiang updated CXF-7747: -- Affects Version/s: 3.2.4 > FileUtils.maybeDeleteDefaultTempDir causes an IllegalStateException if it > tries to remove the shutdown hook while the JVM is already shutting down > -- > > Key: CXF-7747 > URL: https://issues.apache.org/jira/browse/CXF-7747 > Project: CXF > Issue Type: Bug >Affects Versions: 3.2.4 > Environment: Java: jdk1.8.0_144 > Spring-boot: 1.4.1 > CXF: 2.1.4 > Jetty: 9.3.11.v20160721 > Operating system: Windows 7 >Reporter: George Jiang >Priority: Minor > > I have seen this error in Jetty after a failsafe junit validation test suite > finishes. > 2018-05-23T13:58:07,188 +147913 [Thread-28] WARN > org.eclipse.jetty.servlet.ServletHolder - []: > java.lang.IllegalStateException: Shutdown in progress > at > java.lang.ApplicationShutdownHooks.remove(ApplicationShutdownHooks.java:82) > ~[?:1.8.0_144] > at java.lang.Runtime.removeShutdownHook(Runtime.java:239) ~[?:1.8.0_144] > at > org.apache.cxf.helpers.FileUtils.maybeDeleteDefaultTempDir(FileUtils.java:122) > ~[cxf-core-3.1.14.jar:3.1.14] > at > org.apache.cxf.transport.servlet.AbstractHTTPServlet.destroy(AbstractHTTPServlet.java:128) > ~[cxf-rt-transports-http-3.1.14.jar:3.1.14] > at > org.apache.cxf.transport.servlet.CXFNonSpringServlet.destroy(CXFNonSpringServlet.java:214) > ~[cxf-rt-transports-http-3.1.14.jar:3.1.14] > at > org.eclipse.jetty.servlet.ServletHolder.destroyInstance(ServletHolder.java:475) > ~[jetty-servlet-9.3.11.v20160721.jar:9.3.11.v20160721] > at org.eclipse.jetty.servlet.ServletHolder.doStop(ServletHolder.java:446) > [jetty-servlet-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89) > [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.servlet.ServletHandler.doStop(ServletHandler.java:281) > [jetty-servlet-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89) > [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:143) > [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:161) > [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:73) > [jetty-server-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.security.SecurityHandler.doStop(SecurityHandler.java:381) > [jetty-security-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.security.ConstraintSecurityHandler.doStop(ConstraintSecurityHandler.java:456) > [jetty-security-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89) > [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:143) > [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:161) > [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:73) > [jetty-server-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.server.session.SessionHandler.doStop(SessionHandler.java:127) > [jetty-server-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89) > [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:143) > [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:161) > [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:73) > [jetty-server-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.server.handler.ContextHandler.stopContext(ContextHandler.java:825) > [jetty-server-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.servlet.ServletContextHandler.stopContext(ServletContextHandler.java:356) > [jetty-servlet-9.3.11.v20160721.jar:9.3.11.v20160721] > at > org.eclipse.jetty.webapp.WebAppContext.stopWebapp(WebAppC
[jira] [Created] (CXF-7747) FileUtils.maybeDeleteDefaultTempDir causes an IllegalStateException if it tries to remove the shutdown hook while the JVM is already shutting down
George Jiang created CXF-7747: - Summary: FileUtils.maybeDeleteDefaultTempDir causes an IllegalStateException if it tries to remove the shutdown hook while the JVM is already shutting down Key: CXF-7747 URL: https://issues.apache.org/jira/browse/CXF-7747 Project: CXF Issue Type: Bug Environment: Java: jdk1.8.0_144 Spring-boot: 1.4.1 CXF: 2.1.4 Jetty: 9.3.11.v20160721 Operating system: Windows 7 Reporter: George Jiang I have seen this error in Jetty after a failsafe junit validation test suite finishes. 2018-05-23T13:58:07,188 +147913 [Thread-28] WARN org.eclipse.jetty.servlet.ServletHolder - []: java.lang.IllegalStateException: Shutdown in progress at java.lang.ApplicationShutdownHooks.remove(ApplicationShutdownHooks.java:82) ~[?:1.8.0_144] at java.lang.Runtime.removeShutdownHook(Runtime.java:239) ~[?:1.8.0_144] at org.apache.cxf.helpers.FileUtils.maybeDeleteDefaultTempDir(FileUtils.java:122) ~[cxf-core-3.1.14.jar:3.1.14] at org.apache.cxf.transport.servlet.AbstractHTTPServlet.destroy(AbstractHTTPServlet.java:128) ~[cxf-rt-transports-http-3.1.14.jar:3.1.14] at org.apache.cxf.transport.servlet.CXFNonSpringServlet.destroy(CXFNonSpringServlet.java:214) ~[cxf-rt-transports-http-3.1.14.jar:3.1.14] at org.eclipse.jetty.servlet.ServletHolder.destroyInstance(ServletHolder.java:475) ~[jetty-servlet-9.3.11.v20160721.jar:9.3.11.v20160721] at org.eclipse.jetty.servlet.ServletHolder.doStop(ServletHolder.java:446) [jetty-servlet-9.3.11.v20160721.jar:9.3.11.v20160721] at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89) [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] at org.eclipse.jetty.servlet.ServletHandler.doStop(ServletHandler.java:281) [jetty-servlet-9.3.11.v20160721.jar:9.3.11.v20160721] at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89) [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:143) [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:161) [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:73) [jetty-server-9.3.11.v20160721.jar:9.3.11.v20160721] at org.eclipse.jetty.security.SecurityHandler.doStop(SecurityHandler.java:381) [jetty-security-9.3.11.v20160721.jar:9.3.11.v20160721] at org.eclipse.jetty.security.ConstraintSecurityHandler.doStop(ConstraintSecurityHandler.java:456) [jetty-security-9.3.11.v20160721.jar:9.3.11.v20160721] at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89) [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:143) [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:161) [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:73) [jetty-server-9.3.11.v20160721.jar:9.3.11.v20160721] at org.eclipse.jetty.server.session.SessionHandler.doStop(SessionHandler.java:127) [jetty-server-9.3.11.v20160721.jar:9.3.11.v20160721] at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:89) [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:143) [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:161) [jetty-util-9.3.11.v20160721.jar:9.3.11.v20160721] at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:73) [jetty-server-9.3.11.v20160721.jar:9.3.11.v20160721] at org.eclipse.jetty.server.handler.ContextHandler.stopContext(ContextHandler.java:825) [jetty-server-9.3.11.v20160721.jar:9.3.11.v20160721] at org.eclipse.jetty.servlet.ServletContextHandler.stopContext(ServletContextHandler.java:356) [jetty-servlet-9.3.11.v20160721.jar:9.3.11.v20160721] at org.eclipse.jetty.webapp.WebAppContext.stopWebapp(WebAppContext.java:1410) [jetty-webapp-9.3.11.v20160721.jar:9.3.11.v20160721] at org.eclipse.jetty.webapp.WebAppContext.stopContext(WebAppContext.java:1374) [jetty-webapp-9.3.11.v20160721.jar:9.3.11.v20160721] at org.eclipse.jetty.server.handler.ContextHandler.doStop(ContextHandler.java:880) [jetty-server-9.3.11.v20160721.jar:9.3.11.v20160721] at org.eclipse.jetty.servlet.ServletContextHandler.doStop(ServletContextHandler.java:272) [jetty-servlet-9.3.11.v20160721.jar:9.3.11.v20160721] at org.ecli