OneCoder在Restlet 2.1.4中 匪夷所思的ObjectRepresentation的构造函数中,提到过在使用2.1.4的时候遇到的异常

Exception in thread "main" java.lang.IllegalArgumentException : The serialized representation must have this media type: application/x-java-serialized-object or this one: application/x-java-serialized-object+xml
          at org.restlet.representation.ObjectRepresentation.<init>(
     at org.restlet.representation.ObjectRepresentation.<init>(



thansk a lot for reporting this issue which is clearly a regression. I've added a ticket for that point:
The fix will be part of the 2.1.6 release, available in a few minutes.

Best regards,
Thierry Boileau

今天想起,登录了一下Restlet的官方,发现最新版已经是2.1.6了。查看了一些change log,发现该问题确实已经解决。

Changes log  

- 2.1.6 (12/05/2013)
    - Bug fixed
       - Fixed issue #809 regression introduced when handling issues #774 and #778.



Thanks a lot.