{"action":"created","issue":{"url":"https://api.github.com/repos/restlet/restlet-framework-java/issues/1004","labels_url":"https://api.github.com/repos/restlet/restlet-framework-java/issues/1004/labels{/name}","comments_url":"https://api.github.com/repos/restlet/restlet-framework-java/issues/1004/comments","events_url":"https://api.github.com/repos/restlet/restlet-framework-java/issues/1004/events","html_url":"https://github.com/restlet/restlet-framework-java/issues/1004","id":54077643,"number":1004,"title":"npe in ClientInvocationHandler","user":{"login":"philippeu","id":6884255,"avatar_url":"https://avatars.githubusercontent.com/u/6884255?v=3","gravatar_id":"","url":"https://api.github.com/users/philippeu","html_url":"https://github.com/philippeu","followers_url":"https://api.github.com/users/philippeu/followers","following_url":"https://api.github.com/users/philippeu/following{/other_user}","gists_url":"https://api.github.com/users/philippeu/gists{/gist_id}","starred_url":"https://api.github.com/users/philippeu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philippeu/subscriptions","organizations_url":"https://api.github.com/users/philippeu/orgs","repos_url":"https://api.github.com/users/philippeu/repos","events_url":"https://api.github.com/users/philippeu/events{/privacy}","received_events_url":"https://api.github.com/users/philippeu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/restlet/restlet-framework-java/labels/Module:%20Restlet%20Engine","name":"Module: Restlet Engine","color":"fbca04"},{"url":"https://api.github.com/repos/restlet/restlet-framework-java/labels/Priority:%20high","name":"Priority: high","color":"eb6420"},{"url":"https://api.github.com/repos/restlet/restlet-framework-java/labels/State:%20analysis","name":"State: analysis","color":"009800"},{"url":"https://api.github.com/repos/restlet/restlet-framework-java/labels/Type:%20bug","name":"Type: bug","color":"bfe5bf"}],"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":{"url":"https://api.github.com/repos/restlet/restlet-framework-java/milestones/34","labels_url":"https://api.github.com/repos/restlet/restlet-framework-java/milestones/34/labels","id":849865,"number":34,"title":"2.3.1","description":"","creator":{"login":"jlouvel","id":374450,"avatar_url":"https://avatars.githubusercontent.com/u/374450?v=3","gravatar_id":"","url":"https://api.github.com/users/jlouvel","html_url":"https://github.com/jlouvel","followers_url":"https://api.github.com/users/jlouvel/followers","following_url":"https://api.github.com/users/jlouvel/following{/other_user}","gists_url":"https://api.github.com/users/jlouvel/gists{/gist_id}","starred_url":"https://api.github.com/users/jlouvel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlouvel/subscriptions","organizations_url":"https://api.github.com/users/jlouvel/orgs","repos_url":"https://api.github.com/users/jlouvel/repos","events_url":"https://api.github.com/users/jlouvel/events{/privacy}","received_events_url":"https://api.github.com/users/jlouvel/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":1,"state":"open","created_at":"2014-11-02T06:43:31Z","updated_at":"2015-01-29T07:54:32Z","due_on":"2015-01-26T08:00:00Z","closed_at":null},"comments":5,"created_at":"2015-01-12T16:54:49Z","updated_at":"2015-02-02T14:33:24Z","closed_at":null,"body":"ClientInvocationHandler is expecting a Status annotation and will throw NPE if not present.\r\n\r\n```java\r\nfor (Class<?> clazz : javaMethod.getExceptionTypes()) {\r\n    ThrowableAnnotationInfo tai = getThrowableAnnotationInfo(clazz);\r\n    // tai could be null here\r\n    if (tai.getStatus().getCode() == errorCode) {\r\n        return tai;\r\n    }\r\n}\r\n```\r\nin addition, if the annotation is there, it is expecting the response is StatusInfo\r\n\r\n```java\r\n// explicit deserialization to StatusInfo\r\nStatusInfo si = getClientResource().toObject(response.getEntity(), StatusInfo.class);\r\n```"},"comment":{"url":"https://api.github.com/repos/restlet/restlet-framework-java/issues/comments/72466459","html_url":"https://github.com/restlet/restlet-framework-java/issues/1004#issuecomment-72466459","issue_url":"https://api.github.com/repos/restlet/restlet-framework-java/issues/1004","id":72466459,"user":{"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},"created_at":"2015-02-02T14:33:24Z","updated_at":"2015-02-02T14:33:24Z","body":"Hi @philippeu , another issue related to yours. I've added a comment.\r\nI expection a decision quite quickly."}}