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

IllegalArgumentException wrong number of arguments using CXF 2.2.3 in runtime test

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.3
    • 2.2.4
    • JAX-WS Runtime
    • None
    • Eclipse Java project with Apache CXF 2.2.3 libraries

    Description

      Using "soap_header.wsdl" of 2.2.3 release sample (apache-cxf-2.2.3\samples\soap_header), i''ve generate java code using WSDLToJava tool.

      *****************************

      • * * This is my Client * * *
        *****************************

      public final class HeaderTester_SoapPort_Client {

      private static final QName SERVICE_NAME = new QName("http://apache.org/headers", "HeaderService");

      private HeaderTester_SoapPort_Client() {
      }

      public static void main(String args[]) throws Exception {
      URL wsdlURL = HeaderService.WSDL_LOCATION;
      if (args.length > 0) {
      File wsdlFile = new File(args[0]);
      try {
      if (wsdlFile.exists())

      { wsdlURL = wsdlFile.toURI().toURL(); }

      else

      { wsdlURL = new URL(args[0]); }

      } catch (MalformedURLException e)

      { e.printStackTrace(); }

      }

      HeaderService ss = new HeaderService(wsdlURL, SERVICE_NAME);
      HeaderTester port = ss.getSoapPort();

      { System.out.println("Invoking inoutHeader..."); com.test.soapHeader.jaxb20.InoutHeader _inoutHeader_me = new InoutHeader(); _inoutHeader_me.setRequestType("inoutheader request type"); com.test.soapHeader.jaxb20.SOAPHeaderData _inoutHeader_headerInfoVal = new SOAPHeaderData(); _inoutHeader_headerInfoVal.setMessage("inoutHeader headerInfoVal message"); _inoutHeader_headerInfoVal.setOriginator("inoutHeader headerInfoVal originator"); javax.xml.ws.Holder<com.test.soapHeader.jaxb20.SOAPHeaderData> _inoutHeader_headerInfo = new javax.xml.ws.Holder<com.test.soapHeader.jaxb20.SOAPHeaderData>(_inoutHeader_headerInfoVal); com.test.soapHeader.jaxb20.InoutHeaderResponse _inoutHeader__return = port.inoutHeader(_inoutHeader_me, _inoutHeader_headerInfo); System.out.println(" InoutHeader result = " + _inoutHeader__return.getResponseType()); System.out.println(" InoutHeader inoutHeader_headerInfo = " + _inoutHeader_headerInfo.value.getMessage() + " - " + _inoutHeader_headerInfo.value.getOriginator()); }

      }

      *****************************

      • * * This is my Server * * *
        *****************************

      public class HeaderTester_SoapPort_Server{

      protected HeaderTester_SoapPort_Server() throws Exception

      { System.out.println("Starting Server"); Object implementor = new HeaderTesterProvider(); // generated implementor --> Object implementor = new HeaderTesterImpl(); String address = "http://localhost:9000/headers"; Endpoint.publish(address, implementor); }

      public static void main(String args[]) throws Exception

      { new HeaderTester_SoapPort_Server(); System.out.println("Server ready..."); Thread.sleep(10 * 5 * 60 * 1000); System.out.println("Server exiting"); System.exit(0); }

      }

      As you can see i use an inmplementor different from the generated one:

      *******************************

      • * * This is my Provider * * *
        *******************************

      @WebServiceProvider(
      serviceName = "HeaderService",
      portName = "SoapPort",
      targetNamespace = "http://apache.org/headers",
      wsdlLocation = "file:/D:/data/runtime_wks_4.6_2/IAExcTest/cxfWsdl/soap_header.wsdl"
      )
      @ServiceMode(value = Mode.MESSAGE)
      @InInterceptors(interceptors =

      {"org.apache.cxf.interceptor.LoggingInInterceptor"}

      )
      @OutInterceptors(interceptors =

      {"org.apache.cxf.interceptor.LoggingOutInterceptor"}

      )

      public class HeaderTesterProvider implements Provider<SOAPMessage> {

      public SOAPMessage invoke(SOAPMessage arg0) {
      try

      { arg0.writeTo(System.out); }

      catch (SOAPException e)

      { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); }

      return null;
      }
      }

      When i run client and server main i get these exceptions:

      ***********************

      • * * Server LOG * * *
        ***********************

      Starting Server
      25-set-2009 12.18.16 org.springframework.context.support.AbstractApplicationContext prepareRefresh
      INFO: Refreshing org.apache.cxf.bus.spring.BusApplicationContext@1d95492: display name [org.apache.cxf.bus.spring.BusApplicationContext@1d95492]; startup date [Fri Sep 25 12:18:16 CEST 2009]; root of context hierarchy
      25-set-2009 12.18.17 org.apache.cxf.bus.spring.BusApplicationContext getConfigResources
      INFO: No cxf.xml configuration file detected, relying on defaults.
      25-set-2009 12.18.17 org.springframework.beans.factory.support.DefaultListableBeanFactory registerBeanDefinition
      INFO: Overriding bean definition for bean 'org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder': replacing [Generic bean: class [org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [jar:file:/D:/libraries/cxf/2.2.3/apache-cxf-2.2.3/lib/cxf-2.2.3.jar!/META-INF/cxf/cxf-extension-http.fixml]] with [Generic bean: class [org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [jar:file:/D:/libraries/cxf/2.2.3/apache-cxf-2.2.3/lib/cxf-2.2.3.jar!/META-INF/cxf/cxf-extension-http.fixml]]
      25-set-2009 12.18.17 org.springframework.beans.factory.support.DefaultListableBeanFactory registerBeanDefinition
      INFO: Overriding bean definition for bean 'org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder': replacing [Generic bean: class [org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [jar:file:/D:/libraries/cxf/2.2.3/apache-cxf-2.2.3/lib/cxf-2.2.3.jar!/META-INF/cxf/cxf-extension-http.fixml]] with [Generic bean: class [org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [jar:file:/D:/libraries/cxf/2.2.3/apache-cxf-2.2.3/lib/cxf-2.2.3.jar!/META-INF/cxf/cxf-extension-http.fixml]]
      25-set-2009 12.18.17 org.springframework.beans.factory.support.DefaultListableBeanFactory registerBeanDefinition
      INFO: Overriding bean definition for bean 'org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider': replacing [Generic bean: class [org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [jar:file:/D:/libraries/cxf/2.2.3/apache-cxf-2.2.3/lib/cxf-2.2.3.jar!/META-INF/cxf/cxf-extension-http.fixml]] with [Generic bean: class [org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [jar:file:/D:/libraries/cxf/2.2.3/apache-cxf-2.2.3/lib/cxf-2.2.3.jar!/META-INF/cxf/cxf-extension-http.fixml]]
      25-set-2009 12.18.17 org.springframework.beans.factory.support.DefaultListableBeanFactory registerBeanDefinition
      INFO: Overriding bean definition for bean 'org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory': replacing [Generic bean: class [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory]; scope=singleton; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [jar:file:/D:/libraries/cxf/2.2.3/apache-cxf-2.2.3/lib/cxf-2.2.3.jar!/META-INF/cxf/cxf-extension-http.fixml]] with [Generic bean: class [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory]; scope=singleton; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [jar:file:/D:/libraries/cxf/2.2.3/apache-cxf-2.2.3/lib/cxf-2.2.3.jar!/META-INF/cxf/cxf-extension-http.fixml]]
      25-set-2009 12.18.17 org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
      INFO: Bean factory for application context [org.apache.cxf.bus.spring.BusApplicationContext@1d95492]: org.springframework.beans.factory.support.DefaultListableBeanFactory@366573
      25-set-2009 12.18.17 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
      INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@366573: defining beans cxf,org.apache.cxf.bus.spring.BusApplicationListener,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.binding.corba.CorbaBindingFactory,org.apache.cxf.binding.corba.wsdl.WSDLExtensionRegister#0,org.apache.cxf.jaxws.context.WebServiceContextResourceResolver,org.apache.cxf.jaxws.context.WebServiceContextImpl,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.binding.xml.XMLBindingFactory,org.apache.cxf.ws.addressing.policy.AddressingAssertionBuilder,org.apache.cxf.ws.addressing.policy.AddressingPolicyInterceptorProvider,org.apache.cxf.ws.addressing.policy.UsingAddressingAssertionBuilder,org.apache.cxf.javascript.JavascriptQueryHandlerRegistry,org.apache.cxf.transport.local.LocalTransportFactory,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder,org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider,org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory,org.apache.cxf.management.InstrumentationManager,org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory,org.apache.cxf.transport.jms.JMSTransportFactory,org.apache.cxf.binding.object.ObjectBindingFactory,org.apache.cxf.binding.http.HttpBindingFactory,org.apache.cxf.jaxrs.JAXRSBindingFactory,org.apache.cxf.ws.security.policy.WSSecurityPolicyLoader,org.apache.cxf.ws.policy.AssertionBuilderRegistry,org.apache.cxf.ws.policy.PolicyInterceptorProviderRegistry,org.apache.cxf.ws.policy.attachment.external.DomainExpressionBuilderRegistry,org.apache.cxf.ws.policy.attachment.external.EndpointReferenceDomainExpressionBuilder,org.apache.cxf.ws.policy.PolicyBuilder,org.apache.cxf.ws.policy.PolicyEngine,org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider,org.apache.cxf.ws.policy.attachment.ServiceModelPolicyProvider,org.apache.cxf.ws.policy.mtom.MTOMAssertionBuilder,org.apache.cxf.ws.policy.mtom.MTOMPolicyInterceptorProvider,org.apache.cxf.ws.rm.RMManager,org.apache.cxf.ws.rm.policy.RMPolicyInterceptorProvider,org.apache.cxf.ws.rm.RMAssertionBuilder; root of factory hierarchy
      25-set-2009 12.18.19 org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromWSDL
      INFO: Creating Service

      {http://apache.org/headers}

      HeaderService from WSDL: file:/D:/data/runtime_wks_4.6_2/IAExcTest/cxfWsdl/soap_header.wsdl
      25-set-2009 12.18.19 org.apache.cxf.endpoint.ServerImpl initDestination
      INFO: Setting the server's publish address to be http://localhost:9000/headers
      25-set-2009 12.18.19 org.mortbay.log.Slf4jLog info
      INFO: Logging to org.slf4j.impl.JDK14LoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog
      25-set-2009 12.18.20 org.mortbay.log.Slf4jLog info
      INFO: jetty-6.1.19
      25-set-2009 12.18.20 org.mortbay.log.Slf4jLog info
      INFO: Started SelectChannelConnector@0.0.0.0:9000
      Server ready...
      25-set-2009 12.18.29 org.apache.cxf.interceptor.LoggingInInterceptor logging
      INFO: Inbound Message
      ----------------------------
      ID: 1
      Address: /headers
      Encoding: UTF-8
      Content-Type: text/xml; charset=UTF-8
      Headers:

      {Content-Length=[452], Host=[localhost:9000], User-Agent=[Apache CXF 2.2.3], connection=[keep-alive], SOAPAction=[""], Pragma=[no-cache], Content-Type=[text/xml; charset=UTF-8], content-type=[text/xml; charset=UTF-8], Cache-Control=[no-cache], Accept=[*/*]}

      Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ns2:SOAPHeaderInfo xmlns:ns2="http://apache.org/headers"><originator>inoutHeader headerInfoVal originator</originator><message>inoutHeader headerInfoVal message</message></ns2:SOAPHeaderInfo></soap:Header><soap:Body><ns2:inoutHeader xmlns:ns2="http://apache.org/headers"><requestType>inoutheader request type</requestType></ns2:inoutHeader></soap:Body></soap:Envelope>
      --------------------------------------
      25-set-2009 12.18.30 org.apache.cxf.phase.PhaseInterceptorChain doIntercept
      AVVERTENZA: Application has thrown exception, unwinding now
      org.apache.cxf.interceptor.Fault: wrong number of arguments while invoking public abstract java.lang.Object javax.xml.ws.Provider.invoke(java.lang.Object) with params [com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl@1b0620c, javax.xml.transform.dom.DOMSource@f507d2].
      at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:152)
      at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.createFault(AbstractJAXWSMethodInvoker.java:83)
      at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:126)
      at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:55)
      at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:68)
      at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
      at java.util.concurrent.FutureTask.run(FutureTask.java:123)
      at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
      at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:98)
      at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
      at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:104)
      at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:302)
      at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:266)
      at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)
      at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
      at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
      at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      at org.mortbay.jetty.Server.handle(Server.java:326)
      at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
      at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879)
      at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747)
      at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
      at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
      at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
      at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
      Caused by: java.lang.IllegalArgumentException: wrong number of arguments
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:166)
      at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:82)
      ... 24 more

      **********************

      • * * Client LOG * * *
        **********************

      25-set-2009 12.18.25 org.springframework.context.support.AbstractApplicationContext prepareRefresh
      INFO: Refreshing org.apache.cxf.bus.spring.BusApplicationContext@18f1d7e: display name [org.apache.cxf.bus.spring.BusApplicationContext@18f1d7e]; startup date [Fri Sep 25 12:18:25 CEST 2009]; root of context hierarchy
      25-set-2009 12.18.26 org.apache.cxf.bus.spring.BusApplicationContext getConfigResources
      INFO: No cxf.xml configuration file detected, relying on defaults.
      25-set-2009 12.18.26 org.springframework.beans.factory.support.DefaultListableBeanFactory registerBeanDefinition
      INFO: Overriding bean definition for bean 'org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder': replacing [Generic bean: class [org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [jar:file:/D:/libraries/cxf/2.2.3/apache-cxf-2.2.3/lib/cxf-2.2.3.jar!/META-INF/cxf/cxf-extension-http.fixml]] with [Generic bean: class [org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [jar:file:/D:/libraries/cxf/2.2.3/apache-cxf-2.2.3/lib/cxf-2.2.3.jar!/META-INF/cxf/cxf-extension-http.fixml]]
      25-set-2009 12.18.26 org.springframework.beans.factory.support.DefaultListableBeanFactory registerBeanDefinition
      INFO: Overriding bean definition for bean 'org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder': replacing [Generic bean: class [org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [jar:file:/D:/libraries/cxf/2.2.3/apache-cxf-2.2.3/lib/cxf-2.2.3.jar!/META-INF/cxf/cxf-extension-http.fixml]] with [Generic bean: class [org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [jar:file:/D:/libraries/cxf/2.2.3/apache-cxf-2.2.3/lib/cxf-2.2.3.jar!/META-INF/cxf/cxf-extension-http.fixml]]
      25-set-2009 12.18.26 org.springframework.beans.factory.support.DefaultListableBeanFactory registerBeanDefinition
      INFO: Overriding bean definition for bean 'org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider': replacing [Generic bean: class [org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [jar:file:/D:/libraries/cxf/2.2.3/apache-cxf-2.2.3/lib/cxf-2.2.3.jar!/META-INF/cxf/cxf-extension-http.fixml]] with [Generic bean: class [org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [jar:file:/D:/libraries/cxf/2.2.3/apache-cxf-2.2.3/lib/cxf-2.2.3.jar!/META-INF/cxf/cxf-extension-http.fixml]]
      25-set-2009 12.18.26 org.springframework.beans.factory.support.DefaultListableBeanFactory registerBeanDefinition
      INFO: Overriding bean definition for bean 'org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory': replacing [Generic bean: class [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory]; scope=singleton; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [jar:file:/D:/libraries/cxf/2.2.3/apache-cxf-2.2.3/lib/cxf-2.2.3.jar!/META-INF/cxf/cxf-extension-http.fixml]] with [Generic bean: class [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory]; scope=singleton; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [jar:file:/D:/libraries/cxf/2.2.3/apache-cxf-2.2.3/lib/cxf-2.2.3.jar!/META-INF/cxf/cxf-extension-http.fixml]]
      25-set-2009 12.18.26 org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
      INFO: Bean factory for application context [org.apache.cxf.bus.spring.BusApplicationContext@18f1d7e]: org.springframework.beans.factory.support.DefaultListableBeanFactory@4cd580
      25-set-2009 12.18.26 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
      INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@4cd580: defining beans cxf,org.apache.cxf.bus.spring.BusApplicationListener,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.binding.corba.CorbaBindingFactory,org.apache.cxf.binding.corba.wsdl.WSDLExtensionRegister#0,org.apache.cxf.jaxws.context.WebServiceContextResourceResolver,org.apache.cxf.jaxws.context.WebServiceContextImpl,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.binding.xml.XMLBindingFactory,org.apache.cxf.ws.addressing.policy.AddressingAssertionBuilder,org.apache.cxf.ws.addressing.policy.AddressingPolicyInterceptorProvider,org.apache.cxf.ws.addressing.policy.UsingAddressingAssertionBuilder,org.apache.cxf.javascript.JavascriptQueryHandlerRegistry,org.apache.cxf.transport.local.LocalTransportFactory,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder,org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider,org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory,org.apache.cxf.management.InstrumentationManager,org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory,org.apache.cxf.transport.jms.JMSTransportFactory,org.apache.cxf.binding.object.ObjectBindingFactory,org.apache.cxf.binding.http.HttpBindingFactory,org.apache.cxf.jaxrs.JAXRSBindingFactory,org.apache.cxf.ws.security.policy.WSSecurityPolicyLoader,org.apache.cxf.ws.policy.AssertionBuilderRegistry,org.apache.cxf.ws.policy.PolicyInterceptorProviderRegistry,org.apache.cxf.ws.policy.attachment.external.DomainExpressionBuilderRegistry,org.apache.cxf.ws.policy.attachment.external.EndpointReferenceDomainExpressionBuilder,org.apache.cxf.ws.policy.PolicyBuilder,org.apache.cxf.ws.policy.PolicyEngine,org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider,org.apache.cxf.ws.policy.attachment.ServiceModelPolicyProvider,org.apache.cxf.ws.policy.mtom.MTOMAssertionBuilder,org.apache.cxf.ws.policy.mtom.MTOMPolicyInterceptorProvider,org.apache.cxf.ws.rm.RMManager,org.apache.cxf.ws.rm.policy.RMPolicyInterceptorProvider,org.apache.cxf.ws.rm.RMAssertionBuilder; root of factory hierarchy
      25-set-2009 12.18.28 org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromWSDL
      INFO: Creating Service

      {http://apache.org/headers}

      HeaderService from WSDL: file:/D:/data/runtime_wks_4.6_2/IAExcTest/cxfWsdl/soap_header.wsdl
      Invoking inoutHeader...
      Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: wrong number of arguments while invoking public abstract java.lang.Object javax.xml.ws.Provider.invoke(java.lang.Object) with params [com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl@1b0620c, javax.xml.transform.dom.DOMSource@f507d2].
      at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:143)
      at $Proxy39.inoutHeader(Unknown Source)
      at com.test.soapHeader.jaxb20.HeaderTester_SoapPort_Client.main(HeaderTester_SoapPort_Client.java:66)
      Caused by: org.apache.cxf.binding.soap.SoapFault: wrong number of arguments while invoking public abstract java.lang.Object javax.xml.ws.Provider.invoke(java.lang.Object) with params [com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl@1b0620c, javax.xml.transform.dom.DOMSource@f507d2].
      at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.unmarshalFault(Soap11FaultInInterceptor.java:75)
      at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:46)
      at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:35)
      at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
      at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:96)
      at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:69)
      at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:34)
      at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
      at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:658)
      at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2139)
      at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2022)
      at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1947)
      at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
      at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:632)
      at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
      at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
      at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:472)
      at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:302)
      at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:254)
      at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
      at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:123)
      ... 2 more

      I'm sure that this example works using CXF 2.2.1 libraries, maybe some missing libraries???
      Thanks,

      Stefano

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            stefgasp Stefano Gaspari
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: