Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Follow setup instructions in TOMEE-3140. Then run:
./runtests --ee91 -c -j --web tomee-plume com.sun.ts.tests.jaxrs.ee.rs.beanparam.form.plain.JAXRSClient#formFieldParamEntityWithEncodedTest_from_standalone
At the time this issue was filed, the test failed with the following in target/logs/javatest.log
04-11-2021 20:19:41: TRACE: setup method JAXRSCommonClient 04-11-2021 20:19:41: [JAXRSCommonClient] Test setup OK 04-11-2021 20:19:41: TRACE: INVOKED SETUP METHOD! 04-11-2021 20:19:41: TRACE: ABOUT TO INVOKE EETEST RUN METHOD! 04-11-2021 20:19:41: TRACE: [JAXRSCommonClient] invoke 04-11-2021 20:19:41: TRACE: [JAXRSCommonClient] setTestProperties 04-11-2021 20:19:41: TRACE: [JAXRSCommonClient] setStandardProperties 04-11-2021 20:19:41: TRACE: [JAXRSCommonClient] setApiTestProperties 04-11-2021 20:19:41: TRACE: [HttpRequest] Added request header: Content-Type: application/x-www-form-urlencoded 04-11-2021 20:19:41: TRACE: [HttpRequest] Added request header: Accept: */* 04-11-2021 20:19:41: TRACE: [JAXRSCommonClient] EXECUTING 04-11-2021 20:19:41: [HttpRequest] Dispatching request: 'POST /jaxrs_ee_rs_beanparam_form_plain_web/resource/Field HTTP/1.1' to target server at 'localhost:50475' 04-11-2021 20:19:41: TRACE: ########## The real value set: false 04-11-2021 20:19:41: TRACE: [WIRE] - >> "POST /jaxrs_ee_rs_beanparam_form_plain_web/resource/Field HTTP/1.1[\r][\n]" 04-11-2021 20:19:41: TRACE: [WIRE] - >> "Content-Type: application/x-www-form-urlencoded[\r][\n]" 04-11-2021 20:19:41: TRACE: [WIRE] - >> "Accept: */*[\r][\n]" 04-11-2021 20:19:41: TRACE: [WIRE] - >> "Content-Length: 67[\r][\n]" 04-11-2021 20:19:41: TRACE: [WIRE] - >> "User-Agent: Jakarta Commons-HttpClient/3.1[\r][\n]" 04-11-2021 20:19:41: TRACE: [WIRE] - >> "Host: localhost:50475[\r][\n]" 04-11-2021 20:19:41: TRACE: [WIRE] - >> "[\r][\n]" 04-11-2021 20:19:41: TRACE: [WIRE] - >> "ANYTHING&ParamEntityWithValueOf=%21&InnerParamEntityWithValueOf=%21" 04-11-2021 20:19:41: TRACE: [WIRE] - << "HTTP/1.1 200 [\r][\n]" 04-11-2021 20:19:41: TRACE: [WIRE] - << "HTTP/1.1 200 [\r][\n]" 04-11-2021 20:19:41: TRACE: [WIRE] - << "Date: Mon, 12 Apr 2021 03:19:41 GMT[\r][\n]" 04-11-2021 20:19:41: TRACE: [WIRE] - << "Content-Type: text/plain[\r][\n]" 04-11-2021 20:19:41: TRACE: [WIRE] - << "Content-Length: 602[\r][\n]" 04-11-2021 20:19:41: TRACE: [WIRE] - << "[\r][\n]" 04-11-2021 20:19:41: TRACE: [WebValidatorBase] Expected Status Code '200' found in response line! 04-11-2021 20:19:41: TRACE: [WIRE] - << "FieldParamEntityWithConstructor=DefaultParamValueFieldParamEntityWithFromString=DefaultParamValueFieldParamEntityWithValueOf=!FieldSetParamEntityWithFromString=DefaultParamValueFieldSortedSetParamEntityWithFromString=DefaultParamValueFieldListParamEntityWithFromString=DefaultParamValueInnerFieldParamEntityWithConstructor=DefaultParamValueInnerFieldParamEntityWithFromString=DefaultParamValueInnerFieldParamEntityWithValueOf=!InnerFieldSetParamEntityWithFromString=DefaultParamValueInnerFieldSortedSetParamEntityWithFromString=DefaultParamValueInnerFieldListParamEntityWithFromString=DefaultParamValue" 04-11-2021 20:19:41: TRACE: [WIRE] - HttpConnectionManager is null. Connection cannot be released. 04-11-2021 20:19:41: TRACE: [WebValidatorBase] Scanning response for search string: 'FieldParamEntityWithValueOf=!' starting at index location: 0 04-11-2021 20:19:41: TRACE: [WebValidatorBase] Found search string: 'FieldParamEntityWithValueOf=!' at index '97' in the server's response 04-11-2021 20:19:41: TRACE: [WebValidatorBase] Scanning response for search string: 'InnerFieldParamEntityWithValueOf=!' starting at index location: 126 04-11-2021 20:19:41: TRACE: [WebValidatorBase] Found search string: 'InnerFieldParamEntityWithValueOf=!' at index '393' in the server's response 04-11-2021 20:19:41: TRACE: [JAXRSCommonClient] invoke 04-11-2021 20:19:41: TRACE: [JAXRSCommonClient] setTestProperties 04-11-2021 20:19:41: TRACE: [JAXRSCommonClient] setStandardProperties 04-11-2021 20:19:41: TRACE: [JAXRSCommonClient] setApiTestProperties 04-11-2021 20:19:41: TRACE: [HttpRequest] Added request header: Content-Type: application/x-www-form-urlencoded 04-11-2021 20:19:41: TRACE: [HttpRequest] Added request header: Accept: */* 04-11-2021 20:19:41: TRACE: [JAXRSCommonClient] EXECUTING 04-11-2021 20:19:41: [HttpRequest] Dispatching request: 'POST /jaxrs_ee_rs_beanparam_form_plain_web/resource/Field HTTP/1.1' to target server at 'localhost:50475' 04-11-2021 20:19:41: TRACE: ########## The real value set: false 04-11-2021 20:19:41: TRACE: [WIRE] - >> "POST /jaxrs_ee_rs_beanparam_form_plain_web/resource/Field HTTP/1.1[\r][\n]" 04-11-2021 20:19:41: TRACE: [WIRE] - >> "Content-Type: application/x-www-form-urlencoded[\r][\n]" 04-11-2021 20:19:41: TRACE: [WIRE] - >> "Accept: */*[\r][\n]" 04-11-2021 20:19:41: TRACE: [WIRE] - >> "Content-Length: 73[\r][\n]" 04-11-2021 20:19:41: TRACE: [WIRE] - >> "User-Agent: Jakarta Commons-HttpClient/3.1[\r][\n]" 04-11-2021 20:19:41: TRACE: [WIRE] - >> "Host: localhost:50475[\r][\n]" 04-11-2021 20:19:41: TRACE: [WIRE] - >> "[\r][\n]" 04-11-2021 20:19:41: TRACE: [WIRE] - >> "ANYTHING&ParamEntityWithFromString=%21&InnerParamEntityWithFromString=%21" 04-11-2021 20:19:41: TRACE: [WIRE] - << "HTTP/1.1 200 [\r][\n]" 04-11-2021 20:19:41: TRACE: [WIRE] - << "HTTP/1.1 200 [\r][\n]" 04-11-2021 20:19:41: TRACE: [WIRE] - << "Date: Mon, 12 Apr 2021 03:19:41 GMT[\r][\n]" 04-11-2021 20:19:41: TRACE: [WIRE] - << "Content-Type: text/plain[\r][\n]" 04-11-2021 20:19:41: TRACE: [WIRE] - << "Content-Length: 602[\r][\n]" 04-11-2021 20:19:41: TRACE: [WIRE] - << "[\r][\n]" 04-11-2021 20:19:41: TRACE: [WebValidatorBase] Expected Status Code '200' found in response line! 04-11-2021 20:19:41: TRACE: [WIRE] - << "FieldParamEntityWithConstructor=DefaultParamValueFieldParamEntityWithFromString=!FieldParamEntityWithValueOf=DefaultParamValueFieldSetParamEntityWithFromString=DefaultParamValueFieldSortedSetParamEntityWithFromString=DefaultParamValueFieldListParamEntityWithFromString=DefaultParamValueInnerFieldParamEntityWithConstructor=DefaultParamValueInnerFieldParamEntityWithFromString=!InnerFieldParamEntityWithValueOf=DefaultParamValueInnerFieldSetParamEntityWithFromString=DefaultParamValueInnerFieldSortedSetParamEntityWithFromString=DefaultParamValueInnerFieldListParamEntityWithFromString=DefaultParamValue" 04-11-2021 20:19:41: TRACE: [WIRE] - HttpConnectionManager is null. Connection cannot be released. 04-11-2021 20:19:41: TRACE: [WebValidatorBase] Scanning response for search string: 'FieldParamEntityWithFromString=%21' starting at index location: 0 04-11-2021 20:19:41: ERROR: [WebValidatorBase] Unable to find the following search string in the server's response: 'FieldParamEntityWithFromString=%21' at index: 0 [WebValidatorBase] Server's response: ------------------------------------------- FieldParamEntityWithConstructor=DefaultParamValueFieldParamEntityWithFromString=!FieldParamEntityWithValueOf=DefaultParamValueFieldSetParamEntityWithFromString=DefaultParamValueFieldSortedSetParamEntityWithFromString=DefaultParamValueFieldListParamEntityWithFromString=DefaultParamValueInnerFieldParamEntityWithConstructor=DefaultParamValueInnerFieldParamEntityWithFromString=!InnerFieldParamEntityWithValueOf=DefaultParamValueInnerFieldSetParamEntityWithFromString=DefaultParamValueInnerFieldSortedSetParamEntityWithFromString=DefaultParamValueInnerFieldListParamEntityWithFromString=DefaultParamValue ------------------------------------------- 04-11-2021 20:19:41: ERROR: Test case throws exception: [JAXRSCommonClient] null failed! Check output for cause of failure. 04-11-2021 20:19:41: ERROR: Exception at: 04-11-2021 20:19:41: ERROR: com.sun.ts.tests.common.webclient.TestFailureException: Test FAILED! at com.sun.ts.tests.common.webclient.WebTestCase.execute(WebTestCase.java:178) at com.sun.ts.tests.jaxrs.common.JAXRSCommonClient.invoke(JAXRSCommonClient.java:307) at com.sun.ts.tests.jaxrs.ee.rs.beanparam.BeanParamCommonClient.invoke(BeanParamCommonClient.java:114) at com.sun.ts.tests.jaxrs.ee.rs.beanparam.BeanParamCommonClient.buildRequestAndInvoke(BeanParamCommonClient.java:122) at com.sun.ts.tests.jaxrs.ee.rs.beanparam.BeanParamCommonClient.paramEntity(BeanParamCommonClient.java:95) at com.sun.ts.tests.jaxrs.ee.rs.beanparam.BeanParamCommonClient.fieldOrParamEncodedTest(BeanParamCommonClient.java:81) at com.sun.ts.tests.jaxrs.ee.rs.JaxrsParamClient.fieldEntityWithEncodedTest(JaxrsParamClient.java:192) at com.sun.ts.tests.jaxrs.ee.rs.beanparam.form.plain.JAXRSClient.formFieldParamEntityWithEncodedTest(JAXRSClient.java:205) 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:19:41: [JAXRSCommonClient] Test cleanup OK 04-11-2021 20:19:42: TRACE: SLEPT FOR: 1000 STATUS:Failed.Test case throws exception: [JAXRSCommonClient] null failed! Check output for cause of failure. Failed. Test case throws exception: [JAXRSCommonClient] null failed! Check output for cause of failure. ******************************************************************************** Finished Test: FAILED........com/sun/ts/tests/jaxrs/ee/rs/beanparam/form/plain/JAXRSClient.java#formFieldParamEntityWithEncodedTest_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.