https://bz.apache.org/bugzilla/show_bug.cgi?id=63528

            Bug ID: 63528
           Summary: WsFilter.destroy() missing (SpringJUnit4ClassRunner)
           Product: Tomcat 9
           Version: 9.0.21
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: matt.j.phill...@jbhunt.com
  Target Milestone: -----

I am working with integration tests in JUnit 4 and I keep receiving this
message after every run. I looked into it and it looks like previous versions
of WsFilter have the destroy method.

java.lang.AbstractMethodError: Receiver class
org.apache.tomcat.websocket.server.WsFilter does not define or inherit an
implementation of the resolved method abstract destroy()V of interface
javax.servlet.Filter.
        at
org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:301)
~[tomcat-embed-core-9.0.21.jar:9.0.21]
        at
org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:4562)
~[tomcat-embed-core-9.0.21.jar:9.0.21]
        at
org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5385)
~[tomcat-embed-core-9.0.21.jar:9.0.21]
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
~[tomcat-embed-core-9.0.21.jar:9.0.21]
        at
org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1400)
~[tomcat-embed-core-9.0.21.jar:9.0.21]
        at
org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1389)
~[tomcat-embed-core-9.0.21.jar:9.0.21]
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
~[na:na]
        at
org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
~[tomcat-embed-core-9.0.21.jar:9.0.21]
        at
java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
~[na:na]
        at
org.apache.catalina.core.ContainerBase.stopInternal(ContainerBase.java:976)
~[tomcat-embed-core-9.0.21.jar:9.0.21]
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
~[tomcat-embed-core-9.0.21.jar:9.0.21]
        at
org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1400)
~[tomcat-embed-core-9.0.21.jar:9.0.21]
        at
org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1389)
~[tomcat-embed-core-9.0.21.jar:9.0.21]
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
~[na:na]
        at
org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
~[tomcat-embed-core-9.0.21.jar:9.0.21]
        at
java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
~[na:na]
        at
org.apache.catalina.core.ContainerBase.stopInternal(ContainerBase.java:976)
~[tomcat-embed-core-9.0.21.jar:9.0.21]
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
~[tomcat-embed-core-9.0.21.jar:9.0.21]
        at
org.apache.catalina.core.StandardService.stopInternal(StandardService.java:473)
~[tomcat-embed-core-9.0.21.jar:9.0.21]
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
~[tomcat-embed-core-9.0.21.jar:9.0.21]
        at
org.apache.catalina.core.StandardServer.stopInternal(StandardServer.java:994)
~[tomcat-embed-core-9.0.21.jar:9.0.21]
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
~[tomcat-embed-core-9.0.21.jar:9.0.21]
        at org.apache.catalina.startup.Tomcat.stop(Tomcat.java:466)
~[tomcat-embed-core-9.0.21.jar:9.0.21]
        at
org.springframework.boot.web.embedded.tomcat.TomcatWebServer.stopTomcat(TomcatWebServer.java:254)
~[spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE]
        at
org.springframework.boot.web.embedded.tomcat.TomcatWebServer.stop(TomcatWebServer.java:309)
~[spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE]
        at
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.stopAndReleaseWebServer(ServletWebServerApplicationContext.java:305)
~[spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE]
        at
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onClose(ServletWebServerApplicationContext.java:171)
~[spring-boot-2.1.6.RELEASE.jar:2.1.6.RELEASE]
        at
org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1032)
~[spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE]
        at
org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:975)
~[spring-context-5.1.8.RELEASE.jar:5.1.8.RELEASE]
        at
org.springframework.test.context.cache.DefaultContextCache.remove(DefaultContextCache.java:207)
~[spring-test-5.1.8.RELEASE.jar:5.1.8.RELEASE]
        at
org.springframework.test.context.cache.DefaultContextCache.remove(DefaultContextCache.java:172)
~[spring-test-5.1.8.RELEASE.jar:5.1.8.RELEASE]
        at
org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.closeContext(DefaultCacheAwareContextLoaderDelegate.java:144)
~[spring-test-5.1.8.RELEASE.jar:5.1.8.RELEASE]
        at
org.springframework.test.context.support.DefaultTestContext.markApplicationContextDirty(DefaultTestContext.java:132)
~[spring-test-5.1.8.RELEASE.jar:5.1.8.RELEASE]
        at
org.springframework.cloud.contract.wiremock.WireMockTestExecutionListener.afterTestClass(WireMockTestExecutionListener.java:68)
~[spring-cloud-contract-wiremock-2.1.1.RELEASE.jar:2.1.1.RELEASE]
        at
org.springframework.test.context.TestContextManager.afterTestClass(TestContextManager.java:490)
~[spring-test-5.1.8.RELEASE.jar:5.1.8.RELEASE]
        at
org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:77)
~[spring-test-5.1.8.RELEASE.jar:5.1.8.RELEASE]
        at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
~[junit-4.12.jar:4.12]
        at
org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:190)
~[spring-test-5.1.8.RELEASE.jar:5.1.8.RELEASE]
        at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
~[junit-4.12.jar:4.12]
        at
com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
~[junit-rt.jar:na]
        at
com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
~[junit-rt.jar:na]
        at
com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
~[junit-rt.jar:na]
        at
com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
~[junit-rt.jar:na]

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to