Description
Full test name:
com/sun/ts/tests/jaxrs/spec/provider/standardnotnull/JAXRSClient#clientJaxbProviderTest_from_standalone
Running it locally:
git clone git@github.com:tckwork/cxf.git cd cxf ./runtests 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 output.
04-28-2021 04:17:28: [JAXRSCommonClient] Test setup OK 04-28-2021 04:17:28: [Request] Dispatching request: 'GET http://localhost:8080/jaxrs_spec_provider_standardnotnull_web/resource/null' to target server at 'localhost:8080' 04-28-2021 04:17:28: ############################### 04-28-2021 04:17:29: TRACE: [WIRE] - >> GET http://localhost:8080/jaxrs_spec_provider_standardnotnull_web/resource/null 04-28-2021 04:17:29: TRACE: [WIRE] - >> Accept:application/xml 04-28-2021 04:17:29: TRACE: [WIRE] - << 204 NO_CONTENT 04-28-2021 04:17:29: TRACE: [WIRE] - << Date: Wed, 28 Apr 2021 04:17:29 GMT 04-28-2021 04:17:29: TRACE: [WIRE] - << Server: GlassFish Server Open Source Edition 5.1.0 04-28-2021 04:17:29: TRACE: [WIRE] - << X-Powered-By: Servlet/3.1 JSP/2.3 (GlassFish Server Open Source Edition 5.1.0 Java/Oracle Corporation/1.8) Apr 28, 2021 4:17:29 AM org.apache.cxf.jaxrs.provider.AbstractJAXBProvider handleExceptionStart WARNING: javax.xml.bind.UnmarshalException - with linked exception: [com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at [row,col {unknown-source}]: [1,0]] at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:470) at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:402) at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:379) 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:1444) 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:431) 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:40) 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:38) 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:2217) at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2123) at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1179) at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:149) at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:400) ... 21 moreApr 28, 2021 4:17:29 AM org.apache.cxf.jaxrs.utils.JAXRSUtils logMessageHandlerProblem SEVERE: Problem with reading the data, class javax.xml.bind.JAXBElement, ContentType: */*. 04-28-2021 04:17:29: ERROR: Test case throws exception: Problem with reading the data, class javax.xml.bind.JAXBElement, ContentType: */*. 04-28-2021 04:17:29: ERROR: Exception at: 04-28-2021 04:17:29: ERROR: javax.ws.rs.client.ResponseProcessingException: Problem with reading the data, class javax.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:431) 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:40) 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:38) Caused by: javax.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:1444) 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:2217) at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2123) at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1179) at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:149) at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:400) at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:379) at org.apache.cxf.jaxrs.provider.JAXBElementProvider.readFrom(JAXBElementProvider.java:177) ... 19 more04-28-2021 04:17:29: [JAXRSCommonClient] Test cleanup OK STATUS:Failed.Test case throws exception: Problem with reading the data, class javax.xml.bind.JAXBElement, ContentType: */*. result: Failed. Test case throws exception: Problem with reading the data, class javax.xml.bind.JAXBElement, ContentType: */*. test result: Failed. Test case throws exception: Problem with reading the data, class javax.xml.bind.JAXBElement, ContentType: */*.
See the attached javatest.log and jtr file for full test details
Attachments
Attachments
Issue Links
- links to