Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-571 CXF-2.0 RC Kit testing
  3. CXF-578

Exception occured when run the sample restful_dispatch client

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0-RC
    • None
    • None

    Description

      Buildfile: build.xml

      maybe.generate.code:

      compile:

      build:

      client
      :
      [java] Invoking server through HTTP GET to query all customer info
      [java] **** Response ******
      [java] <Customers>
      [java] <Customer href="http://localhost/customerservice/customer?id=1234">
      [java] <id>1234</id>
      [java] </Customer>
      [java] <Customer href="http://localhost/customerservice/customer?id=1235">
      [java] <id>1235</id>
      [java] </Customer>
      [java] <Customer href="http://localhost/customerservice/customer?id=1236">
      [java] <id>1236</id>
      [java] </Customer>
      [java] </Customers>

      [java] Invoking server through HTTP GET to query customer info
      [java] **** Response ******
      [java] <Customer>
      [java] <name>John</name>
      [java] <id>123456</id>
      [java] </Customer>

      [java] Invoking through HTTP GET to query customer using JAX-WS Dispatch
      [java] Exception in thread "main" javax.xml.ws.WebServiceException: org.apache.cxf.interceptor.Fault: Null object p
      assed into Dispatch marshalling
      [java] at org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:147)
      [java] at org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:102)
      [java] at demo.restful.client.Client.main(Client.java:89)
      [java] Caused by: org.apache.cxf.interceptor.Fault: Null object passed into Dispatch marshalling
      [java] at org.apache.cxf.jaxws.interceptors.DispatchOutInterceptor.handleMessage(DispatchOutInterceptor.java:67
      )
      [java] at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:148)
      [java] at org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:142)
      [java] ... 2 more
      [java] Java Result: 1

      Attachments

        Activity

          People

            jliu Jervis Liu
            ema Jim Ma
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: