Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7996 Jakarta EE TCKs and compatibility
  3. CXF-8515

jaxrs.spec.context.client clientWriterTest

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.4.3
    • 3.5.0, 3.3.12, 3.4.5
    • None
    • None
    • Unknown

    Description

      Full test name:

      com/sun/ts/tests/jaxrs/spec/context/client/JAXRSClient#clientWriterTest_from_standalone
      

      Running it locally:

      git clone git@github.com:tckwork/cxf.git
      cd cxf
      ./runtests com/sun/ts/tests/jaxrs/spec/context/client/JAXRSClient#clientWriterTest_from_standalone
      

      At the time this issue was filed, the test failed with the following output.

      [javatest.batch] 	at org.apache.cxf.jaxrs.client.WebClient.doResponse(WebClient.java:1150)
      [javatest.batch] 	at org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:1087)
      [javatest.batch] 	at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:932)
      [javatest.batch] 	at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:901)
      [javatest.batch] 	at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:461)
      [javatest.batch] 	at org.apache.cxf.jaxrs.client.SyncInvokerImpl.method(SyncInvokerImpl.java:150)
      [javatest.batch] 	at org.apache.cxf.jaxrs.client.SyncInvokerImpl.method(SyncInvokerImpl.java:145)
      [javatest.batch] 	at org.apache.cxf.jaxrs.client.spec.InvocationBuilderImpl.method(InvocationBuilderImpl.java:123)
      [javatest.batch] 	at org.apache.cxf.jaxrs.client.spec.InvocationBuilderImpl$InvocationImpl.invoke(InvocationBuilderImpl.java:351)
      [javatest.batch] 	at com.sun.ts.tests.jaxrs.common.client.JaxrsWebTestCase.invoke(JaxrsWebTestCase.java:350)
      [javatest.batch] 	at com.sun.ts.tests.jaxrs.common.client.JaxrsWebTestCase.execute(JaxrsWebTestCase.java:201)
      [javatest.batch] 	... 14 more
      [javatest.batch] Caused by: java.lang.NullPointerException
      [javatest.batch] 	at org.apache.cxf.jaxrs.impl.ResourceContextImpl.<init>(ResourceContextImpl.java:38)
      [javatest.batch] 	at org.apache.cxf.jaxrs.utils.JAXRSUtils.createContextValue(JAXRSUtils.java:1178)
      [javatest.batch] 	at org.apache.cxf.jaxrs.utils.InjectionUtils.injectContextFields(InjectionUtils.java:1304)
      [javatest.batch] 	at org.apache.cxf.jaxrs.utils.InjectionUtils.injectContexts(InjectionUtils.java:1262)
      [javatest.batch] 	at org.apache.cxf.jaxrs.provider.ProviderFactory.injectContextValues(ProviderFactory.java:690)
      [javatest.batch] 	at org.apache.cxf.jaxrs.provider.ProviderFactory.isWriteable(ProviderFactory.java:827)
      [javatest.batch] 	at org.apache.cxf.jaxrs.provider.ProviderFactory.createMessageBodyWriter(ProviderFactory.java:579)
      [javatest.batch] 	at org.apache.cxf.jaxrs.provider.ProviderFactory.createMessageBodyWriterInterceptor(ProviderFactory.java:464)
      [javatest.batch] 	at org.apache.cxf.jaxrs.client.AbstractClient.writeBody(AbstractClient.java:512)
      [javatest.batch] 	at org.apache.cxf.jaxrs.client.WebClient$BodyWriter.doWriteBody(WebClient.java:1223)
      [javatest.batch] 	at org.apache.cxf.jaxrs.client.AbstractClient$AbstractBodyWriter.handleMessage(AbstractClient.java:1214)
      [javatest.batch] 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
      [javatest.batch] 	at org.apache.cxf.jaxrs.client.AbstractClient.doRunInterceptorChain(AbstractClient.java:703)
      [javatest.batch] 	at org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:1086)
      [javatest.batch] 	... 23 more
      [javatest.batch] 
      [javatest.batch] 04-15-2021 21:58:44:  [JAXRSCommonClient] Test cleanup OK
      [javatest.batch] STATUS:Failed.Test case throws exception: [JAXRSCommonClient] null failed! Check output for cause of failure.
      [javatest.batch] Apr 15, 2021 9:58:45 PM Finished executing all tests, wait for cleanup...
      [javatest.batch] Apr 15, 2021 9:58:45 PM Harness done with cleanup from test run.
      [javatest.batch] Failed. Test case throws exception: [JAXRSCommonClient] null failed! Check output for cause of failure.
      [javatest.batch] ********************************************************************************
      [javatest.batch] Finished Test:  FAILED........com/sun/ts/tests/jaxrs/spec/context/client/JAXRSClient.java#clientWriterTest_from_standalone
      

      See the attached javatest.log and jtr file for full test details

      Attachments

        1. test.txt
          0.1 kB
          David Blevins
        2. JAXRSClient_clientWriterTest_from_standalone.jtr
          21 kB
          David Blevins
        3. javatest.log
          22 kB
          David Blevins

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: