[ 
https://issues.apache.org/jira/browse/CXF-9038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18054045#comment-18054045
 ] 

Andriy Redko commented on CXF-9038:
-----------------------------------

The last TCK test failure is difficult to fix:
{noformat}
************************************************************
* props file set to "/tmp/jenkins-cts-props.txt"
************************************************************
01-19-2026 03:31:45:  [JAXRSCommonClient] Test setup OK
01-19-2026 03:31:45:  [Request] Dispatching request: 'POST 
http://localhost:8080/jaxrs_jaxrs21_ee_sse_sseeventsource_web/repeat/set' to 
target server at 'localhost:8080'
01-19-2026 03:31:45:  ###############################
01-19-2026 03:31:45:  [Request] Adding entity: true
01-19-2026 03:31:45:  TRACE: [WIRE] - >> POST 
http://localhost:8080/jaxrs_jaxrs21_ee_sse_sseeventsource_web/repeat/set
01-19-2026 03:31:45:  TRACE: [WIRE] - >> Accept:*/*, Content-Type:text/plain
01-19-2026 03:31:45:  TRACE: [WIRE] - >> true
01-19-2026 03:31:46:  TRACE: [WIRE] - << 200 OK
01-19-2026 03:31:46:  TRACE: [WIRE] - << :status: 200
01-19-2026 03:31:46:  TRACE: [WIRE] - << Content-Length: 4
01-19-2026 03:31:46:  TRACE: [WIRE] - << content-type: text/plain
01-19-2026 03:31:46:  TRACE: [WIRE] - << true
01-19-2026 03:31:46:  Received message no 0
01-19-2026 03:31:46:  Received message no 1
01-19-2026 03:31:46:  [Request] Dispatching request: 'GET 
http://localhost:8080/jaxrs_jaxrs21_ee_sse_sseeventsource_web/repeat/isopen' to 
target server at 'localhost:8080'
01-19-2026 03:31:46:  ###############################
01-19-2026 03:31:46:  TRACE: [WIRE] - >> GET 
http://localhost:8080/jaxrs_jaxrs21_ee_sse_sseeventsource_web/repeat/isopen
01-19-2026 03:31:46:  TRACE: [WIRE] - >> Accept:*/*
01-19-2026 03:31:46:  TRACE: [WIRE] - << 200 OK
01-19-2026 03:31:46:  TRACE: [WIRE] - << :status: 200
01-19-2026 03:31:46:  TRACE: [WIRE] - << Content-Length: 4
01-19-2026 03:31:46:  TRACE: [WIRE] - << content-type: text/plain
01-19-2026 03:31:46:  TRACE: [WIRE] - << true
01-19-2026 03:31:47:  Received message no 2
01-19-2026 03:31:47:  Received message no 3
01-19-2026 03:31:48:  Received message no 4
01-19-2026 03:31:48:  [Request] Dispatching request: 'GET 
http://localhost:8080/jaxrs_jaxrs21_ee_sse_sseeventsource_web/repeat/isopen' to 
target server at 'localhost:8080'
01-19-2026 03:31:48:  ###############################
01-19-2026 03:31:48:  TRACE: [WIRE] - >> GET 
http://localhost:8080/jaxrs_jaxrs21_ee_sse_sseeventsource_web/repeat/isopen
01-19-2026 03:31:48:  TRACE: [WIRE] - >> Accept:*/*
01-19-2026 03:31:48:  TRACE: [WIRE] - << 200 OK
01-19-2026 03:31:48:  TRACE: [WIRE] - << :status: 200
01-19-2026 03:31:48:  TRACE: [WIRE] - << Content-Length: 4
01-19-2026 03:31:48:  TRACE: [WIRE] - << content-type: text/plain
01-19-2026 03:31:48:  TRACE: [WIRE] - << true
01-19-2026 03:31:52:  [Request] Dispatching request: 'GET 
http://localhost:8080/jaxrs_jaxrs21_ee_sse_sseeventsource_web/repeat/isopen' to 
target server at 'localhost:8080'
01-19-2026 03:31:52:  ###############################
01-19-2026 03:31:52:  TRACE: [WIRE] - >> GET 
http://localhost:8080/jaxrs_jaxrs21_ee_sse_sseeventsource_web/repeat/isopen
01-19-2026 03:31:52:  TRACE: [WIRE] - >> Accept:*/*
01-19-2026 03:31:52:  TRACE: [WIRE] - << 200 OK
01-19-2026 03:31:52:  TRACE: [WIRE] - << :status: 200
01-19-2026 03:31:52:  TRACE: [WIRE] - << Content-Length: 4
01-19-2026 03:31:52:  TRACE: [WIRE] - << content-type: text/plain
01-19-2026 03:31:52:  TRACE: [WIRE] - << true
01-19-2026 03:31:52:  ERROR: Message was not received and SseEventSink is open
Sending false
01-19-2026 03:31:52:  [Request] Dispatching request: 'POST 
http://localhost:8080/jaxrs_jaxrs21_ee_sse_sseeventsource_web/repeat/set' to 
target server at 'localhost:8080'
01-19-2026 03:31:52:  ###############################
01-19-2026 03:31:52:  [Request] Adding entity: false
01-19-2026 03:31:52:  TRACE: [WIRE] - >> POST 
http://localhost:8080/jaxrs_jaxrs21_ee_sse_sseeventsource_web/repeat/set
01-19-2026 03:31:52:  TRACE: [WIRE] - >> Accept:*/*, Content-Type:text/plain
01-19-2026 03:31:52:  TRACE: [WIRE] - >> false
01-19-2026 03:31:52:  TRACE: [WIRE] - << 200 OK
01-19-2026 03:31:52:  TRACE: [WIRE] - << :status: 200
01-19-2026 03:31:52:  TRACE: [WIRE] - << Content-Length: 5
01-19-2026 03:31:52:  TRACE: [WIRE] - << content-type: text/plain
01-19-2026 03:31:52:  TRACE: [WIRE] - << false
Sent false
01-19-2026 03:31:52:  ERROR: Test case throws exception: Message was not 
received and SseEventSink is open
01-19-2026 03:31:52:  ERROR: Exception at:  
01-19-2026 03:31:52:  ERROR: com.sun.ts.lib.harness.EETest$Fault: Message was 
not received and SseEventSink is open
        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.common.JAXRSCommonClient.assertFalse(JAXRSCommonClient.java:678)
        at 
com.sun.ts.tests.jaxrs.jaxrs21.ee.sse.sseeventsource.JAXRSClient.closeTest(JAXRSClient.java:596)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        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)

01-19-2026 03:31:52:  [JAXRSCommonClient] Test cleanup OK
STATUS:Failed.Test case throws exception: Message was not received and 
SseEventSink is open
result: Failed. Test case throws exception: Message was not received and 
SseEventSink is open


test result: Failed. Test case throws exception: Message was not received and 
SseEventSink is open {noformat}
The problem here is that CXF will detect closed SseEventSink only the next 
write but there is a delay in the TCK test case (~500ms) between 
SseSource::close() and next SseEventSink::send(), this is causing the test case 
to fail. Both SseEventSink and SseSource will be closed eventually though.

> Run Jakarta RESTful Web Services 3.0 TCK
> ----------------------------------------
>
>                 Key: CXF-9038
>                 URL: https://issues.apache.org/jira/browse/CXF-9038
>             Project: CXF
>          Issue Type: Improvement
>    Affects Versions: 4.0.5
>            Reporter: Andriy Redko
>            Assignee: Andriy Redko
>            Priority: Major
>             Fix For: 4.0.11
>
>
> Run Jakarta RESTful Web Services 3.0 TCK (JakarteEE 9.1): 
> https://ci-builds.apache.org/job/CXF/job/CXF-JAXRS-3.0-TCK
> Documentation: 
> https://cwiki.apache.org/confluence/display/CXF20DOC/JakartaEE+TCKs#JakartaEETCKs-JakartaRESTfulWebServices3.0TCK



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to