Hi,
I am trying to modify AccountsResource in sample 
org.restlet.example.book.restlet.ch03.sec3 to have the method represent() 
returning a List<String> instead of a String containing all accounts.

I got a converter service error:
org.restlet.service.ConverterService toObject
ATTENTION: Unable to find a converter for this representation : 
[application/x-java-serialized-object]

As List<T> interface does not extends Serializable, I modified represent() to 
return a LinkList<String> without success.
I also tried to override method ServerResource.get() to enforce an 
ObjectRepresentation<U>, but I can't make it work either.

Having the client/server exchanging Serializable object would be fine for me as 
I latter expect to exchange large objects that would most probably be more 
compact in binary form over the network. 

Any suggestion to deal with this error?
Thanks in advance,
Martin

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2908993

Attachment: AccountsServerResource.java
Description: Binary data

Reply via email to