cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: org.apache.cxf.interceptor.Fault: null while invoking XXX with params [null].
Date Fri, 14 Aug 2009 20:29:03 GMT

Well, the question is whether that really is the correct parameter or not.   
Aka: should it jsut be:
<mid>46596097</mid>

My suggestion would be to turn on schema validation  (see the FAQ 
http://cxf.apache.org/faq.html) and see what error it spits out.

Dan



On Thu August 13 2009 5:27:21 am 郑东哲 wrote:
> hi everybody!
>
> when i write a webservice method occur following error,who can help me?
> it really has the parameter  <ns1:mid>46596097</ns1:mid> in the SOAP
> request!
>
> 信息: Inbound Message
> ----------------------------
> ID: 1
> Address: /tsdclient/service/msg
> Encoding: UTF-8
> Content-Type: text/xml; charset=UTF-8
> Headers: {cache-control=[no-cache], content-type=[text/xml; charset=UTF-8],
> connection=[keep-alive], host=[localhost:8080], content-length=[259],
> SOAPAction=[""], user-agent=[Apache CXF 2.2.2], Content-Type=[text/xml;
> charset=UTF-8], Accept=[*/*], pragma=[no-cache]} Payload: <soap:Envelope
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns1:getM
>essage
> xmlns:ns1="http://msgservice.service.pltfacade.clientside.clientsupport.tsd
>.neusoft.com/"><ns1:mid>46596097</ns1:mid></ns1:getMessage></soap:Body></soa
>p:Envelope> --------------------------------------
> 2009-8-13 17:16:39 org.apache.cxf.phase.PhaseInterceptorChain doIntercept
> 信息: Application has thrown exception, unwinding now
> org.apache.cxf.interceptor.Fault: null while invoking public
> com.neusoft.tsd.clientsupport.clientside.model.Message
> com.neusoft.tsd.clientsupport.clientside.pltfacade.service.msgservice.impl.
>MessageServiceImpl.getMessage(long) with params [null]. at
> org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.
>java:152) at
> org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.createFault(AbstractJAXWSMe
>thodInvoker.java:83) at
> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:
>126) at
> org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:55)
> at
> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:
>68) at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerIn
>terceptor.java:57) at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at
> java.util.concurrent.FutureTask.run(FutureTask.java:138)
> 	at
> org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.ja
>va:37) at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceI
>nvokerInterceptor.java:95) at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChai
>n.java:236) at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationO
>bserver.java:89) at
> org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestinati
>on.java:99) at
> org.apache.cxf.transport.servlet.ServletController.invokeDestination(Servle
>tController.java:368) at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController
>.java:183) at
> org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServl
>et.java:163) at
> org.apache.cxf.transport.servlet.AbstractCXFServlet.doPost(AbstractCXFServl
>et.java:141) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
>nFilterChain.java:290) at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
>hain.java:206) at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
>ava:233) at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j
>ava:191) at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:12
>8) at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:10
>2) at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav
>a:109) at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Htt
>p11Protocol.java:583) at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at
> java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.IllegalArgumentException
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
>9) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
>l.java:25) at java.lang.reflect.Method.invoke(Method.java:597)
> 	at
> org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractIn
>voker.java:166) at
> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:
>82) ... 29 more
> 2009-8-13 17:16:39
> org.apache.cxf.interceptor.LoggingOutInterceptor$LoggingCallback onClose
> 信息: Outbound Message
> ---------------------------
> ID: 1
> Encoding: UTF-8
> Content-Type: text/xml
> Headers: {}
> Payload: <soap:Envelope
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fau
>lt><faultcode>soap:Server</faultcode><faultstring>null while invoking
public
> com.neusoft.tsd.clientsupport.clientside.model.Message
> com.neusoft.tsd.clientsupport.clientside.pltfacade.service.msgservice.impl.
>MessageServiceImpl.getMessage(long) with params
> [null].</faultstring></soap:Fault></soap:Body></soap:Envelope>
> --------------------------------------
>
> --------------
> Leoanrd
> 2009-08-13
> ---------------------------------------------------------------------------
>------------------------ Confidentiality Notice: The information contained
> in this e-mail and any accompanying attachment(s) is intended only for the
> use of the intended recipient and may be confidential and/or privileged of
> Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader
> of this communication is not the intended recipient, unauthorized use,
> forwarding, printing,  storing, disclosure or copying is strictly
> prohibited, and may be unlawful.If you have received this communication in
> error,please immediately notify the sender by return e-mail, and delete the
> original message and all copies from your system. Thank you.
> ---------------------------------------------------------------------------
>------------------------

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog

Mime
View raw message