I'm not an expert on the Python implementation in Tuscany 1.6.2. The problem 
you are seeing might have something to do with the WSDL doc-lit-wrapper 
handling. When Tuscany tries to dispatch the WS request to the python code, it 
"may" use the wrapped elements to interact with the python code. If that's the 
case, the python code needs to deal with the wrapped element.

Can somebody have the expertise to debug and see?

Thanks,
Raymond

On Jan 13, 2012, at 9:25 AM, ESSOUSSI Mohamed Habib wrote:

>> Raymond Feng
>> Thu, 12 Jan 2012 17:01:38 -0800
>> 
>> Hi,
>> 
>> Can you show us the composite file and the complete stack trace?
>> 
>> BTW, are you using Tuscany 1.6.x or Tuscany 2.0?
>> 
>> Thanks,
>> Raymond
> Good evening,
> 
> I am using Tuscany 1.6.2.
> 
> The composite file:
> <?xml version="1.0" encoding="UTF-8"?>
> <composite xmlns=MailScanner soupçonne le lien suivant d'être une tentative 
> de fraude de la part de "www.osoa.org" "http://www.osoa.org/xmlns/sca/1.0"; 
> xmlns:c="http://chatserver";
>     targetNamespace=MailScanner soupçonne le lien suivant d'être une 
> tentative de fraude de la part de "tuscanyscatours.com" 
> "http://tuscanyscatours.com/"; name="chatserver"
>     xmlns:tuscany=MailScanner soupçonne le lien suivant d'être une tentative 
> de fraude de la part de "tuscany.apache.org" 
> "http://tuscany.apache.org/xmlns/sca/1.0"; xmlns:xsd=MailScanner soupçonne le 
> lien suivant d'être une tentative de fraude de la part de "www.w3.org" 
> "http://www.w3.org/2001/XMLSchema";>
> 
>     <component name="PythonServerComponent">
>         <tuscany:implementation.script script="chatserver/ChatServerImpl.py" 
> />
>         <service name="ChatServer">
>             <interface.java interface="chatserver.ChatServer" />
>             <binding.ws uri="http://localhost:9000/server"; />
>         </service>
>         
>     </component>
> 
> </composite>
> 
> The complete stack trace:
> 
> Exception in thread "main" org.osoa.sca.ServiceRuntimeException: 
> org.apache.tuscany.sca.interfacedef.util.FaultException: 
> org.apache.tuscany.sca.databinding.TransformationException: 
> org.apache.tuscany.sca.databinding.jaxb.JAXBWrapperException: 
> java.lang.IllegalArgumentException: argument type mismatch
>     at 
> org.apache.tuscany.sca.databinding.impl.MediatorImpl.mediateFault(MediatorImpl.java:317)
>     at 
> org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(DataTransformationInterceptor.java:78)
>     at 
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:349)
>     at 
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:193)
>     at $Proxy34.checkMessages(Unknown Source)
>     at sca.client.ChatClient.run(ChatClient.java:18)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:616)
>     at 
> org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:156)
>     at 
> org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCABindingInvoker.java:61)
>     at 
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:349)
>     at 
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:193)
>     at $Proxy33.run(Unknown Source)
>     at sca.client.launcher.ChatLauncher.main(ChatLauncher.java:17)
> Caused by: org.apache.tuscany.sca.interfacedef.util.FaultException: 
> org.apache.tuscany.sca.databinding.TransformationException: 
> org.apache.tuscany.sca.databinding.jaxb.JAXBWrapperException: 
> java.lang.IllegalArgumentException: argument type mismatch
>     at 
> org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invoke(Axis2BindingInvoker.java:129)
>     at 
> org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterceptor.invoke(DataTransformationInterceptor.java:67)
>     ... 14 more
> Caused by: org.apache.axis2.AxisFault: 
> org.apache.tuscany.sca.databinding.TransformationException: 
> org.apache.tuscany.sca.databinding.jaxb.JAXBWrapperException: 
> java.lang.IllegalArgumentException: argument type mismatch
>     at 
> org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512)
>     at 
> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
>     at 
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
>     at 
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
>     at 
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
>     at 
> org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker$1.run(Axis2BindingInvoker.java:173)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at 
> org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invokeTarget(Axis2BindingInvoker.java:171)
>     at 
> org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingInvoker.invoke(Axis2BindingInvoker.java:124)
>     ... 15 more
> 
> Thanks again,
> Yours :)
> -- 
>               ESSOUSSI Mohamed Habib                
> TELECOM SudParis

Reply via email to