cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Jones (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-327) "wrong number of arguments" exception if change hello_world samples wsdl
Date Fri, 22 Dec 2006 15:50:27 GMT
    [ http://issues.apache.org/jira/browse/CXF-327?page=comments#action_12460523 ] 
            
Peter Jones commented on CXF-327:
---------------------------------

Changing the name of the greetMe element changes the greetMe operation to bare doc literal
style.  The sayHi operation is still a wrapped doc literal operation.  It seems this problem
may be caused by mixing the two styles in one interface.  Looks like sayHi gets invoked with
a list of arguments containing a single null value (instead of an empty argument list) which
causes the wrong number of arguments exception.

> "wrong number of arguments" exception if change hello_world samples wsdl
> ------------------------------------------------------------------------
>
>                 Key: CXF-327
>                 URL: http://issues.apache.org/jira/browse/CXF-327
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>            Reporter: Jervis Liu
>         Assigned To: Jervis Liu
>
> Change the hello_world sample's wsdl's greetMe element to following caused a  "wrong
number of arguments" exception
>             <element name="greetMe1">
>                 <complexType>
>                     <sequence>
>                         <element name="requestType" type="tns:MyStringType"/>
>                     </sequence>
>                 </complexType>
>             </element>
>     [java] Invoking sayHi...
>      [java] Exception in thread "main" org.apache.cxf.binding.soap.SoapFault: wr
> ong number of arguments
>      [java]     at org.apache.cxf.binding.soap.interceptor.Soap11FaultInIntercep
> tor.handleMessage(Soap11FaultInInterceptor.java:70)
>      [java]     at org.apache.cxf.binding.soap.interceptor.Soap11FaultInIntercep
> tor.handleMessage(Soap11FaultInInterceptor.java:36)
>      [java]     at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseI
> nterceptorChain.java:147)
>      [java]     at org.apache.cxf.interceptor.AbstractFaultChainIntiatorObserver
> .onMessage(AbstractFaultChainIntiatorObserver.java:64)
>      [java]     at org.apache.cxf.binding.soap.interceptor.ReadHeadersIntercepto
> r.handleMessage(ReadHeadersInterceptor.java:106)
>      [java]     at org.apache.cxf.binding.soap.interceptor.ReadHeadersIntercepto
> r.handleMessage(ReadHeadersInterceptor.java:45)
>      [java]     at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseI
> nterceptorChain.java:147)
>      [java]     at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:
> 253)
>      [java]     at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream
> .handleResponse(HTTPConduit.java:494)
>      [java]     at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream
> .doClose(HTTPConduit.java:454)
>      [java]     at org.apache.cxf.io.AbstractCachedOutputStream.close(AbstractCa
> chedOutputStream.java:113)
>      [java]     at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.j
> ava:255)
>      [java]     at org.apache.cxf.interceptor.MessageSenderInterceptor.handleMes
> sage(MessageSenderInterceptor.java:58)
>      [java]     at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseI
> nterceptorChain.java:147)
>      [java]     at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:130
> )
>      [java]     at org.apache.cxf.jaxws.EndpointInvocationHandler.invokeSync(End
> pointInvocationHandler.java:129)
>      [java]     at org.apache.cxf.jaxws.EndpointInvocationHandler.invoke(Endpoin
> tInvocationHandler.java:115)
>      [java]     at $Proxy39.sayHi(Unknown Source)
>      [java]     at demo.hw.client.Client.main(Client.java:63)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message