[jboss-user] [JBoss Web Services] - Upgrading from AS 5.1 to AS 6 WS error

Chris Laprun do-not-reply at jboss.com
Fri Apr 29 09:46:04 EDT 2011


Chris Laprun [http://community.jboss.org/people/claprun] created the discussion

"Upgrading from AS 5.1 to AS 6 WS error"

To view the discussion, visit: http://community.jboss.org/message/602718#602718

--------------------------------------------------------------
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?
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/602718#602718]

Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110429/7e0a07a4/attachment.html 


More information about the jboss-user mailing list