You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Andreas Gudian (JIRA)" <ji...@apache.org> on 2014/04/07 09:42:14 UTC

[jira] [Updated] (CXF-5676) IllegalArgumentException: wrong number of arguments while invoking operation with only an implicit header parameter

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

Andreas Gudian updated CXF-5676:
--------------------------------

    Attachment: implicit-header-with-no-args.zip

Just unpack and run with {{mvn test}} - one of the three tests fails due to this issue, the other two tests demonstrate cases were it works.

> IllegalArgumentException: wrong number of arguments while invoking operation with only an implicit header parameter
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-5676
>                 URL: https://issues.apache.org/jira/browse/CXF-5676
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 3.0.0-milestone2, 2.7.10
>            Reporter: Andreas Gudian
>         Attachments: implicit-header-with-no-args.zip
>
>
> I have an operation with no arguments, only an implicit header with direction {{IN}}. Calling the operation fails:
> {code}
> javax.xml.ws.soap.SOAPFaultException: wrong number of arguments while invoking public java.util.List sample.ImplicitHeaderWithExtSoapHeaderINSampleTest$ImplicitHeaderSampleImplementation.operationWithNoArgs(com.sample.audit.Audit) with params [com.sample.audit.Audit@c19fbf, com.sample.audit.Audit@c19fbf].
> 	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:159)
> {code}
> It works for operations with non-empty parameters and when the implicit header has direction INOUT.
> I'll attach a sample that demonstrates the issue.
> Thanks!



--
This message was sent by Atlassian JIRA
(v6.2#6252)