You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Andriy Redko (Jira)" <ji...@apache.org> on 2021/04/18 13:28:00 UTC

[jira] [Resolved] (CXF-8511) jaxrs.spec.client.typedentities clientJaxbElementReaderTest

     [ https://issues.apache.org/jira/browse/CXF-8511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andriy Redko resolved CXF-8511.
-------------------------------
      Assignee: Andriy Redko
    Resolution: Fixed

https://github.com/apache/cxf/commit/7b820e3f193dc6fd0d73272c646d9b9aae2a1377

> jaxrs.spec.client.typedentities clientJaxbElementReaderTest 
> ------------------------------------------------------------
>
>                 Key: CXF-8511
>                 URL: https://issues.apache.org/jira/browse/CXF-8511
>             Project: CXF
>          Issue Type: Sub-task
>    Affects Versions: 3.4.3
>            Reporter: David Blevins
>            Assignee: Andriy Redko
>            Priority: Major
>         Attachments: JAXRSClient_clientJaxbElementReaderTest_from_standalone.jtr, javatest.log, test.txt
>
>
> Full test name:
> {code}
> com/sun/ts/tests/jaxrs/spec/client/typedentities/JAXRSClient#clientJaxbElementReaderTest_from_standalone
> {code}
> Running it locally:
> {code}
> git clone git@github.com:tckwork/cxf.git
> cd cxf
> ./runtests com/sun/ts/tests/jaxrs/spec/client/typedentities/JAXRSClient#clientJaxbElementReaderTest_from_standalone
> {code}
> At the time this issue was filed, the test failed with the following output.
> {code}
> [javatest.batch] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [javatest.batch] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> [javatest.batch] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> [javatest.batch] 	at java.lang.reflect.Method.invoke(Method.java:498)
> [javatest.batch] 	at com.sun.ts.lib.harness.EETest.run(EETest.java:596)
> [javatest.batch] 	at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:115)
> [javatest.batch] 	at com.sun.ts.tests.common.vehicle.EmptyVehicleRunner.run(EmptyVehicleRunner.java:40)
> [javatest.batch] 	at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:105)
> [javatest.batch] 	at com.sun.ts.lib.harness.EETest.getPropsReady(EETest.java:486)
> [javatest.batch] 	at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:209)
> [javatest.batch] 	at com.sun.ts.lib.harness.EETest.run(EETest.java:285)
> [javatest.batch] 	at com.sun.ts.tests.common.vehicle.VehicleClient.main(VehicleClient.java:38)
> [javatest.batch] Caused by: javax.ws.rs.BadRequestException: HTTP 400 Bad Request
> [javatest.batch] 	at org.apache.cxf.jaxrs.utils.SpecExceptions.toBadRequestException(SpecExceptions.java:84)
> [javatest.batch] 	at org.apache.cxf.jaxrs.utils.ExceptionUtils.toBadRequestException(ExceptionUtils.java:120)
> [javatest.batch] 	at org.apache.cxf.jaxrs.provider.JAXBElementProvider.readFrom(JAXBElementProvider.java:202)
> [javatest.batch] 	at org.apache.cxf.jaxrs.provider.JAXBElementTypedProvider.readFrom(JAXBElementTypedProvider.java:41)
> [javatest.batch] 	at org.apache.cxf.jaxrs.provider.JAXBElementTypedProvider.readFrom(JAXBElementTypedProvider.java:34)
> [javatest.batch] 	at org.apache.cxf.jaxrs.utils.JAXRSUtils.readFromMessageBodyReader(JAXRSUtils.java:1435)
> [javatest.batch] 	at org.apache.cxf.jaxrs.impl.ResponseImpl.doReadEntity(ResponseImpl.java:472)
> [javatest.batch] 	... 15 more
> [javatest.batch] Caused by: java.lang.RuntimeException: Failed to create XMLInputFactory.
> [javatest.batch] 	at org.apache.cxf.staxutils.StaxUtils.createXMLInputFactory(StaxUtils.java:319)
> [javatest.batch] 	at org.apache.cxf.staxutils.StaxUtils.getXMLInputFactory(StaxUtils.java:266)
> [javatest.batch] 	at org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:1727)
> [javatest.batch] 	at org.apache.cxf.staxutils.transform.TransformUtils.createNewReaderIfNeeded(TransformUtils.java:42)
> [javatest.batch] 	at org.apache.cxf.jaxrs.provider.JAXBElementProvider.readFrom(JAXBElementProvider.java:173)
> [javatest.batch] 	... 19 more
> [javatest.batch] 
> [javatest.batch] 04-15-2021 21:55:58:  [JAXRSCommonClient] Test cleanup OK
> [javatest.batch] STATUS:Failed.Test case throws exception: Problem with reading the data, class javax.xml.bind.JAXBElement, ContentType: text/xml.
> [javatest.batch] Apr 15, 2021 9:56:00 PM Finished executing all tests, wait for cleanup...
> [javatest.batch] Apr 15, 2021 9:56:00 PM Harness done with cleanup from test run.
> [javatest.batch] Failed. Test case throws exception: Problem with reading the data, class javax.xml.bind.JAXBElement, ContentType: text/xml.
> [javatest.batch] ********************************************************************************
> [javatest.batch] Finished Test:  FAILED........com/sun/ts/tests/jaxrs/spec/client/typedentities/JAXRSClient.java#clientJaxbElementReaderTest_from_standalone
> {code}
> See the attached javatest.log and jtr file for full test details



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