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

jaxrs.spec.provider.standardnotnull clientJaxbProviderTest

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9.0.0-M7
    • Component/s: None
    • Labels:
      None

      Description

      Follow setup instructions in TOMEE-3140. Then run:

      ./runtests --ee91 -c -j --web tomee-plume com.sun.ts.tests.jaxrs.spec.provider.standardnotnull.JAXRSClient#clientJaxbProviderTest_from_standalone
      

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

      04-11-2021 20:40:35:  TRACE: [JAXRSCommonClient] invoke
      04-11-2021 20:40:35:  TRACE: [JAXRSCommonClient] setTestProperties
      04-11-2021 20:40:35:  TRACE: [JAXRSCommonClient] EXECUTING
      04-11-2021 20:40:35:  [Request] Dispatching request: 'GET http://localhost:52817/jaxrs_spec_provider_standardnotnull_web/resource/null' to target server at 'localhost:52817'
      04-11-2021 20:40:35:  ###############################
      04-11-2021 20:40:36:  TRACE: [WIRE] - >> GET http://localhost:52817/jaxrs_spec_provider_standardnotnull_web/resource/null
      04-11-2021 20:40:36:  TRACE: [WIRE] - >> Accept:application/xml
      04-11-2021 20:40:36:  TRACE: [WIRE] - << 204 NO_CONTENT
      04-11-2021 20:40:36:  TRACE: [WIRE] - << connection: keep-alive
      04-11-2021 20:40:36:  TRACE: [WIRE] - << Date: Mon, 12 Apr 2021 03:40:36 GMT
      04-11-2021 20:40:36:  TRACE: [WIRE] - << Keep-Alive: timeout=20
      04-11-2021 20:40:36:  TRACE: [WebValidatorBase] Expected Status Code '204' found in response line!
      Apr 11, 2021 8:40:36 PM org.apache.cxf.jaxrs.provider.AbstractJAXBProvider handleExceptionStart
      WARNING: jakarta.xml.bind.UnmarshalException
       - with linked exception:
      [com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
       at [row,col {unknown-source}]: [1,0]]
      	at org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:445)
      	at org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:377)
      	at org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:354)
      	at org.apache.cxf.jaxrs.provider.JAXBElementProvider.readFrom(JAXBElementProvider.java:177)
      	at org.apache.cxf.jaxrs.provider.JAXBElementTypedProvider.readFrom(JAXBElementTypedProvider.java:41)
      	at org.apache.cxf.jaxrs.provider.JAXBElementTypedProvider.readFrom(JAXBElementTypedProvider.java:34)
      	at org.apache.cxf.jaxrs.utils.JAXRSUtils.readFromMessageBodyReader(JAXRSUtils.java:1435)
      	at org.apache.cxf.jaxrs.impl.ResponseImpl.doReadEntity(ResponseImpl.java:472)
      	at org.apache.cxf.jaxrs.impl.ResponseImpl.readEntity(ResponseImpl.java:415)
      	at org.apache.cxf.jaxrs.impl.ResponseImpl.readEntity(ResponseImpl.java:403)
      	at com.sun.ts.tests.jaxrs.spec.provider.standardnotnull.JAXRSClient.clientJaxbProviderTest(JAXRSClient.java:432)
      	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)
      Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
       at [row,col {unknown-source}]: [1,0]
      	at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:701)
      	at com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2235)
      	at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2141)
      	at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1180)
      	at org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:132)
      	at org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:375)
      	... 21 more
      
      Apr 11, 2021 8:40:36 PM org.apache.cxf.jaxrs.utils.JAXRSUtils logMessageHandlerProblem
      SEVERE: Problem with reading the data, class jakarta.xml.bind.JAXBElement, ContentType: */*.
      04-11-2021 20:40:36:  ERROR: Test case throws exception: Problem with reading the data, class jakarta.xml.bind.JAXBElement, ContentType: */*.
      04-11-2021 20:40:36:  ERROR: Exception at:  
      04-11-2021 20:40:36:  ERROR: jakarta.ws.rs.client.ResponseProcessingException: Problem with reading the data, class jakarta.xml.bind.JAXBElement, ContentType: */*.
      	at org.apache.cxf.jaxrs.impl.ResponseImpl.reportMessageHandlerProblem(ResponseImpl.java:557)
      	at org.apache.cxf.jaxrs.impl.ResponseImpl.doReadEntity(ResponseImpl.java:499)
      	at org.apache.cxf.jaxrs.impl.ResponseImpl.readEntity(ResponseImpl.java:415)
      	at org.apache.cxf.jaxrs.impl.ResponseImpl.readEntity(ResponseImpl.java:403)
      	at com.sun.ts.tests.jaxrs.spec.provider.standardnotnull.JAXRSClient.clientJaxbProviderTest(JAXRSClient.java:432)
      	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)
      Caused by: jakarta.ws.rs.BadRequestException: HTTP 400 Bad Request
      	at org.apache.cxf.jaxrs.utils.SpecExceptions.toBadRequestException(SpecExceptions.java:84)
      	at org.apache.cxf.jaxrs.utils.ExceptionUtils.toBadRequestException(ExceptionUtils.java:120)
      	at org.apache.cxf.jaxrs.provider.AbstractJAXBProvider.handleExceptionEnd(AbstractJAXBProvider.java:727)
      	at org.apache.cxf.jaxrs.provider.AbstractJAXBProvider.handleJAXBException(AbstractJAXBProvider.java:753)
      	at org.apache.cxf.jaxrs.provider.JAXBElementProvider.readFrom(JAXBElementProvider.java:195)
      	at org.apache.cxf.jaxrs.provider.JAXBElementTypedProvider.readFrom(JAXBElementTypedProvider.java:41)
      	at org.apache.cxf.jaxrs.provider.JAXBElementTypedProvider.readFrom(JAXBElementTypedProvider.java:34)
      	at org.apache.cxf.jaxrs.utils.JAXRSUtils.readFromMessageBodyReader(JAXRSUtils.java:1435)
      	at org.apache.cxf.jaxrs.impl.ResponseImpl.doReadEntity(ResponseImpl.java:472)
      	... 15 more
      Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
       at [row,col {unknown-source}]: [1,0]
      	at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:701)
      	at com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2235)
      	at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2141)
      	at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1180)
      	at org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:132)
      	at org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:375)
      	at org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:354)
      	at org.apache.cxf.jaxrs.provider.JAXBElementProvider.readFrom(JAXBElementProvider.java:177)
      	... 19 more
      
      04-11-2021 20:40:36:  [JAXRSCommonClient] Test cleanup OK
      04-11-2021 20:40:37:  TRACE: SLEPT FOR:  1000
      STATUS:Failed.Test case throws exception: Problem with reading the data, class jakarta.xml.bind.JAXBElement, ContentType: */*.
      Failed. Test case throws exception: Problem with reading the data, class jakarta.xml.bind.JAXBElement, ContentType: */*.
      ********************************************************************************
      Finished Test:  FAILED........com/sun/ts/tests/jaxrs/spec/provider/standardnotnull/JAXRSClient.java#clientJaxbProviderTest_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

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

              Dates

              • Created:
                Updated:
                Resolved: