Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-5676

IllegalArgumentException: wrong number of arguments while invoking operation with only an implicit header parameter

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-milestone2, 2.7.10
    • Fix Version/s: 3.0, 2.6.15, 2.7.12
    • Component/s: JAX-WS Runtime
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      I have an operation with no arguments, only an implicit header with direction IN. Calling the operation fails:

      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)
      

      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!

        Attachments

        1. implicit-header-with-no-args.zip
          6 kB
          Andreas Gudian

          Issue Links

            Activity

              People

              • Assignee:
                ay Akitoshi Yoshida
                Reporter:
                agudian Andreas Gudian
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: