|
I have fixed the previous exception by merging both of Messages.py
and the implementation python module in a same module (file). But
now I have this exception: Caused by: org.osoa.sca.ServiceRuntimeException: org.apache.tuscany.sca.databinding.TransformationException: org.apache.tuscany.sca.databinding.jaxb.JAXBWrapperException: java.lang.IllegalArgumentException: argument type mismatch Again, I attach my sources. I hope it would help you to fix this problem. Yours --
|
package chatserver; import org.osoa.sca.annotations.Remotable;
@Remotable
public interface ChatServer {
Messages checkMessages(int received);
}
class Messages(object):
"""Class docstring."""
def __init__(self):
pass
def __init__(self, arg1):
"""Method docstring."""
self.messageList = arg1
def getMessageList(self):
return self.messageList
def checkMessages(received):
global messages
return Messages(messages[received:len(messages)])
#programme principal
messages = ["salut", "cava"]
package chatserver;
import java.util.ArrayList;
import java.util.List;
public class Messages {
private List<String> messageList = new ArrayList<String>();
public Messages() {}
public Messages(List<String> l)
{
this.messageList = l;
}
public List<String> getMessageList() {
return messageList;
}
public void setMessageList(List<String> messageList) {
this.messageList = messageList;
}
}
