Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-3140 Jakarta EE 9.1 TCK Failures
  3. TOMEE-3169

jaxrs.jaxrs21.ee.sse.sseeventsource wait2Seconds

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 9.0.0-M7
    • None
    • None

    Description

      Follow setup instructions in TOMEE-3140. Then run:

      ./runtests --ee91 -c -j --web tomee-plume com.sun.ts.tests.jaxrs.jaxrs21.ee.sse.sseeventsource.JAXRSClient#wait2Seconds_from_standalone
      

      At the time this issue was filed, the test failed with the following in target/logs/javatest.log

      04-11-2021 20:28:06:  TRACE: [WIRE] - << connection: keep-alive
      04-11-2021 20:28:06:  TRACE: [WIRE] - << Content-Length: 2
      04-11-2021 20:28:06:  TRACE: [WIRE] - << content-type: text/plain
      04-11-2021 20:28:06:  TRACE: [WIRE] - << Date: Mon, 12 Apr 2021 03:28:06 GMT
      04-11-2021 20:28:06:  TRACE: [WIRE] - << Keep-Alive: timeout=20
      04-11-2021 20:28:06:  TRACE: [WIRE] - << OK
      04-11-2021 20:28:06:  TRACE: [WebValidatorBase] Expected Status Code '200' found in response line!
      04-11-2021 20:28:06:  TRACE: [WebValidatorBase] Scanning response for search string: 'OK' starting at index location: 0
      04-11-2021 20:28:06:  TRACE: [WebValidatorBase] Found search string: 'OK' at index '0' in the server's response
      04-11-2021 20:28:06:  TRACE: [JAXRSCommonClient] invoke
      04-11-2021 20:28:06:  TRACE: [JAXRSCommonClient] setTestProperties
      04-11-2021 20:28:06:  TRACE: [JAXRSCommonClient] EXECUTING
      04-11-2021 20:28:06:  [Request] Dispatching request: 'POST http://localhost:51381/jaxrs_jaxrs21_ee_sse_sseeventsource_web/su/retry' to target server at 'localhost:51381'
      04-11-2021 20:28:06:  ###############################
      04-11-2021 20:28:06:  [Request] Adding entity: 2
      04-11-2021 20:28:06:  TRACE: [WIRE] - >> POST http://localhost:51381/jaxrs_jaxrs21_ee_sse_sseeventsource_web/su/retry
      04-11-2021 20:28:06:  TRACE: [WIRE] - >> Accept:*/*, Content-Type:text/plain
      04-11-2021 20:28:06:  TRACE: [WIRE] - >> 2
      04-11-2021 20:28:06:  TRACE: [WIRE] - << 200 OK
      04-11-2021 20:28:06:  TRACE: [WIRE] - << connection: keep-alive
      04-11-2021 20:28:06:  TRACE: [WIRE] - << Content-Length: 1
      04-11-2021 20:28:06:  TRACE: [WIRE] - << content-type: text/plain
      04-11-2021 20:28:06:  TRACE: [WIRE] - << Date: Mon, 12 Apr 2021 03:28:06 GMT
      04-11-2021 20:28:06:  TRACE: [WIRE] - << Keep-Alive: timeout=20
      04-11-2021 20:28:06:  TRACE: [WIRE] - << 2
      04-11-2021 20:28:06:  TRACE: [WebValidatorBase] Expected Status Code '200' found in response line!
      04-11-2021 20:28:06:  TRACE: [WebValidatorBase] Scanning response for search string: '2' starting at index location: 0
      04-11-2021 20:28:06:  TRACE: [WebValidatorBase] Found search string: '2' at index '0' in the server's response
      04-11-2021 20:28:06:  TRACE: [JAXRSCommonClient]getContextRoot
      11-Apr-2021 20:28:06.694 WARNING [http-nio-51381-exec-7] org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper.toResponse jakarta.ws.rs.WebApplicationException: HTTP 503 Service Unavailable
      	at com.sun.ts.tests.jaxrs.jaxrs21.ee.sse.sseeventsource.ServiceUnavailableResource.sendMessage(ServiceUnavailableResource.java:104)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.apache.openejb.server.cxf.rs.PojoInvoker.performInvocation(PojoInvoker.java:43)
      	at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
      	at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:201)
      	at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:104)
      	at org.apache.openejb.server.cxf.rs.AutoJAXRSInvoker.invoke(AutoJAXRSInvoker.java:68)
      	at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59)
      	at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96)
      	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
      	at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
      	at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:265)
      	at org.apache.openejb.server.cxf.rs.CxfRsHttpListener.doInvoke(CxfRsHttpListener.java:271)
      	at org.apache.tomee.webservices.CXFJAXRSFilter.doFilter(CXFJAXRSFilter.java:99)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158)
      	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
      	at org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543)
      	at org.apache.openejb.cts.TransactionalWorkaroundLeakGuardValve.invoke(TransactionalWorkaroundLeakGuardValve.java:39)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
      	at org.apache.tomee.catalina.OpenEJBSecurityListener$RequestCapturer.invoke(OpenEJBSecurityListener.java:97)
      	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:353)
      	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374)
      	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
      	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:870)
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1696)
      	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      	at java.lang.Thread.run(Thread.java:748)
      
      04-11-2021 20:28:10:  ERROR: SseEventSource#isOpen returns false
      04-11-2021 20:28:10:  ERROR: Test case throws exception: SseEventSource#isOpen returns false
      04-11-2021 20:28:10:  ERROR: Exception at:  
      04-11-2021 20:28:10:  ERROR: com.sun.ts.lib.harness.EETest$Fault: SseEventSource#isOpen returns false
      	at com.sun.ts.tests.jaxrs.common.JAXRSCommonClient.fault(JAXRSCommonClient.java:767)
      	at com.sun.ts.tests.jaxrs.common.JAXRSCommonClient.assertTrue(JAXRSCommonClient.java:662)
      	at com.sun.ts.tests.jaxrs.jaxrs21.ee.sse.SSEJAXRSClient.querySSEEndpoint(SSEJAXRSClient.java:58)
      	at com.sun.ts.tests.jaxrs.jaxrs21.ee.sse.SSEJAXRSClient.querySSEEndpoint(SSEJAXRSClient.java:44)
      	at com.sun.ts.tests.jaxrs.jaxrs21.ee.sse.sseeventsource.JAXRSClient.wait2Seconds(JAXRSClient.java:174)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at com.sun.ts.lib.harness.EETest.run(EETest.java:596)
      	at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:115)
      	at com.sun.ts.tests.common.vehicle.EmptyVehicleRunner.run(EmptyVehicleRunner.java:41)
      	at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:105)
      	at com.sun.ts.lib.harness.EETest.getPropsReady(EETest.java:486)
      	at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:209)
      	at com.sun.ts.lib.harness.EETest.run(EETest.java:285)
      	at com.sun.ts.tests.common.vehicle.VehicleClient.main(VehicleClient.java:37)
      
      04-11-2021 20:28:10:  [JAXRSCommonClient] Test cleanup OK
      04-11-2021 20:28:11:  TRACE: SLEPT FOR:  1000
      STATUS:Failed.Test case throws exception: SseEventSource#isOpen returns false
      Failed. Test case throws exception: SseEventSource#isOpen returns false
      ********************************************************************************
      Finished Test:  FAILED........com/sun/ts/tests/jaxrs/jaxrs21/ee/sse/sseeventsource/JAXRSClient.java#wait2Seconds_from_standalone
      

      For tips on debugging/fixing tests, see https://github.com/apache/tomee-tck/blob/master/DEBUGGING.adoc

      If you have any thoughts about what the test is expecting/testing, please add them to the comments.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dblevins David Blevins
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: