[mule-user] Deserializing problem XFIRE

0 views
Skip to first unread message

cantwait

unread,
Apr 22, 2010, 10:02:54 AM4/22/10
to us...@mule.codehaus.org

Hi im having problems with this Deserializing... here is my code and the full
trace:


<mule-descriptor name="SERV_0007_Consultar_Lista_Precios"
implementation="cantvpic.modelo.servicios.impl.ServicioConsultarPrecios"
inboundEndpoint="xfire:http://localhost:81/services">

<inbound-router>
<router className="org.mule.routing.inbound.ForwardingConsumer" />
</inbound-router>

<outbound-router>
<!--
<router
className="org.mule.routing.outbound.OutboundPassThroughRouter">
cantvpic.modelo.routers.ExceptionBasedRouter
-->
<router className="org.mule.routing.outbound.OutboundPassThroughRouter">


<endpoint synchronous="true"

address="wsdl-xfire:http://wasqas:50000/ConsultarPreciosMaterialesService/Config1?wsdl">
<properties>
<property name="method" value="ConsultarPreciosMaterialesMethod" />

<map name="complexTypes">
<property name="cantvpic.modelo.data.ArrayOfString"
value="ArrayOfString:lang.java" />
<property name="cantvpic.modelo.data.ArrayOfListaPrecios"
value="ArrayOfListaPrecios:com.sap.iptv" />
<property name="cantvpic.modelo.data.ListaPrecios"
value="ListaPrecios:com.sap.iptv" />
</map>


<property name="http.method" value="POST" />
</properties>
</endpoint>
</router>
</outbound-router>

<exception-strategy className="org.mule.impl.DefaultExceptionStrategy">
<endpoint address="vm://error" />
</exception-strategy>

</mule-descriptor>

When i try to test with SoapUI i get this trace:

