You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Richard Zowalla (Jira)" <ji...@apache.org> on 2021/05/03 09:18:00 UTC

[jira] [Commented] (TOMEE-3226) websocket.spec.servercontainer.addendpoint setTimeout1Test

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

Richard Zowalla commented on TOMEE-3226:
----------------------------------------

Works via GUI, fails on AWS. Overall -> works :)

> websocket.spec.servercontainer.addendpoint setTimeout1Test
> ----------------------------------------------------------
>
>                 Key: TOMEE-3226
>                 URL: https://issues.apache.org/jira/browse/TOMEE-3226
>             Project: TomEE
>          Issue Type: Sub-task
>            Reporter: David Blevins
>            Priority: Major
>
> Follow setup instructions in TOMEE-3140.  Then run:
> {code}
> ./runtests --ee91 -c -j --web tomee-plume com.sun.ts.tests.websocket.spec.servercontainer.addendpoint.WSClient#setTimeout1Test
> {code}
> At the time this issue was filed, the test failed with the following in {{target/logs/javatest.log}}
> {code}
> [MessageValidator] Scanning for search string: 'TCKTestServer received String: testName=setTimeout1Test' starting at index location: 91
> [MessageValidator] Found search string: 'TCKTestServer received String: testName=setTimeout1Test' at index '99
> Test failed due to message sent and/or received after timeout from client side
> 04-12-2021 03:07:55:  ERROR: Test failed with incorrect response
> com.sun.ts.lib.harness.EETest$Fault: Test failed with incorrect response
> 	at com.sun.ts.tests.websocket.spec.servercontainer.addendpoint.WSClient.setTimeout1Test(WSClient.java:1416)
> 	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.lib.harness.EETest.getPropsReady(EETest.java:486)
> 	at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:209)
> 	at com.sun.ts.tests.websocket.common.client.WebSocketCommonClient.run(WebSocketCommonClient.java:570)
> 	at com.sun.ts.tests.websocket.spec.servercontainer.addendpoint.WSClient.main(WSClient.java:60)
> 04-12-2021 03:07:55:  ERROR: Test case throws exception: com.sun.ts.lib.harness.EETest$Fault: Test failed with incorrect response
> 04-12-2021 03:07:55:  ERROR: Exception at:  
> 04-12-2021 03:07:55:  ERROR: com.sun.ts.lib.harness.EETest$Fault: Test failed with incorrect response
> 	at com.sun.ts.tests.websocket.spec.servercontainer.addendpoint.WSClient.setTimeout1Test(WSClient.java:1416)
> 	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.lib.harness.EETest.getPropsReady(EETest.java:486)
> 	at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:209)
> 	at com.sun.ts.tests.websocket.common.client.WebSocketCommonClient.run(WebSocketCommonClient.java:570)
> 	at com.sun.ts.tests.websocket.spec.servercontainer.addendpoint.WSClient.main(WSClient.java:60)
> 04-12-2021 03:07:55:  [WebSocketCommonClient] Test cleanup OK
> 04-12-2021 03:07:56:  TRACE: SLEPT FOR:  1000
> 04-12-2021 03:07:56:  TRACE: in custom vehicle so call on EETest.
> 04-12-2021 03:07:56:  TRACE: *** in EETest.run(argv,p)
> 04-12-2021 03:07:56:  TRACE: TESTCLASS=com.sun.ts.tests.websocket.spec.servercontainer.addendpoint.WSClient
> 04-12-2021 03:07:56:  TRACE: ** IN getRunMethod: testClass=com.sun.ts.tests.websocket.spec.servercontainer.addendpoint.WSClient
> 04-12-2021 03:07:56:  TRACE: ** IN getRunMethod: testname=setTimeout1Test
> 04-12-2021 03:07:56:  TRACE: ** GOT RUN METHOD!
> 04-12-2021 03:07:56:  TRACE: **runmethod=setTimeout1Test
> 04-12-2021 03:07:56:  TRACE: ABOUT TO GET SETUP METHOD!
> 04-12-2021 03:07:56:  TRACE: No setupMethod annotation present
> 04-12-2021 03:07:56:  TRACE: getSetupMethod - checking for testcase specific setup method:  setTimeout1Test_setup
> 04-12-2021 03:07:56:  TRACE: getSetupMethod - checking for default class specific setup method
> 04-12-2021 03:07:56:  TRACE: GOT SETUP METHOD!
> 04-12-2021 03:07:56:  TRACE: No cleanupMethod annotation present
> 04-12-2021 03:07:56:  TRACE: getCleanupMethod - checking for testcase specific cleanup method:  setTimeout1Test_cleanup
> 04-12-2021 03:07:56:  TRACE: getCleanupMethod - checking for default class specific cleanup method
> 04-12-2021 03:07:56:  TRACE: GOT CLEANUP METHOD!
> 04-12-2021 03:07:56:  TRACE: ABOUT TO INVOKE SETUP METHOD!
> 04-12-2021 03:07:56:  TRACE: setup method WebSocketCommonClient
> 04-12-2021 03:07:56:  [WebSocketCommonClient] Test setup OK
> 04-12-2021 03:07:56:  TRACE: INVOKED SETUP METHOD!
> 04-12-2021 03:07:56:  TRACE: ABOUT TO INVOKE EETEST RUN METHOD!
> getMaxIdleTimeout returned default value on client side =0
> TCKTestServer got String message: testName=setTimeout1Test
> ========In setMaxIdleTimeout1Test: TCKTestServer received String:testName=setTimeout1Test
> TCKBasicEndpoint OnOpen========TCKTestServer opened========session from Server is open=TRUE========TCKTestServer received String: testName=setTimeout1Test========TCKTestServer default timeout: 0TCKBasicEndpoint OnClose CloseCode=CLOSED_ABNORMALLYTCKBasicEndpoint OnClose ReasonPhrase=The WebSocket session [0] idle timeout expiredTCKBasicEndpoint OnOpen========TCKTestServer opened========session from Server is open=TRUE========TCKTestServer received String: testName=setTimeout1Test========TCKTestServer default timeout: 0========TCKTestServer second message after sleep 40 secondTCKBasicEndpoint OnClose CloseCode=CLOSED_ABNORMALLYTCKBasicEndpoint OnClose ReasonPhrase=The WebSocket session [1] idle timeout expiredTCKBasicEndpoint OnOpen========TCKTestServer opened========session from Server is open=TRUE========TCKTestServer received String: testName=setTimeout1Test========TCKTestServer default timeout: 0TCKBasicEndpoint OnClose CloseCode=CLOSED_ABNORMALLYTCKBasicEndpoint OnClose ReasonPhrase=The WebSocket session [2] idle timeout expired
> [MessageValidator] Scanning for search string: 'TCKBasicEndpoint OnOpen' starting at index location: 0
> [MessageValidator] Found search string: 'TCKBasicEndpoint OnOpen' at index '0
> [MessageValidator] Scanning for search string: 'TCKTestServer opened' starting at index location: 23
> [MessageValidator] Found search string: 'TCKTestServer opened' at index '31
> [MessageValidator] Scanning for search string: 'session from Server is open=TRUE' starting at index location: 51
> Test failed due to message sent and/or received after timeout from client side
> [MessageValidator] Found search string: 'session from Server is open=TRUE' at index '59
> [MessageValidator] Scanning for search string: 'TCKTestServer received String: testName=setTimeout1Test' starting at index location: 91
> [MessageValidator] Found search string: 'TCKTestServer received String: testName=setTimeout1Test' at index '99
> 04-12-2021 03:38:24:  ERROR: Test failed with incorrect response
> com.sun.ts.lib.harness.EETest$Fault: Test failed with incorrect response
> 	at com.sun.ts.tests.websocket.spec.servercontainer.addendpoint.WSClient.setTimeout1Test(WSClient.java:1416)
> 	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.lib.harness.EETest.getPropsReady(EETest.java:486)
> 	at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:209)
> 	at com.sun.ts.tests.websocket.common.client.WebSocketCommonClient.run(WebSocketCommonClient.java:570)
> 	at com.sun.ts.tests.websocket.spec.servercontainer.addendpoint.WSClient.main(WSClient.java:60)
> 04-12-2021 03:38:24:  ERROR: Test case throws exception: com.sun.ts.lib.harness.EETest$Fault: Test failed with incorrect response
> 04-12-2021 03:38:24:  ERROR: Exception at:  
> 04-12-2021 03:38:24:  ERROR: com.sun.ts.lib.harness.EETest$Fault: Test failed with incorrect response
> 	at com.sun.ts.tests.websocket.spec.servercontainer.addendpoint.WSClient.setTimeout1Test(WSClient.java:1416)
> 	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.lib.harness.EETest.getPropsReady(EETest.java:486)
> 	at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:209)
> 	at com.sun.ts.tests.websocket.common.client.WebSocketCommonClient.run(WebSocketCommonClient.java:570)
> 	at com.sun.ts.tests.websocket.spec.servercontainer.addendpoint.WSClient.main(WSClient.java:60)
> 04-12-2021 03:38:24:  [WebSocketCommonClient] Test cleanup OK
> 04-12-2021 03:38:25:  TRACE: SLEPT FOR:  1000
> STATUS:Failed.Test case throws exception: com.sun.ts.lib.harness.EETest$Fault: Test failed with incorrect response
> Failed. Test case throws exception: com.sun.ts.lib.harness.EETest$Fault: Test failed with incorrect response
> ********************************************************************************
> Finished Test:  FAILED........com/sun/ts/tests/websocket/spec/servercontainer/addendpoint/WSClient.java#setTimeout1Test
> {code}
> 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.*



--
This message was sent by Atlassian Jira
(v8.3.4#803005)