There seems to be a mismatch for Jython version. Can you find out which Jython
version is in use?
Thanks,
Raymond
On Jan 12, 2012, at 12:11 PM, ESSOUSSI Mohamed Habib wrote:
> Raymond Feng wrote:
>> Using the List<String> as the return type is tricky for SOAP WS as the XML
>> always requires to have a root element. Do you mind trying to create a
>> wrapper
>> JAXB for the List<String>, such as:
>>
>> public class Messages {
>> protected List<String> items;
>> …
>> // setter and getters
>> }
>>
>> Thanks,
>> Raymond
> Good evening Raymond,
>
> That helped me a lot but did not resolve the problem unfortunately.
>
> I have created a Java class Messages.java and python class Messages.py.
> You can find enclosed all the source files (server and client side).
>
> The server interface returns now a "Messages" type class element instead of
> an ArrayList. That seems working. I generated the stub correctly in the
> client side but now I have this exception:
>
> xception in thread "main" org.osoa.sca.ServiceRuntimeException:
> org.apache.tuscany.sca.interfacedef.util.FaultException:
> java.lang.IncompatibleClassChangeError: Expected non-static field
> org.python.core.PySystemState.builtins
>
> I think that there is a problem in matching the interface written in Java and
> its implementation written in Python and between the Java class Messages.java
> and the Python class Messages.py.
>
> Have you ever experienced working with python + SCA?
>
> Thanks a lot,
>
> Yours,
>
> --
>
> ESSOUSSI Mohamed Habib
> TELECOM SudParis
> <ChatServer.java><ChatServerImpl.py><Messages.java><Messages.py><ChatClient.java>