cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jervis Liu (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CXF-578) Exception occured when run the sample restful_dispatch client
Date Mon, 23 Apr 2007 07:03:15 GMT

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

Jervis Liu resolved CXF-578.
----------------------------

    Resolution: Fixed

It appears to me that JAX-WS Dispatch is not appropriate for HTTP GET, the demo is fixed by
not calling Dispatch for HTTP GET.

> Exception occured when run the sample restful_dispatch client
> -------------------------------------------------------------
>
>                 Key: CXF-578
>                 URL: https://issues.apache.org/jira/browse/CXF-578
>             Project: CXF
>          Issue Type: Sub-task
>            Reporter: jimma
>         Assigned To: Jervis Liu
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message