INFO 2010-04-22 09:20:59,046 [main] org.mule.MuleServer: Mule Server
initialized.
Retrieving document at
'http://wasqas:50000/ConsultarPreciosMaterialesService/Config1/bindings?wsdl&style=document'.
Retrieving document at
'http://wasqas:50000/ConsultarPreciosMaterialesService/Config1/porttypes?wsdl&style=document',
relative to
'http://wasqas:50000/ConsultarPreciosMaterialesService/Config1/bindings?wsdl&style=document'.
INFO 2010-04-22 09:21:42,640 [HttpConnector.receiver.2]
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder: Adding wsdl definition
http://wasqas:50000/ConsultarPreciosMaterialesService/Config1/bindings?wsdl&style=document
with baseURI of null
INFO 2010-04-22 09:21:42,640 [HttpConnector.receiver.2]
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder: Adding wsdl definition
http://wasqas:50000/ConsultarPreciosMaterialesService/Config1/porttypes?wsdl&style=document
with baseURI of
http://wasqas:50000/ConsultarPreciosMaterialesService/Config1/bindings?wsdl&style=document
Retrieving document at
'http://wasqas:50000/ConsultarPreciosMaterialesService/Config1/bindings?wsdl&style=document'.
Retrieving document at
'http://wasqas:50000/ConsultarPreciosMaterialesService/Config1/porttypes?wsdl&style=document',
relative to
'http://wasqas:50000/ConsultarPreciosMaterialesService/Config1/bindings?wsdl&style=document'.
INFO 2010-04-22 09:21:45,593 [HttpConnector.receiver.2]
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder: Adding wsdl definition
http://wasqas:50000/ConsultarPreciosMaterialesService/Config1/bindings?wsdl&style=document
with baseURI of null
INFO 2010-04-22 09:21:45,593 [HttpConnector.receiver.2]
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder: Adding wsdl definition
http://wasqas:50000/ConsultarPreciosMaterialesService/Config1/porttypes?wsdl&style=document
with baseURI of
http://wasqas:50000/ConsultarPreciosMaterialesService/Config1/bindings?wsdl&style=document
INFO 2010-04-22 09:21:45,593 [HttpConnector.receiver.2]
org.mule.providers.soap.xfire.wsdl.XFireWsdlMessageDispatcher: Connected:
XFireWsdlMessageDispatcher{this=1e8fa70,
endpoint=http://wasqas:50000/ConsultarPreciosMaterialesService/Config1?wsdl}
INFO 2010-04-22 09:21:48,562 [HttpConnector.receiver.2]
org.mule.providers.soap.xfire.wsdl.XFireWsdlMessageDispatcher: Disconnected:
XFireWsdlMessageDispatcher{this=1e8fa70,
endpoint=http://wasqas:50000/ConsultarPreciosMaterialesService/Config1?wsdl}
INFO 2010-04-22 09:21:48,578 [HttpConnector.receiver.2]
org.codehaus.xfire.handler.DefaultFaultHandler: Fault occurred!
org.mule.umo.routing.RoutingException: Failed to route event via endpoint:
MuleEndpoint{endpointUri=http://localhost:81/services,
connector=XFireConnector{this=1c7865b, started=true, initialised=true,
name='connector.xfire.0', disposed=false,
numberOfConcurrentTransactedReceivers=4,
createMultipleTransactedReceivers=true, connected=true,
supportedProtocols=[xfire, xfire:http, xfire:https, xfire:jms, xfire:vm,
xfire:servlet], serviceOverrides=null}, transformer=null,
name='endpoint.http.localhost.81.services', type='receiver',
properties={Content-Type=text/xml, http.method=POST},
transactionConfig=Transaction{factory=null, action=NONE, timeout=30000},
filter=null, deleteUnacceptedMessages=false, initialised=true,
securityFilter=null, synchronous=null, initialState=started,
createConnector=0, remoteSync=false, remoteSyncTimeout=null,
endpointEncoding=null}. Message payload is of type: Object[]
at
org.mule.routing.inbound.ForwardingConsumer.process(ForwardingConsumer.java:66)
at
org.mule.routing.inbound.InboundRouterCollection.route(InboundRouterCollection.java:86)
at
org.mule.providers.AbstractMessageReceiver$DefaultInternalMessageListener.onMessage(AbstractMessageReceiver.java:581)
at
org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:322)
at
org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:251)
at org.mule.providers.soap.xfire.MuleInvoker.invoke(MuleInvoker.java:53)
at
org.codehaus.xfire.service.binding.ServiceInvocationHandler.sendMessage(ServiceInvocationHandler.java:320)
at
org.codehaus.xfire.service.binding.ServiceInvocationHandler$1.run(ServiceInvocationHandler.java:86)
at
org.codehaus.xfire.service.binding.ServiceInvocationHandler.execute(ServiceInvocationHandler.java:134)
at
org.codehaus.xfire.service.binding.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:109)
at
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
at
org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)
at
org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
at
org.mule.providers.soap.xfire.transport.MuleLocalChannel.onCall(MuleLocalChannel.java:380)
at
org.mule.providers.soap.xfire.XFireServiceComponent.onCall(XFireServiceComponent.java:169)
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:597)
at
org.mule.impl.model.resolvers.DynamicEntryPoint.invokeMethod(DynamicEntryPoint.java:312)
at
org.mule.impl.model.resolvers.DynamicEntryPoint.invoke(DynamicEntryPoint.java:259)
at
org.mule.impl.DefaultLifecycleAdapter.intercept(DefaultLifecycleAdapter.java:194)
at org.mule.impl.InterceptorsInvoker.execute(InterceptorsInvoker.java:47)
at
org.mule.interceptors.EnvelopeInterceptor.intercept(EnvelopeInterceptor.java:44)
at org.mule.impl.InterceptorsInvoker.execute(InterceptorsInvoker.java:47)
at org.mule.impl.model.DefaultMuleProxy.onCall(DefaultMuleProxy.java:258)
at org.mule.impl.model.seda.SedaComponent.doSend(SedaComponent.java:393)
at
org.mule.impl.model.AbstractComponent.sendEvent(AbstractComponent.java:418)
at org.mule.impl.MuleSession.sendEvent(MuleSession.java:349)
at
org.mule.routing.inbound.InboundRouterCollection.send(InboundRouterCollection.java:197)
at
org.mule.routing.inbound.InboundRouterCollection.route(InboundRouterCollection.java:163)
at
org.mule.providers.AbstractMessageReceiver$DefaultInternalMessageListener.onMessage(AbstractMessageReceiver.java:581)
at
org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:322)
at
org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:269)
at
org.mule.providers.http.HttpMessageReceiver$HttpWorker.doGetOrPost(HttpMessageReceiver.java:233)
at
org.mule.providers.http.HttpMessageReceiver$HttpWorker.processRequest(HttpMessageReceiver.java:177)
at
org.mule.providers.http.HttpMessageReceiver$HttpWorker.run(HttpMessageReceiver.java:150)
at org.mule.impl.work.WorkerContext.run(WorkerContext.java:310)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.mule.umo.routing.RoutingException: Failed to route event via
endpoint: null. Message payload is of type: Object[]
at
org.mule.routing.outbound.OutboundRouterCollection.route(OutboundRouterCollection.java:75)
at
org.mule.routing.inbound.ForwardingConsumer.process(ForwardingConsumer.java:51)
... 40 more
Caused by: org.mule.umo.routing.CouldNotRouteOutboundMessageException:
Failed to route event via endpoint:
MuleEndpoint{endpointUri=http://wasqas:50000/ConsultarPreciosMaterialesService/Config1?wsdl,
connector=XFireWsdlConnector{this=17c96a9, started=true, initialised=true,
name='connector.wsdl.xfire.0', disposed=false,
numberOfConcurrentTransactedReceivers=4,
createMultipleTransactedReceivers=true, connected=true,
supportedProtocols=[wsdl-xfire, wsdl-xfire:http, wsdl-xfire:https,
wsdl:http, wsdl:https], serviceOverrides=null}, transformer=null,
name='endpoint.http.wasqas.50000.ConsultarPreciosMaterialesService.Config1.wsdl',
type='senderAndReceiver',
properties={complexTypes={cantvpic.modelo.data.ListaPrecios=ListaPrecios:com.sap.iptv,
cantvpic.modelo.data.ArrayOfString=ArrayOfString:lang.java,
cantvpic.modelo.data.ArrayOfListaPrecios=ArrayOfListaPrecios:com.sap.iptv},
method=ConsultarPreciosMaterialesMethod, http.method=POST, wsdl=},
transactionConfig=Transaction{factory=null, action=NONE, timeout=30000},
filter=null, deleteUnacceptedMessages=false, initialised=true,
securityFilter=null, synchronous=true, initialState=started,
createConnector=0, remoteSync=null, remoteSyncTimeout=10000,
endpointEncoding=null}. Message payload is of type: Object[]
at
org.mule.routing.outbound.FilteringOutboundRouter.route(FilteringOutboundRouter.java:75)
at
org.mule.routing.outbound.OutboundPassThroughRouter.route(OutboundPassThroughRouter.java:79)
at
org.mule.routing.outbound.OutboundRouterCollection$1.doInTransaction(OutboundRouterCollection.java:66)
at
org.mule.transaction.TransactionTemplate.execute(TransactionTemplate.java:39)
at
org.mule.routing.outbound.OutboundRouterCollection.route(OutboundRouterCollection.java:71)
... 41 more
Caused by: org.mule.umo.provider.DispatchException: Failed to route event
via endpoint:
MuleEndpoint{endpointUri=http://wasqas:50000/ConsultarPreciosMaterialesService/Config1?wsdl,
connector=XFireWsdlConnector{this=17c96a9, started=true, initialised=true,
name='connector.wsdl.xfire.0', disposed=false,
numberOfConcurrentTransactedReceivers=4,
createMultipleTransactedReceivers=true, connected=true,
supportedProtocols=[wsdl-xfire, wsdl-xfire:http, wsdl-xfire:https,
wsdl:http, wsdl:https], serviceOverrides=null}, transformer=null,
name='endpoint.http.wasqas.50000.ConsultarPreciosMaterialesService.Config1.wsdl',
type='senderAndReceiver',
properties={complexTypes={cantvpic.modelo.data.ListaPrecios=ListaPrecios:com.sap.iptv,
cantvpic.modelo.data.ArrayOfString=ArrayOfString:lang.java,
cantvpic.modelo.data.ArrayOfListaPrecios=ArrayOfListaPrecios:com.sap.iptv},
method=ConsultarPreciosMaterialesMethod, http.method=POST, wsdl=},
transactionConfig=Transaction{factory=null, action=NONE, timeout=30000},
filter=null, deleteUnacceptedMessages=false, initialised=true,
securityFilter=null, synchronous=true, initialState=started,
createConnector=0, remoteSync=null, remoteSyncTimeout=10000,
endpointEncoding=null}. Message payload is of type: Object[]
at
org.mule.providers.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:252)
at org.mule.providers.AbstractConnector.send(AbstractConnector.java:1629)
at org.mule.impl.ImmutableMuleEndpoint.send(ImmutableMuleEndpoint.java:955)
at org.mule.impl.MuleSession.sendEvent(MuleSession.java:327)
at org.mule.impl.MuleSession.sendEvent(MuleSession.java:210)
at
org.mule.routing.outbound.AbstractOutboundRouter.send(AbstractOutboundRouter.java:120)
at
org.mule.routing.outbound.FilteringOutboundRouter.route(FilteringOutboundRouter.java:66)
... 45 more
Caused by: org.codehaus.xfire.fault.XFireFault: Deserializing fails. Nested
message: XML Deserialization Error. Can not create instance of class [NULL]
when deserializing XML type [lang.java][ArrayOfString]..
at
org.codehaus.xfire.fault.Soap11FaultSerializer.readMessage(Soap11FaultSerializer.java:31)
at
org.codehaus.xfire.fault.SoapFaultSerializer.readMessage(SoapFaultSerializer.java:28)
at
org.codehaus.xfire.soap.handler.ReadHeadersHandler.checkForFault(ReadHeadersHandler.java:111)
at
org.codehaus.xfire.soap.handler.ReadHeadersHandler.invoke(ReadHeadersHandler.java:67)
at
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
at org.codehaus.xfire.client.Client.onReceive(Client.java:406)
at
org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:139)
at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
at
org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
at
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)
at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)
at org.codehaus.xfire.client.Client.invoke(Client.java:336)
at org.codehaus.xfire.client.Client.invoke(Client.java:368)
at
org.mule.providers.soap.xfire.XFireMessageDispatcher.doSend(XFireMessageDispatcher.java:275)
at
org.mule.providers.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:224)
... 51 more
--
View this message in context: http://old.nabble.com/Deserializing-problem-XFIRE-tp28329318p28329318.html
Sent from the Mule - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


--
You received this message because you are subscribed to the Google Groups "mule-user" group.
To post to this group, send email to mule...@googlegroups.com.
To unsubscribe from this group, send email to mule-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mule-user?hl=en.

Reply all
Reply to author
Forward
0 new messages