{"action":"created","issue":{"url":"https://api.github.com/repos/restlet/restlet-framework-java/issues/1029","labels_url":"https://api.github.com/repos/restlet/restlet-framework-java/issues/1029/labels{/name}","comments_url":"https://api.github.com/repos/restlet/restlet-framework-java/issues/1029/comments","events_url":"https://api.github.com/repos/restlet/restlet-framework-java/issues/1029/events","html_url":"https://github.com/restlet/restlet-framework-java/issues/1029","id":58194332,"number":1029,"title":"PUT and POST not working from J2SE platform (RESTLET Version 3.0-M1)","user":{"login":"rcbeuker","id":8544013,"avatar_url":"https://avatars.githubusercontent.com/u/8544013?v=3","gravatar_id":"","url":"https://api.github.com/users/rcbeuker","html_url":"https://github.com/rcbeuker","followers_url":"https://api.github.com/users/rcbeuker/followers","following_url":"https://api.github.com/users/rcbeuker/following{/other_user}","gists_url":"https://api.github.com/users/rcbeuker/gists{/gist_id}","starred_url":"https://api.github.com/users/rcbeuker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rcbeuker/subscriptions","organizations_url":"https://api.github.com/users/rcbeuker/orgs","repos_url":"https://api.github.com/users/rcbeuker/repos","events_url":"https://api.github.com/users/rcbeuker/events{/privacy}","received_events_url":"https://api.github.com/users/rcbeuker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"thboileau","id":1122782,"avatar_url":"https://avatars.githubusercontent.com/u/1122782?v=3","gravatar_id":"","url":"https://api.github.com/users/thboileau","html_url":"https://github.com/thboileau","followers_url":"https://api.github.com/users/thboileau/followers","following_url":"https://api.github.com/users/thboileau/following{/other_user}","gists_url":"https://api.github.com/users/thboileau/gists{/gist_id}","starred_url":"https://api.github.com/users/thboileau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thboileau/subscriptions","organizations_url":"https://api.github.com/users/thboileau/orgs","repos_url":"https://api.github.com/users/thboileau/repos","events_url":"https://api.github.com/users/thboileau/events{/privacy}","received_events_url":"https://api.github.com/users/thboileau/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-02-19T11:06:26Z","updated_at":"2015-02-25T14:24:04Z","closed_at":null,"body":"I'm working on a project with GWT and J2SE clients. The GWT part is working great, but now there are problems with the J2SE client;\r\n```\r\n\"The server understands the content type of the request entity and the syntax of the request entity is correct but was unable to process the contained instructions\"\r\n\r\n\r\n\"The serialized representation must have this media type: application/x-java-serialized-object or this one: application/x-java-serialized-object+xml\"\r\n```\r\n\r\n![screen shot 2015-02-19 at 11 56 26](https://cloud.githubusercontent.com/assets/8544013/6265424/73d71a64-b82e-11e4-822e-05634154b860.png)\r\n\r\nThis code was working some months/versions ago... Both PUT and POST produce this error while GET is working. Whats wrong here? \r\n\r\nHere's a really simple test case\r\n\r\n// Shared Interface \r\n```\r\npublic interface J2SeClientServerResourceInt\r\n{\r\n    @Post(\"json\")\r\n    public J2seStatusDto postJ2seStatus(J2seStatusDto pJ2seStatusDto);\r\n}\r\n```\r\n// Java Bean\r\n```\r\npublic class J2seStatusDto implements Serializable\r\n{\r\n    private static final long serialVersionUID = 6901448809350740172L;\r\n\r\n    private String mTest;\r\n    \r\n    public J2seStatusDto()\r\n    {\r\n    }\r\n    \r\n    public J2seStatusDto(String pTest)\r\n    {\r\n        setTest(pTest); \r\n    }\r\n\r\n    public String getTest()\r\n    {\r\n        return mTest;\r\n    }\r\n\r\n    public void setTest(String pTest)\r\n    {\r\n        mTest = pTest;\r\n    }\r\n}\r\n```\r\n// Server \r\n```\r\npublic class J2seServerResource extends ClaireServerResource implements J2SeServerResourceInt\r\n{\r\n    @Override\r\n    public J2seStatusDto postJ2seStatusDto(J2seStatusDto pJ2seStatusDto)\r\n    {\r\n        return pJ2seStatusDto;\r\n    }\r\n}\r\n```\r\n// J2SE Client \r\n```\r\npublic class ClaireJsSeTestClient\r\n{\r\n    public static void main(String[] args)\r\n    {\r\n        Reference lReference = new Reference(\"http://localhost:8888//rest/j2se\");\r\n        ClientResource lClientResource = new ClientResource(lReference);\r\n        lClientResource.accept(MediaType.APPLICATION_JSON);\r\n        J2SeServerResourceInt lJ2SeServerResource = lClientResource.wrap(J2SeServerResourceInt.class);\r\n        J2seStatusDto lJ2seStatusDto = new J2seStatusDto(\"TEST\");\r\n        J2seStatusDto lJ2seResultDto = lJ2SeServerResource.postJ2seStatusDto(lJ2seStatusDto);\r\n    }\r\n}\r\n```\r\n// Maven J2Se Client\r\n```\r\n   <dependencies>\r\n        <dependency>\r\n            <groupId>org.restlet.jse</groupId>\r\n            <artifactId>org.restlet</artifactId>\r\n            <version>3.0-M1</version>\r\n        </dependency>\r\n        <dependency>\r\n            <groupId>org.restlet.jse</groupId>\r\n            <artifactId>org.restlet.ext.jackson</artifactId>\r\n            <version>3.0-M1</version>\r\n        </dependency>\r\n    </dependencies>\r\n```\r\n\r\n// Maven GAE Server\r\n```\r\n       <dependency>\r\n            <groupId>org.restlet.gae</groupId>\r\n            <artifactId>org.restlet</artifactId>\r\n            <version>3.0-M1</version>\r\n        </dependency>\r\n        <dependency>\r\n            <groupId>org.restlet.gae</groupId>\r\n            <artifactId>org.restlet.ext.servlet</artifactId>\r\n            <version>3.0-M1</version>\r\n        </dependency>\r\n        <dependency>\r\n            <groupId>org.restlet.gae</groupId>\r\n            <artifactId>org.restlet.ext.jackson</artifactId>\r\n            <version>3.0-M1</version>\r\n        </dependency>\r\n        <dependency>\r\n            <groupId>org.restlet.gae</groupId>\r\n            <artifactId>org.restlet.ext.gwt</artifactId>\r\n            <version>3.0-M1</version>\r\n        </dependency>\r\n        <dependency>\r\n            <groupId>org.restlet.gwt</groupId>\r\n            <artifactId>org.restlet</artifactId>\r\n            <version>3.0-M1</version>\r\n            <scope>compile</scope>\r\n        </dependency>\r\n```"},"comment":{"url":"https://api.github.com/repos/restlet/restlet-framework-java/issues/comments/75967491","html_url":"https://github.com/restlet/restlet-framework-java/issues/1029#issuecomment-75967491","issue_url":"https://api.github.com/repos/restlet/restlet-framework-java/issues/1029","id":75967491,"user":{"login":"rcbeuker","id":8544013,"avatar_url":"https://avatars.githubusercontent.com/u/8544013?v=3","gravatar_id":"","url":"https://api.github.com/users/rcbeuker","html_url":"https://github.com/rcbeuker","followers_url":"https://api.github.com/users/rcbeuker/followers","following_url":"https://api.github.com/users/rcbeuker/following{/other_user}","gists_url":"https://api.github.com/users/rcbeuker/gists{/gist_id}","starred_url":"https://api.github.com/users/rcbeuker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rcbeuker/subscriptions","organizations_url":"https://api.github.com/users/rcbeuker/orgs","repos_url":"https://api.github.com/users/rcbeuker/repos","events_url":"https://api.github.com/users/rcbeuker/events{/privacy}","received_events_url":"https://api.github.com/users/rcbeuker/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T14:24:04Z","updated_at":"2015-02-25T14:24:04Z","body":"No updates on this situation? Is this a fault from our side or is the problem reproducible? Right now, all our J2Se clients are down... :( "}}