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

jaxrs.ee.rs.beanparam.form.plain formParamEntityWithEncodedTest

    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.ee.rs.beanparam.form.plain.JAXRSClient#formParamEntityWithEncodedTest_from_standalone
      

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

      04-11-2021 20:20:22:  TRACE: setup method JAXRSCommonClient
      04-11-2021 20:20:22:  [JAXRSCommonClient] Test setup OK
      04-11-2021 20:20:22:  TRACE: INVOKED SETUP METHOD!
      04-11-2021 20:20:22:  TRACE: ABOUT TO INVOKE EETEST RUN METHOD!
      04-11-2021 20:20:22:  TRACE: [JAXRSCommonClient] invoke
      04-11-2021 20:20:22:  TRACE: [JAXRSCommonClient] setTestProperties
      04-11-2021 20:20:22:  TRACE: [JAXRSCommonClient] setStandardProperties
      04-11-2021 20:20:22:  TRACE: [JAXRSCommonClient] setApiTestProperties
      04-11-2021 20:20:22:  TRACE: [HttpRequest] Added request header: Content-Type: application/x-www-form-urlencoded
      
      04-11-2021 20:20:22:  TRACE: [HttpRequest] Added request header: Accept: */*
      
      04-11-2021 20:20:22:  TRACE: [JAXRSCommonClient] EXECUTING
      04-11-2021 20:20:22:  [HttpRequest] Dispatching request: 'POST /jaxrs_ee_rs_beanparam_form_plain_web/resource/Param HTTP/1.1' to target server at 'localhost:50550'
      04-11-2021 20:20:22:  TRACE: ########## The real value set: false
      04-11-2021 20:20:22:  TRACE: [WIRE] - >> "POST /jaxrs_ee_rs_beanparam_form_plain_web/resource/Param HTTP/1.1[\r][\n]"
      04-11-2021 20:20:22:  TRACE: [WIRE] - >> "Content-Type: application/x-www-form-urlencoded[\r][\n]"
      04-11-2021 20:20:22:  TRACE: [WIRE] - >> "Accept: */*[\r][\n]"
      04-11-2021 20:20:22:  TRACE: [WIRE] - >> "Content-Length: 67[\r][\n]"
      04-11-2021 20:20:22:  TRACE: [WIRE] - >> "User-Agent: Jakarta Commons-HttpClient/3.1[\r][\n]"
      04-11-2021 20:20:22:  TRACE: [WIRE] - >> "Host: localhost:50550[\r][\n]"
      04-11-2021 20:20:22:  TRACE: [WIRE] - >> "[\r][\n]"
      04-11-2021 20:20:22:  TRACE: [WIRE] - >> "ANYTHING&ParamEntityWithValueOf=%21&InnerParamEntityWithValueOf=%21"
      04-11-2021 20:20:22:  TRACE: [WIRE] - << "HTTP/1.1 200 [\r][\n]"
      04-11-2021 20:20:22:  TRACE: [WIRE] - << "HTTP/1.1 200 [\r][\n]"
      04-11-2021 20:20:22:  TRACE: [WIRE] - << "Date: Mon, 12 Apr 2021 03:20:22 GMT[\r][\n]"
      04-11-2021 20:20:22:  TRACE: [WIRE] - << "Content-Type: text/plain[\r][\n]"
      04-11-2021 20:20:22:  TRACE: [WIRE] - << "Content-Length: 602[\r][\n]"
      04-11-2021 20:20:22:  TRACE: [WIRE] - << "[\r][\n]"
      04-11-2021 20:20:22:  TRACE: [WebValidatorBase] Expected Status Code '200' found in response line!
      04-11-2021 20:20:22:  TRACE: [WIRE] - << "ParamParamEntityWithConstructor=DefaultParamValueParamParamEntityWithFromString=DefaultParamValueParamParamEntityWithValueOf=!ParamSetParamEntityWithFromString=DefaultParamValueParamSortedSetParamEntityWithFromString=DefaultParamValueParamListParamEntityWithFromString=DefaultParamValueInnerParamParamEntityWithConstructor=DefaultParamValueInnerParamParamEntityWithFromString=DefaultParamValueInnerParamParamEntityWithValueOf=!InnerParamSetParamEntityWithFromString=DefaultParamValueInnerParamSortedSetParamEntityWithFromString=DefaultParamValueInnerParamListParamEntityWithFromString=DefaultParamValue"
      04-11-2021 20:20:22:  TRACE: [WIRE] - HttpConnectionManager is null.  Connection cannot be released.
      04-11-2021 20:20:22:  TRACE: [WebValidatorBase] Scanning response for search string: 'ParamParamEntityWithValueOf=!' starting at index location: 0
      04-11-2021 20:20:22:  TRACE: [WebValidatorBase] Found search string: 'ParamParamEntityWithValueOf=!' at index '97' in the server's response
      04-11-2021 20:20:22:  TRACE: [WebValidatorBase] Scanning response for search string: 'InnerParamParamEntityWithValueOf=!' starting at index location: 126
      04-11-2021 20:20:22:  TRACE: [WebValidatorBase] Found search string: 'InnerParamParamEntityWithValueOf=!' at index '393' in the server's response
      04-11-2021 20:20:22:  TRACE: [JAXRSCommonClient] invoke
      04-11-2021 20:20:22:  TRACE: [JAXRSCommonClient] setTestProperties
      04-11-2021 20:20:22:  TRACE: [JAXRSCommonClient] setStandardProperties
      04-11-2021 20:20:22:  TRACE: [JAXRSCommonClient] setApiTestProperties
      04-11-2021 20:20:22:  TRACE: [HttpRequest] Added request header: Content-Type: application/x-www-form-urlencoded
      
      04-11-2021 20:20:22:  TRACE: [HttpRequest] Added request header: Accept: */*
      
      04-11-2021 20:20:22:  TRACE: [JAXRSCommonClient] EXECUTING
      04-11-2021 20:20:22:  [HttpRequest] Dispatching request: 'POST /jaxrs_ee_rs_beanparam_form_plain_web/resource/Param HTTP/1.1' to target server at 'localhost:50550'
      04-11-2021 20:20:22:  TRACE: ########## The real value set: false
      04-11-2021 20:20:22:  TRACE: [WIRE] - >> "POST /jaxrs_ee_rs_beanparam_form_plain_web/resource/Param HTTP/1.1[\r][\n]"
      04-11-2021 20:20:22:  TRACE: [WIRE] - >> "Content-Type: application/x-www-form-urlencoded[\r][\n]"
      04-11-2021 20:20:22:  TRACE: [WIRE] - >> "Accept: */*[\r][\n]"
      04-11-2021 20:20:22:  TRACE: [WIRE] - >> "Content-Length: 73[\r][\n]"
      04-11-2021 20:20:22:  TRACE: [WIRE] - >> "User-Agent: Jakarta Commons-HttpClient/3.1[\r][\n]"
      04-11-2021 20:20:22:  TRACE: [WIRE] - >> "Host: localhost:50550[\r][\n]"
      04-11-2021 20:20:22:  TRACE: [WIRE] - >> "[\r][\n]"
      04-11-2021 20:20:22:  TRACE: [WIRE] - >> "ANYTHING&ParamEntityWithFromString=%21&InnerParamEntityWithFromString=%21"
      04-11-2021 20:20:22:  TRACE: [WIRE] - << "HTTP/1.1 200 [\r][\n]"
      04-11-2021 20:20:22:  TRACE: [WIRE] - << "HTTP/1.1 200 [\r][\n]"
      04-11-2021 20:20:22:  TRACE: [WIRE] - << "Date: Mon, 12 Apr 2021 03:20:22 GMT[\r][\n]"
      04-11-2021 20:20:22:  TRACE: [WIRE] - << "Content-Type: text/plain[\r][\n]"
      04-11-2021 20:20:22:  TRACE: [WIRE] - << "Content-Length: 602[\r][\n]"
      04-11-2021 20:20:22:  TRACE: [WIRE] - << "[\r][\n]"
      04-11-2021 20:20:22:  TRACE: [WebValidatorBase] Expected Status Code '200' found in response line!
      04-11-2021 20:20:22:  TRACE: [WIRE] - << "ParamParamEntityWithConstructor=DefaultParamValueParamParamEntityWithFromString=!ParamParamEntityWithValueOf=DefaultParamValueParamSetParamEntityWithFromString=DefaultParamValueParamSortedSetParamEntityWithFromString=DefaultParamValueParamListParamEntityWithFromString=DefaultParamValueInnerParamParamEntityWithConstructor=DefaultParamValueInnerParamParamEntityWithFromString=!InnerParamParamEntityWithValueOf=DefaultParamValueInnerParamSetParamEntityWithFromString=DefaultParamValueInnerParamSortedSetParamEntityWithFromString=DefaultParamValueInnerParamListParamEntityWithFromString=DefaultParamValue"
      04-11-2021 20:20:22:  TRACE: [WIRE] - HttpConnectionManager is null.  Connection cannot be released.
      04-11-2021 20:20:22:  TRACE: [WebValidatorBase] Scanning response for search string: 'ParamParamEntityWithFromString=%21' starting at index location: 0
      04-11-2021 20:20:22:  ERROR: [WebValidatorBase] Unable to find the following search string in the server's response: 'ParamParamEntityWithFromString=%21' at index: 0
      [WebValidatorBase] Server's response:
      -------------------------------------------
      ParamParamEntityWithConstructor=DefaultParamValueParamParamEntityWithFromString=!ParamParamEntityWithValueOf=DefaultParamValueParamSetParamEntityWithFromString=DefaultParamValueParamSortedSetParamEntityWithFromString=DefaultParamValueParamListParamEntityWithFromString=DefaultParamValueInnerParamParamEntityWithConstructor=DefaultParamValueInnerParamParamEntityWithFromString=!InnerParamParamEntityWithValueOf=DefaultParamValueInnerParamSetParamEntityWithFromString=DefaultParamValueInnerParamSortedSetParamEntityWithFromString=DefaultParamValueInnerParamListParamEntityWithFromString=DefaultParamValue
      -------------------------------------------
      
      04-11-2021 20:20:22:  ERROR: Test case throws exception: [JAXRSCommonClient] null failed! Check output for cause of failure.
      04-11-2021 20:20:22:  ERROR: Exception at:  
      04-11-2021 20:20:22:  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.paramEntityWithEncodedTest(JaxrsParamClient.java:183)
      	at com.sun.ts.tests.jaxrs.ee.rs.beanparam.form.plain.JAXRSClient.formParamEntityWithEncodedTest(JAXRSClient.java:194)
      	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:20:22:  [JAXRSCommonClient] Test cleanup OK
      04-11-2021 20:20:23:  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#formParamEntityWithEncodedTest_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

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

            Dates

              Created:
              Updated:
              Resolved: