|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
CXF outbound endpoint & MULE_ERROR-84Hi,
I have problem with CXF outbound endpoint that calls .NET web service - error is MULE_ERROR-84. This is mule config for testing: <mule xmlns="http://www.mulesource.org/schema/mule/core/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:spring="http://www.springframework.org/schema/beans" xmlns:cxf="http://www.mulesource.org/schema/mule/cxf/2.0" xmlns:stdio="http://www.mulesource.org/schema/mule/stdio/2.0" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://www.mulesource.org/schema/mule/core/2.0 http://www.mulesource.org/schema/mule/core/2.0/mule.xsd http://www.mulesource.org/schema/mule/cxf/2.0 http://www.mulesource.org/schema/mule/cxf/2.0/mule-cxf.xsd http://www.mulesource.org/schema/mule/stdio/2.0 http://www.mulesource.org/schema/mule/stdio/2.0/mule-stdio.xsd"> <model name="CxfExample"> <service name="isspService"> <inbound> <stdio:inbound-endpoint system="IN" /> </inbound> <component class="hr.srce.cp.sandbox.integration.mule.ws.IsspTestComponentImpl" /> <outbound> <outbound-pass-through-router> <cxf:outbound-endpoint address="http://161.53.XXX.YYY/ISVURazmjena_Test/ISVURazmjena.asmx" clientClass="hr.srce.cp.sandbox.integration.mule.ws.issp.cxf.client.ISVU Razmjena_Service" operation="SendISVUData" wsdlPort="ISVURazmjena" wsdlLocation="http://161.53.XXX.YYY/ISVURazmjena_Test/ISVURazmjena.asmx? WSDL" synchronous="true"> </cxf:outbound-endpoint> </outbound-pass-through-router> </outbound> </service> </model> </mule> For testing purposes, IsspTestComponentImpl ignores message received from system.in and send Object[] with 3 parameters from WS. This is method implementation: public Object[] process( String text ) { Object[] rez = new Object[3]; rez[0] = "param0"; rez[1] = "param1"; rez[2] = "param2"; return rez; } This is error that mule throws: DEBUG Message being sent to: http://161.53.XXX.YYY/ISVURazmjena_Test/ISVURazmjena.asmx Message payload: {ISVUPodaci[<xml>Ovo bi trebao biti XML s ISVU podacima</xml>,isvurazmjena,***********]} outbound transformer is: [] DEBUG MuleSession has received asynchronous event on: DefaultOutboundEndpoint{endpointUri=http://161.53.XXX.YYY/ISVURazmjena_T est/ISVURazmjena.asmx, connector=CxfConnector{this=1e2670b, started=true, initialised=true, name='connector.cxf.0', disposed=false, numberOfConcurrentTransactedReceivers=4, createMultipleTransactedReceivers=true, connected=true, supportedProtocols=[cxf, cxf:http, cxf:https, cxf:jms, cxf:vm, cxf:servlet], serviceOverrides=null}, transformer=[], name='endpoint.http.161.53.XXX.YYY.ISVURazmjena.Test.ISVURazmjena.asmx', properties={wsdlLocation=http://161.53.XXX.YYY/ISVURazmjena_Test/ISVURaz mjena.asmx?WSDL, operation=SendISVUData, wsdlPort=ISVURazmjena, clientClass=hr.srce.cp.sandbox.integration.mule.ws.issp.cxf.client.ISVUR azmjena_Service}, transactionConfig=Transaction{factory=null, action=NEVER, timeout=0}, filter=null, deleteUnacceptedMessages=false, securityFilter=null, synchronous=true, initialState=started, remoteSync=false, remoteSyncTimeout=3000, endpointEncoding=UTF-8} DEBUG Creating event with data: [Ljava.lang.Object;, for endpoint: DefaultOutboundEndpoint{endpointUri=http://161.53.XXX.YYY/ISVURazmjena_T est/ISVURazmjena.asmx, connector=CxfConnector{this=1e2670b, started=true, initialised=true, name='connector.cxf.0', disposed=false, numberOfConcurrentTransactedReceivers=4, createMultipleTransactedReceivers=true, connected=true, supportedProtocols=[cxf, cxf:http, cxf:https, cxf:jms, cxf:vm, cxf:servlet], serviceOverrides=null}, transformer=[], name='endpoint.http.161.53.XXX.YYY.ISVURazmjena.Test.ISVURazmjena.asmx', properties={wsdlLocation=http://161.53.XXX.YYY/ISVURazmjena_Test/ISVURaz mjena.asmx?WSDL, operation=SendISVUData, wsdlPort=ISVURazmjena, clientClass=hr.srce.cp.sandbox.integration.mule.ws.issp.cxf.client.ISVUR azmjena_Service}, transactionConfig=Transaction{factory=null, action=NEVER, timeout=0}, filter=null, deleteUnacceptedMessages=false, securityFilter=null, synchronous=true, initialState=started, remoteSync=false, remoteSyncTimeout=3000, endpointEncoding=UTF-8} DEBUG dispatching event: MuleEvent: fee838c0-7902-11dd-b848-393439fa45a3, sync=false, stop processing=false, DefaultOutboundEndpoint{endpointUri=http://161.53.XXX.YYY/ISVURazmjena_T est/ISVURazmjena.asmx, connector=CxfConnector{this=1e2670b, started=true, initialised=true, name='connector.cxf.0', disposed=false, numberOfConcurrentTransactedReceivers=4, createMultipleTransactedReceivers=true, connected=true, supportedProtocols=[cxf, cxf:http, cxf:https, cxf:jms, cxf:vm, cxf:servlet], serviceOverrides=null}, transformer=[], name='endpoint.http.161.53.XXX.YYY.ISVURazmjena.Test.ISVURazmjena.asmx', properties={wsdlLocation=http://161.53.XXX.YYY/ISVURazmjena_Test/ISVURaz mjena.asmx?WSDL, operation=SendISVUData, wsdlPort=ISVURazmjena, clientClass=hr.srce.cp.sandbox.integration.mule.ws.issp.cxf.client.ISVUR azmjena_Service}, transactionConfig=Transaction{factory=null, action=NEVER, timeout=0}, filter=null, deleteUnacceptedMessages=false, securityFilter=null, synchronous=true, initialState=started, remoteSync=false, remoteSyncTimeout=3000, endpointEncoding=UTF-8} DEBUG Adding session header to message: ID=fee663fd-7902-11dd-b848-393439fa45a3 DEBUG Applying transformer Base64Encoder (org.mule.transformer.codec.Base64Encoder) DEBUG Object before transform: ID=fee663fd-7902-11dd-b848-393439fa45a3 DEBUG Object after transform: SUQ9ZmVlNjYzZmQtNzkwMi0xMWRkLWI4NDgtMzkzNDM5ZmE0NWEz DEBUG The transformed object is of expected type. Type is: String DEBUG Borrowing a dispatcher for endpoint: http://161.53.XXX.YYY/ISVURazmjena_Test/ISVURazmjena.asmx DEBUG Borrowed a dispatcher for endpoint: http://161.53.XXX.YYY/ISVURazmjena_Test/ISVURazmjena.asmx = CxfMessageDispatcher{this=131de9b, endpoint=http://161.53.XXX.YYY/ISVURazmjena_Test/ISVURazmjena.asmx, disposed=false} DEBUG Borrowed dispatcher: CxfMessageDispatcher{this=131de9b, endpoint=http://161.53.XXX.YYY/ISVURazmjena_Test/ISVURazmjena.asmx, disposed=false} DEBUG new copy of message for Thread[isspService.4,5,main] DEBUG Returning dispatcher for endpoint: http://161.53.XXX.YYY/ISVURazmjena_Test/ISVURazmjena.asmx = CxfMessageDispatcher{this=131de9b, endpoint=http://161.53.XXX.YYY/ISVURazmjena_Test/ISVURazmjena.asmx, disposed=false} DEBUG new copy of message for Thread[connector.cxf.0.dispatcher.3,5,main] DEBUG Connecting: CxfMessageDispatcher{this=131de9b, endpoint=http://161.53.XXX.YYY/ISVURazmjena_Test/ISVURazmjena.asmx, disposed=false} ERROR ************************************************************************ ******** Message : Initialisation Failure: wrong number of arguments Type : org.mule.transport.ConnectException Code : MULE_ERROR-84 JavaDoc : http://mule.mulesource.org/docs/apidocs/org/mule/transport/ConnectExcept ion.html Object : CxfMessageDispatcher{this=131de9b, endpoint=http://161.53.XXX.YYY/ISVURazmjena_Test/ISVURazmjena.asmx, disposed=false} ************************************************************************ ******** Exception stack is: 1. wrong number of arguments (java.lang.IllegalArgumentException) sun.reflect.NativeMethodAccessorImpl:-2 (null) 2. Initialisation Failure: wrong number of arguments (org.mule.transport.ConnectException) org.mule.transport.AbstractConnectable:222 (http://mule.mulesource.org/docs/apidocs/org/mule/transport/ConnectExcep tion.html) ************************************************************************ ******** Root Exception stack trace: java.lang.IllegalArgumentException: wrong number of arguments at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.mule.transport.cxf.ClientWrapper.createClientFromClass(ClientWrapper .java:289) at org.mule.transport.cxf.ClientWrapper.initialize(ClientWrapper.java:100) at org.mule.transport.cxf.CxfMessageDispatcher.doConnect(CxfMessageDispatch er.java:75) at org.mule.transport.AbstractConnectable.connect(AbstractConnectable.java: 201) at org.mule.transport.SingleAttemptConnectionStrategy.doConnect(SingleAttem ptConnectionStrategy.java:25) at org.mule.transport.AbstractConnectionStrategy.connect(AbstractConnection Strategy.java:108) at org.mule.transport.AbstractConnectable.connect(AbstractConnectable.java: 190) at org.mule.transport.SingleAttemptConnectionStrategy.doConnect(SingleAttem ptConnectionStrategy.java:25) at org.mule.transport.AbstractConnectionStrategy.connect(AbstractConnection Strategy.java:108) at org.mule.transport.AbstractMessageDispatcher$Worker.run(AbstractMessageD ispatcher.java:261) at org.mule.work.WorkerContext.run(WorkerContext.java:310) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWor ker(ThreadPoolExecutor.java:1061) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker .run(ThreadPoolExecutor.java:575) at java.lang.Thread.run(Thread.java:619) ************************************************************************ ******** CXF client works fine when I'm using it from standalone app. Similar example works fine when WS behind outbound endpoint is CXF WS. What am I doing wrong? Thanks in advance. Regards, Denis --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
RE: CXF outbound endpoint & MULE_ERROR-84Hi,
The Mule wiki contains a troubleshooting section for CXF: http://mule.mulesource.org/display/MULE2USER/CXF+Transport#CXFTransport-Trou bleshooting It looks like the error message that you report is documented there. Regards A Antoine Borg, Senior Consultant | Tel: +32 28 504 696 ricston Ltd., BP 2, 1180 Uccle, Brussels, BELGIUM email: antoine.borg@... | blog: blog.ricston.com | web: ricston.com -----Original Message----- From: Denis Kranjčec [mailto:denis.kranjcec@...] Sent: Wednesday, September 03, 2008 10:49 AM To: user@... Subject: [mule-user] CXF outbound endpoint & MULE_ERROR-84 Hi, I have problem with CXF outbound endpoint that calls .NET web service - error is MULE_ERROR-84. This is mule config for testing: <mule xmlns="http://www.mulesource.org/schema/mule/core/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:spring="http://www.springframework.org/schema/beans" xmlns:cxf="http://www.mulesource.org/schema/mule/cxf/2.0" xmlns:stdio="http://www.mulesource.org/schema/mule/stdio/2.0" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://www.mulesource.org/schema/mule/core/2.0 http://www.mulesource.org/schema/mule/core/2.0/mule.xsd http://www.mulesource.org/schema/mule/cxf/2.0 http://www.mulesource.org/schema/mule/cxf/2.0/mule-cxf.xsd http://www.mulesource.org/schema/mule/stdio/2.0 http://www.mulesource.org/schema/mule/stdio/2.0/mule-stdio.xsd"> <model name="CxfExample"> <service name="isspService"> <inbound> <stdio:inbound-endpoint system="IN" /> </inbound> <component class="hr.srce.cp.sandbox.integration.mule.ws.IsspTestComponentImpl" /> <outbound> <outbound-pass-through-router> <cxf:outbound-endpoint address="http://161.53.XXX.YYY/ISVURazmjena_Test/ISVURazmjena.asmx" clientClass="hr.srce.cp.sandbox.integration.mule.ws.issp.cxf.client.ISVU Razmjena_Service" operation="SendISVUData" wsdlPort="ISVURazmjena" wsdlLocation="http://161.53.XXX.YYY/ISVURazmjena_Test/ISVURazmjena.asmx? WSDL" synchronous="true"> </cxf:outbound-endpoint> </outbound-pass-through-router> </outbound> </service> </model> </mule> For testing purposes, IsspTestComponentImpl ignores message received from system.in and send Object[] with 3 parameters from WS. This is method implementation: public Object[] process( String text ) { Object[] rez = new Object[3]; rez[0] = "param0"; rez[1] = "param1"; rez[2] = "param2"; return rez; } This is error that mule throws: DEBUG Message being sent to: http://161.53.XXX.YYY/ISVURazmjena_Test/ISVURazmjena.asmx Message payload: {ISVUPodaci[<xml>Ovo bi trebao biti XML s ISVU podacima</xml>,isvurazmjena,***********]} outbound transformer is: [] DEBUG MuleSession has received asynchronous event on: DefaultOutboundEndpoint{endpointUri=http://161.53.XXX.YYY/ISVURazmjena_T est/ISVURazmjena.asmx, connector=CxfConnector{this=1e2670b, started=true, initialised=true, name='connector.cxf.0', disposed=false, numberOfConcurrentTransactedReceivers=4, createMultipleTransactedReceivers=true, connected=true, supportedProtocols=[cxf, cxf:http, cxf:https, cxf:jms, cxf:vm, cxf:servlet], serviceOverrides=null}, transformer=[], name='endpoint.http.161.53.XXX.YYY.ISVURazmjena.Test.ISVURazmjena.asmx', properties={wsdlLocation=http://161.53.XXX.YYY/ISVURazmjena_Test/ISVURaz mjena.asmx?WSDL, operation=SendISVUData, wsdlPort=ISVURazmjena, clientClass=hr.srce.cp.sandbox.integration.mule.ws.issp.cxf.client.ISVUR azmjena_Service}, transactionConfig=Transaction{factory=null, action=NEVER, timeout=0}, filter=null, deleteUnacceptedMessages=false, securityFilter=null, synchronous=true, initialState=started, remoteSync=false, remoteSyncTimeout=3000, endpointEncoding=UTF-8} DEBUG Creating event with data: [Ljava.lang.Object;, for endpoint: DefaultOutboundEndpoint{endpointUri=http://161.53.XXX.YYY/ISVURazmjena_T est/ISVURazmjena.asmx, connector=CxfConnector{this=1e2670b, started=true, initialised=true, name='connector.cxf.0', disposed=false, numberOfConcurrentTransactedReceivers=4, createMultipleTransactedReceivers=true, connected=true, supportedProtocols=[cxf, cxf:http, cxf:https, cxf:jms, cxf:vm, cxf:servlet], serviceOverrides=null}, transformer=[], name='endpoint.http.161.53.XXX.YYY.ISVURazmjena.Test.ISVURazmjena.asmx', properties={wsdlLocation=http://161.53.XXX.YYY/ISVURazmjena_Test/ISVURaz mjena.asmx?WSDL, operation=SendISVUData, wsdlPort=ISVURazmjena, clientClass=hr.srce.cp.sandbox.integration.mule.ws.issp.cxf.client.ISVUR azmjena_Service}, transactionConfig=Transaction{factory=null, action=NEVER, timeout=0}, filter=null, deleteUnacceptedMessages=false, securityFilter=null, synchronous=true, initialState=started, remoteSync=false, remoteSyncTimeout=3000, endpointEncoding=UTF-8} DEBUG dispatching event: MuleEvent: fee838c0-7902-11dd-b848-393439fa45a3, sync=false, stop processing=false, DefaultOutboundEndpoint{endpointUri=http://161.53.XXX.YYY/ISVURazmjena_T est/ISVURazmjena.asmx, connector=CxfConnector{this=1e2670b, started=true, initialised=true, name='connector.cxf.0', disposed=false, numberOfConcurrentTransactedReceivers=4, createMultipleTransactedReceivers=true, connected=true, supportedProtocols=[cxf, cxf:http, cxf:https, cxf:jms, cxf:vm, cxf:servlet], serviceOverrides=null}, transformer=[], name='endpoint.http.161.53.XXX.YYY.ISVURazmjena.Test.ISVURazmjena.asmx', properties={wsdlLocation=http://161.53.XXX.YYY/ISVURazmjena_Test/ISVURaz mjena.asmx?WSDL, operation=SendISVUData, wsdlPort=ISVURazmjena, clientClass=hr.srce.cp.sandbox.integration.mule.ws.issp.cxf.client.ISVUR azmjena_Service}, transactionConfig=Transaction{factory=null, action=NEVER, timeout=0}, filter=null, deleteUnacceptedMessages=false, securityFilter=null, synchronous=true, initialState=started, remoteSync=false, remoteSyncTimeout=3000, endpointEncoding=UTF-8} DEBUG Adding session header to message: ID=fee663fd-7902-11dd-b848-393439fa45a3 DEBUG Applying transformer Base64Encoder (org.mule.transformer.codec.Base64Encoder) DEBUG Object before transform: ID=fee663fd-7902-11dd-b848-393439fa45a3 DEBUG Object after transform: SUQ9ZmVlNjYzZmQtNzkwMi0xMWRkLWI4NDgtMzkzNDM5ZmE0NWEz DEBUG The transformed object is of expected type. Type is: String DEBUG Borrowing a dispatcher for endpoint: http://161.53.XXX.YYY/ISVURazmjena_Test/ISVURazmjena.asmx DEBUG Borrowed a dispatcher for endpoint: http://161.53.XXX.YYY/ISVURazmjena_Test/ISVURazmjena.asmx = CxfMessageDispatcher{this=131de9b, endpoint=http://161.53.XXX.YYY/ISVURazmjena_Test/ISVURazmjena.asmx, disposed=false} DEBUG Borrowed dispatcher: CxfMessageDispatcher{this=131de9b, endpoint=http://161.53.XXX.YYY/ISVURazmjena_Test/ISVURazmjena.asmx, disposed=false} DEBUG new copy of message for Thread[isspService.4,5,main] DEBUG Returning dispatcher for endpoint: http://161.53.XXX.YYY/ISVURazmjena_Test/ISVURazmjena.asmx = CxfMessageDispatcher{this=131de9b, endpoint=http://161.53.XXX.YYY/ISVURazmjena_Test/ISVURazmjena.asmx, disposed=false} DEBUG new copy of message for Thread[connector.cxf.0.dispatcher.3,5,main] DEBUG Connecting: CxfMessageDispatcher{this=131de9b, endpoint=http://161.53.XXX.YYY/ISVURazmjena_Test/ISVURazmjena.asmx, disposed=false} ERROR ************************************************************************ ******** Message : Initialisation Failure: wrong number of arguments Type : org.mule.transport.ConnectException Code : MULE_ERROR-84 JavaDoc : http://mule.mulesource.org/docs/apidocs/org/mule/transport/ConnectExcept ion.html Object : CxfMessageDispatcher{this=131de9b, endpoint=http://161.53.XXX.YYY/ISVURazmjena_Test/ISVURazmjena.asmx, disposed=false} ************************************************************************ ******** Exception stack is: 1. wrong number of arguments (java.lang.IllegalArgumentException) sun.reflect.NativeMethodAccessorImpl:-2 (null) 2. Initialisation Failure: wrong number of arguments (org.mule.transport.ConnectException) org.mule.transport.AbstractConnectable:222 (http://mule.mulesource.org/docs/apidocs/org/mule/transport/ConnectExcep tion.html) ************************************************************************ ******** Root Exception stack trace: java.lang.IllegalArgumentException: wrong number of arguments at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.mule.transport.cxf.ClientWrapper.createClientFromClass(ClientWrapper .java:289) at org.mule.transport.cxf.ClientWrapper.initialize(ClientWrapper.java:100) at org.mule.transport.cxf.CxfMessageDispatcher.doConnect(CxfMessageDispatch er.java:75) at org.mule.transport.AbstractConnectable.connect(AbstractConnectable.java: 201) at org.mule.transport.SingleAttemptConnectionStrategy.doConnect(SingleAttem ptConnectionStrategy.java:25) at org.mule.transport.AbstractConnectionStrategy.connect(AbstractConnection Strategy.java:108) at org.mule.transport.AbstractConnectable.connect(AbstractConnectable.java: 190) at org.mule.transport.SingleAttemptConnectionStrategy.doConnect(SingleAttem ptConnectionStrategy.java:25) at org.mule.transport.AbstractConnectionStrategy.connect(AbstractConnection Strategy.java:108) at org.mule.transport.AbstractMessageDispatcher$Worker.run(AbstractMessageD ispatcher.java:261) at org.mule.work.WorkerContext.run(WorkerContext.java:310) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWor ker(ThreadPoolExecutor.java:1061) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker .run(ThreadPoolExecutor.java:575) at java.lang.Thread.run(Thread.java:619) ************************************************************************ ******** CXF client works fine when I'm using it from standalone app. Similar example works fine when WS behind outbound endpoint is CXF WS. What am I doing wrong? Thanks in advance. Regards, Denis --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
|
|
|
RE: CXF outbound endpoint & MULE_ERROR-84Hi,
Doesn't look like anything's wrong at first glance. What about your clientClass: clientClass="hr.srce.cp.sandbox.integration.mule.ws.cxf.complex.KreirajPunoF irstname_Service" How do you generate it and what does it look like? A Antoine Borg, Senior Consultant | Tel: +32 28 504 696 ricston Ltd., BP 2, 1180 Uccle, Brussels, BELGIUM email: antoine.borg@... | blog: blog.ricston.com | web: ricston.com -----Original Message----- From: Denis Kranjčec [mailto:denis.kranjcec@...] Sent: Thursday, September 04, 2008 11:00 AM To: user@... Subject: RE: [mule-user] CXF outbound endpoint & MULE_ERROR-84 Hi! Thanks for reply. I've looked that troubleshooting section for CXF, but error that mule throws looks to me like internal mule error? In example where outbound endpoint is CXF WS, when there is wrong number of arguments, different error (stacktrace) is thrown: DEBUG Finished creating instance of bean 'org.apache.cxf.binding.soap.SoapTransportFactory' DEBUG Returning cached instance of singleton bean 'org.apache.cxf.binding.soap.SoapTransportFactory' 2008.09.04 10:34:25 org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromWSDL INFO: Creating Service {http://ws.mule.integration.sandbox.cp.srce.hr/}KreirajPunoFirstname from WSDL: http://localhost:63081/firstname?wsdl DEBUG Service helloService polling queue helloService.component, tfirstnameout = 3000 nullDEBUG Service _cxfServiceComponent{http://ws.mule.integration.sandbox.cp.srce.hr/}Krei rajPunoFirstname16754411 polling queue _cxfServiceComponent{http://ws.mule.integration.sandbox.cp.srce.hr/}Krei rajPunoFirstname16754411.component, tfirstnameout = 3000 INFO Connected: CxfMessageDispatcher{this=1566a6c, endpoint=http://localhost:63081/firstname, disposed=false} ERROR Caught exception in Exception Strategy: wrong number of arguments java.lang.IllegalArgumentException: wrong number of arguments at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.mule.transport.cxf.CxfMessageDispatcher.doSendWithProxy(CxfMessageDi spatcher.java:155) at org.mule.transport.cxf.CxfMessageDispatcher.doSend(CxfMessageDispatcher. java:133) at org.mule.transport.cxf.CxfMessageDispatcher.doDispatch(CxfMessageDispatc her.java:219) at org.mule.transport.AbstractMessageDispatcher$Worker.run(AbstractMessageD ispatcher.java:262) at org.mule.work.WorkerContext.run(WorkerContext.java:310) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWor ker(ThreadPoolExecutor.java:1061) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker .run(ThreadPoolExecutor.java:575) at java.lang.Thread.run(Thread.java:619) mule-config: <mule xmlns="http://www.mulesource.org/schema/mule/core/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:spring="http://www.springframework.org/schema/beans" xmlns:cxf="http://www.mulesource.org/schema/mule/cxf/2.0" xmlns:stdio="http://www.mulesource.org/schema/mule/stdio/2.0" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://www.mulesource.org/schema/mule/core/2.0 http://www.mulesource.org/schema/mule/core/2.0/mule.xsd http://www.mulesource.org/schema/mule/stdio/2.0 http://www.mulesource.org/schema/mule/stdio/2.0/mule-stdio.xsd http://www.mulesource.org/schema/mule/cxf/2.0 http://www.mulesource.org/schema/mule/cxf/2.0/mule-cxf.xsd"> <model name="CxfComplexClient"> <service name="cxfComplexExample"> <inbound> <stdio:inbound-endpoint system="IN" /> </inbound> <component class="hr.srce.cp.sandbox.integration.mule.ws.CxfComplexHelloWorldComponent" /> <outbound> <outbound-pass-through-router> <cxf:outbound-endpoint address="http://localhost:63081/name" clientClass="hr.srce.cp.sandbox.integration.mule.ws.cxf.complex.KreirajPunoF irstname_Service" operation="kreirajPunoFirstname" wsdlPort="CxfComplexHelloWorldImplPort" wsdlLocation="http://localhost:63081/name?wsdl" synchronous="true"> </cxf:outbound-endpoint> </outbound-pass-through-router> </outbound> </service> </model> <!-- Ovo glumi vanjski web servise koji ima 2 parametra --> <model name="CxfVanjski"> <service name="helloService"> <inbound> <cxf:inbound-endpoint address="http://localhost:63081/name" /> </inbound> <component class="hr.srce.cp.sandbox.integration.mule.ws.CxfComplexHelloWorldImpl"> </component> </service> </model> </mule> CxfComplexHelloWorldComponent implementation with wrong number of arguments: public Object[] obradiZahtjev( String text ) { Object[] rez = new String[1]; rez[0] = "Richard"; logger.info( "Received '" + text + "', returning '" + rez + "'" ); return rez; } CxfComplexHelloWorldComponent implementation with correct number of arguments: public Object[] obradiZahtjev( String text ) { Object[] rez = new String[2]; rez[0] = "Richard"; rez[1] = "Dawkins"; logger.info( "Received '" + text + "', returning '" + rez + "'" ); return rez; } WS implementation: @WebService( endpointInterface ="hr.srce.cp.sandbox.integration.mule.ws.CxfComplexHelloWorld", serviceName = "KreirajPunoFirstname" ) public class CxfComplexHelloWorldImpl implements CxfComplexHelloWorld { Logger logger = Logger.getLogger( CxfComplexHelloWorldImpl.class ); @Override public String kreirajPunoFirstname( String firstname, String lastname ) { String result = firstname + " " + lastname; logger.info( "Received " + firstname + " " + lastname + ", returning " + result ); return result; } } Regards, Denis -----Original Message----- From: Antoine Borg [mailto:antoine.borg@...] Sent: Thursday, September 04, 2008 10:28 AM To: user@... Subject: RE: [mule-user] CXF outbound endpoint & MULE_ERROR-84 Hi, The Mule wiki contains a troubleshooting section for CXF: http://mule.mulesource.org/display/MULE2USER/CXF+Transport#CXFTransport- Trou bleshooting It looks like the error message that you report is documented there. Regards A Antoine Borg, Senior Consultant | Tel: +32 28 504 696 ricston Ltd., BP 2, 1180 Uccle, Brussels, BELGIUM email: antoine.borg@... | blog: blog.ricston.com | web: ricston.com ... --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
|
|
|
RE: CXF outbound endpoint & MULE_ERROR-84Hi,
I'm not sure if the client class matches the example you sent earlier - I can't find a reference to hr.srce.cp.sandbox.integration.mule.ws.cxf.complex.KreirajP unoFirstname_Service unfortunately. A Antoine Borg, Senior Consultant | Tel: +32 28 504 696 ricston Ltd., BP 2, 1180 Uccle, Brussels, BELGIUM email: antoine.borg@... | blog: blog.ricston.com | web: ricston.com -----Original Message----- From: Denis Kranjčec [mailto:denis.kranjcec@...] Sent: Friday, September 05, 2008 1:32 PM To: user@... Subject: RE: [mule-user] CXF outbound endpoint & MULE_ERROR-84 Hi, This is how I've generated client code: D:\dev\java-lib\apache-cxf\apache-cxf-2.0.6\bin\wsdl2java -client -p hr.srce.cp.sandbox.integration.mule.ws.issp.client http://161.53.XXX.YYY/ISVURazmjena_Test/ISVURazmjena.asmx?WSDL This is generated source: package hr.srce.cp.sandbox.integration.mule.ws.issp.cxf.client; import java.net.MalformedURLException; import java.net.URL; import javax.xml.namespace.QName; import javax.xml.ws.Service; import javax.xml.ws.WebEndpoint; import javax.xml.ws.WebServiceClient; import javax.xml.ws.WebServiceFeature; /** * This class was generated by Apache CXF 2.1.1 * Tue Sep 02 16:27:37 CEST 2008 * Generated source version: 2.1.1 * */ /* * */ @WebServiceClient(name = "ISVURazmjena", wsdlLocation = "http://161.53.XXX.YYY/ISVURazmjena_Test/ISVURazmjena.asmx?WSDL", targetNamespace = "http://aaaa.bbbb.srce.hr/") public class ISVURazmjena_Service extends Service { public final static URL WSDL_LOCATION; public final static QName SERVICE = new QName("http://aaaa.bbbb.srce.hr/", "ISVURazmjena"); public final static QName ISVURazmjena = new QName("http://aaaa.bbbb.srce.hr/", "ISVURazmjena"); public final static QName ISVURazmjena1 = new QName("http://aaaa.bbbb.srce.hr/", "ISVURazmjena1"); static { URL url = null; try { url = new URL("http://161.53.XXX.YYY/ISVURazmjena_Test/ISVURazmjena.asmx?WSDL"); } catch (MalformedURLException e) { System.err.println("Can not initialize the default wsdl from http://161.53.XXX.YYY/ISVURazmjena_Test/ISVURazmjena.asmx?WSDL"); // e.printStackTrace(); } WSDL_LOCATION = url; } public ISVURazmjena_Service(URL wsdlLocation) { super(wsdlLocation, SERVICE); } public ISVURazmjena_Service(URL wsdlLocation, QName serviceName) { super(wsdlLocation, serviceName); } public ISVURazmjena_Service() { super(WSDL_LOCATION, SERVICE); } /** * * @return * returns ISVURazmjena */ @WebEndpoint(name = "ISVURazmjena") public ISVURazmjena getISVURazmjena() { return super.getPort(ISVURazmjena, ISVURazmjena.class); } /** * * @param features * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values. * @return * returns ISVURazmjena */ @WebEndpoint(name = "ISVURazmjena") public ISVURazmjena getISVURazmjena(WebServiceFeature... features) { return super.getPort(ISVURazmjena, ISVURazmjena.class, features); } /** * * @return * returns ISVURazmjena */ @WebEndpoint(name = "ISVURazmjena1") public ISVURazmjena getISVURazmjena1() { return super.getPort(ISVURazmjena1, ISVURazmjena.class); } /** * * @param features * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values. * @return * returns ISVURazmjena */ @WebEndpoint(name = "ISVURazmjena1") public ISVURazmjena getISVURazmjena1(WebServiceFeature... features) { return super.getPort(ISVURazmjena1, ISVURazmjena.class, features); } } When I'm using CXF generated client (ISVURazmjena_ISVURazmjena1_Client), WS call works fine. Any ideas what's wrong with my config? Regards, Denis -----Original Message----- From: Antoine Borg [mailto:antoine.borg@...] Sent: Friday, September 05, 2008 10:20 AM To: user@... Subject: RE: [mule-user] CXF outbound endpoint & MULE_ERROR-84 Hi, Doesn't look like anything's wrong at first glance. What about your clientClass: clientClass="hr.srce.cp.sandbox.integration.mule.ws.cxf.complex.KreirajP unoF irstname_Service" How do you generate it and what does it look like? A Antoine Borg, Senior Consultant | Tel: +32 28 504 696 ricston Ltd., BP 2, 1180 Uccle, Brussels, BELGIUM email: antoine.borg@... | blog: blog.ricston.com | web: ricston.com -----Original Message----- From: Denis Kranjčec [mailto:denis.kranjcec@...] Sent: Thursday, September 04, 2008 11:00 AM To: user@... Subject: RE: [mule-user] CXF outbound endpoint & MULE_ERROR-84 Hi! Thanks for reply. I've looked that troubleshooting section for CXF, but error that mule throws looks to me like internal mule error? In example where outbound endpoint is CXF WS, when there is wrong number of arguments, different error (stacktrace) is thrown: DEBUG Finished creating instance of bean 'org.apache.cxf.binding.soap.SoapTransportFactory' DEBUG Returning cached instance of singleton bean 'org.apache.cxf.binding.soap.SoapTransportFactory' 2008.09.04 10:34:25 org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromWSDL INFO: Creating Service {http://ws.mule.integration.sandbox.cp.srce.hr/}KreirajPunoFirstname from WSDL: http://localhost:63081/firstname?wsdl DEBUG Service helloService polling queue helloService.component, tfirstnameout = 3000 nullDEBUG Service _cxfServiceComponent{http://ws.mule.integration.sandbox.cp.srce.hr/}Krei rajPunoFirstname16754411 polling queue _cxfServiceComponent{http://ws.mule.integration.sandbox.cp.srce.hr/}Krei rajPunoFirstname16754411.component, tfirstnameout = 3000 INFO Connected: CxfMessageDispatcher{this=1566a6c, endpoint=http://localhost:63081/firstname, disposed=false} ERROR Caught exception in Exception Strategy: wrong number of arguments java.lang.IllegalArgumentException: wrong number of arguments at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.mule.transport.cxf.CxfMessageDispatcher.doSendWithProxy(CxfMessageDi spatcher.java:155) at org.mule.transport.cxf.CxfMessageDispatcher.doSend(CxfMessageDispatcher. java:133) at org.mule.transport.cxf.CxfMessageDispatcher.doDispatch(CxfMessageDispatc her.java:219) at org.mule.transport.AbstractMessageDispatcher$Worker.run(AbstractMessageD ispatcher.java:262) at org.mule.work.WorkerContext.run(WorkerContext.java:310) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWor ker(ThreadPoolExecutor.java:1061) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker .run(ThreadPoolExecutor.java:575) at java.lang.Thread.run(Thread.java:619) mule-config: <mule xmlns="http://www.mulesource.org/schema/mule/core/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:spring="http://www.springframework.org/schema/beans" xmlns:cxf="http://www.mulesource.org/schema/mule/cxf/2.0" xmlns:stdio="http://www.mulesource.org/schema/mule/stdio/2.0" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://www.mulesource.org/schema/mule/core/2.0 http://www.mulesource.org/schema/mule/core/2.0/mule.xsd http://www.mulesource.org/schema/mule/stdio/2.0 http://www.mulesource.org/schema/mule/stdio/2.0/mule-stdio.xsd http://www.mulesource.org/schema/mule/cxf/2.0 http://www.mulesource.org/schema/mule/cxf/2.0/mule-cxf.xsd"> <model name="CxfComplexClient"> <service name="cxfComplexExample"> <inbound> <stdio:inbound-endpoint system="IN" /> </inbound> <component class="hr.srce.cp.sandbox.integration.mule.ws.CxfComplexHelloWorldCompon ent" /> <outbound> <outbound-pass-through-router> <cxf:outbound-endpoint address="http://localhost:63081/name" clientClass="hr.srce.cp.sandbox.integration.mule.ws.cxf.complex.KreirajP unoF irstname_Service" operation="kreirajPunoFirstname" wsdlPort="CxfComplexHelloWorldImplPort" wsdlLocation="http://localhost:63081/name?wsdl" synchronous="true"> </cxf:outbound-endpoint> </outbound-pass-through-router> </outbound> </service> </model> <!-- Ovo glumi vanjski web servise koji ima 2 parametra --> <model name="CxfVanjski"> <service name="helloService"> <inbound> <cxf:inbound-endpoint address="http://localhost:63081/name" /> </inbound> <component class="hr.srce.cp.sandbox.integration.mule.ws.CxfComplexHelloWorldImpl"> </component> </service> </model> </mule> CxfComplexHelloWorldComponent implementation with wrong number of arguments: public Object[] obradiZahtjev( String text ) { Object[] rez = new String[1]; rez[0] = "Richard"; logger.info( "Received '" + text + "', returning '" + rez + "'" ); return rez; } CxfComplexHelloWorldComponent implementation with correct number of arguments: public Object[] obradiZahtjev( String text ) { Object[] rez = new String[2]; rez[0] = "Richard"; rez[1] = "Dawkins"; logger.info( "Received '" + text + "', returning '" + rez + "'" ); return rez; } WS implementation: @WebService( endpointInterface ="hr.srce.cp.sandbox.integration.mule.ws.CxfComplexHelloWorld", serviceName = "KreirajPunoFirstname" ) public class CxfComplexHelloWorldImpl implements CxfComplexHelloWorld { Logger logger = Logger.getLogger( CxfComplexHelloWorldImpl.class ); @Override public String kreirajPunoFirstname( String firstname, String lastname ) { String result = firstname + " " + lastname; logger.info( "Received " + firstname + " " + lastname + ", returning " + result ); return result; } } Regards, Denis -----Original Message----- From: Antoine Borg [mailto:antoine.borg@...] Sent: Thursday, September 04, 2008 10:28 AM To: user@... Subject: RE: [mule-user] CXF outbound endpoint & MULE_ERROR-84 Hi, The Mule wiki contains a troubleshooting section for CXF: http://mule.mulesource.org/display/MULE2USER/CXF+Transport#CXFTransport- Trou bleshooting It looks like the error message that you report is documented there. Regards A Antoine Borg, Senior Consultant | Tel: +32 28 504 696 ricston Ltd., BP 2, 1180 Uccle, Brussels, BELGIUM email: antoine.borg@... | blog: blog.ricston.com | web: ricston.com ... --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
|
|
|
Re: CXF outbound endpoint & MULE_ERROR-84I ran into this exact same problem and also resolved it by starting over.
The problem I found was that I originally run wsdl2java using the latest version of cxf, but then used those classes with mule 2.0.2 which uses cxf version 2.0.6. So the solutions was to simply rerun wsdl2java using the version corresponding to the one included with the mule distribution. Hope this helps someone else. Thanks, Dan Henry
|
| Free embeddable forum powered by Nabble | Forum Help |