1 Reply Latest reply on May 24, 2011 8:57 AM by claprun

    Upgrading from AS 5.1 to AS 6 WS error

    claprun

      My web service that was properly working on AS 5.1 is now broken on AS 6 with seemingly a problem matching generated stub methods and WSDL definition. I get the following error and based on some googling, it would seem that re-generating the stubs using CXF instead of JBoss WS would solve the issue. I would like to avoid re-generating the stubs if at all possible so I'm wondering if I might be missing something.

       

      I first get a warning:

      14:47:29,105 WARN  [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] Could not unwrap Operation {urn:oasis:names:tc:wsrp:v2:intf}register to match method "public abstract void org.oasis.wsrp.v2.WSRPV2RegistrationPortType.register(org.oasis.wsrp.v2.RegistrationData,org.oasis.wsrp.v2.Lifetime,org.oasis.wsrp.v2.UserContext,javax.xml.ws.Holder,javax.xml.ws.Holder,javax.xml.ws.Holder,javax.xml.ws.Holder) throws org.oasis.wsrp.v2.MissingParameters,org.oasis.wsrp.v2.OperationFailed,org.oasis.wsrp.v2.OperationNotSupported"

       

      then an error:

      14:47:29,175 ERROR [org.jboss.wsf.common.invocation.InvocationHandlerJAXWS] Method invocation failed with exception: wrong number of arguments: java.lang.IllegalArgumentException: wrong number of arguments

      [...]

       

      14:47:29,189 WARN  [org.apache.cxf.phase.PhaseInterceptorChain] Application {urn:oasis:names:tc:wsrp:v2:wsdl}WSRPService#{urn:oasis:names:tc:wsrp:v2:intf}register has thrown exception, unwinding now: org.apache.cxf.interceptor.Fault: wrong number of arguments

      [...]

       

      Caused by: java.lang.IllegalArgumentException: wrong number of arguments

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_24]

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_24]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_24]

                at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_24]

                at org.jboss.wsf.common.invocation.AbstractInvocationHandlerJSE.invoke(AbstractInvocationHandlerJSE.java:102) [:1.4.1.GA]

                at org.jboss.wsf.stack.cxf.AbstractInvoker._invokeInternal(AbstractInvoker.java:164) [:3.4.1.GA]

       

      What gives?