com.sun.jersey.api.client.ClientHandlerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • This build failed : https://confluence-bamboo.internal.atlassian.com/browse/CONFFUNC-MAINM3-BATCH06-330/test/case/609899714 with this error on the client side {code} com.sun.jersey.api.client.ClientHandlerException: A message body reader for Java class com.atlassian.confluence.api.model.content.Content, and Java type class com.atlassian.confluence.api.model.content.Content, and MIME media type application/octet-stream was not found at com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:549) at com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:506) at com.sun.jersey.api.client.WebResource.handle(WebResource.java:674) at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74) at com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:563) at com.atlassian.confluence.rest.client.AbstractRemoteService.post(AbstractRemoteService.java:343) at com.atlassian.confluence.rest.client.AbstractRemoteService.access$300(AbstractRemoteService.java:39) at com.atlassian.confluence.rest.client.AbstractRemoteService$5.call(AbstractRemoteService.java:150) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:253) at com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:55) at com.atlassian.confluence.rest.client.PromisingExecutorService.submit(PromisingExecutorService.java:65) at com.atlassian.confluence.rest.client.AbstractRemoteService.postFuture(AbstractRemoteService.java:145) at com.atlassian.confluence.rest.client.AbstractRemoteService.postFuture(AbstractRemoteService.java:140) at com.atlassian.confluence.rest.client.RemoteContentServiceImpl.create(RemoteContentServiceImpl.java:198) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.atlassian.confluence.rest.client.proxy.RemoteServiceProxyCreator$1.invoke(RemoteServiceProxyCreator.java:59) at com.sun.proxy.$Proxy15.create(Unknown Source) at com.atlassian.confluence.it.rpc.delegates.ContentRpc.createPage(ContentRpc.java:83) at com.atlassian.confluence.it.rpc.ConfluenceRpc.createPage(ConfluenceRpc.java:624) at com.atlassian.confluence.it.rpc.ConfluenceRpc.createPage(ConfluenceRpc.java:605) at com.atlassian.confluence.MacroDiffAcceptanceTest.setUp(MacroDiffAcceptanceTest.java:43) {code} and the following stack on the server: {code} 2014-03-05 03:22:11,794 DEBUG [http-bio-47362-exec-5] [atlassian.seraph.auth.DefaultAuthenticator] getUserFromCookie getUserFromCookie : Got username : 'null' from cookie, attempting to authenticate user is known 2014-03-05 03:22:11,795 DEBUG [http-bio-47362-exec-5] [atlassian.seraph.auth.DefaultAuthenticator] getUserFromBasicAuthentication getUserFromSession : Looking in Basic Auth headers 2014-03-05 03:22:11,797 DEBUG [http-bio-47362-exec-5] [atlassian.seraph.auth.DefaultAuthenticator] getUserFromBasicAuthentication getUserFromSession : 'admin' does not require elevated security check. Attempting authentication... 2014-03-05 03:22:11,806 DEBUG [http-bio-47362-exec-5] [atlassian.seraph.auth.DefaultAuthenticator] login login : 'admin' has been authenticated 2014-03-05 03:22:11,807 ERROR [http-bio-47362-exec-5] [confluence.web.filter.DebugFilter] getSession HttpServletRequest#getSession has been invoked after the response has been committed for URI /confluence/rest/api/content 2014-03-05 03:22:11,811 ERROR [http-bio-47362-exec-5] [[Catalina].[localhost].[/confluence].[noop]] log Servlet.service() for servlet [noop] in context with path [/confluence] threw exception java.lang.IllegalStateException: Cannot create a session after the response has been committed at org.apache.catalina.connector.Request.doGetSession(Request.java:2921) at org.apache.catalina.connector.Request.getSession(Request.java:2318) at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:899) at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:229) at com.atlassian.confluence.web.filter.DebugFilter$DebugHttpServletRequestWrapper.getSession(DebugFilter.java:105) at com.atlassian.plugin.servlet.PluginHttpRequestWrapper.getSession(PluginHttpRequestWrapper.java:146) at com.atlassian.plugin.servlet.PluginHttpRequestWrapper.getSession(PluginHttpRequestWrapper.java:146) at com.atlassian.plugin.servlet.PluginHttpRequestWrapper.getSession(PluginHttpRequestWrapper.java:146) at com.atlassian.plugin.servlet.PluginHttpRequestWrapper.getSession(PluginHttpRequestWrapper.java:146) at com.atlassian.plugin.servlet.PluginHttpRequestWrapper.getSession(PluginHttpRequestWrapper.java:146) at com.atlassian.plugin.servlet.PluginHttpRequestWrapper.getSession(PluginHttpRequestWrapper.java:146) at com.atlassian.plugin.servlet.PluginHttpRequestWrapper.getSession(PluginHttpRequestWrapper.java:146) at com.atlassian.plugin.servlet.PluginHttpRequestWrapper.getSession(PluginHttpRequestWrapper.java:140) at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:238) at com.atlassian.confluence.security.seraph.ConfluenceAuthenticatorUtils.isPrincipalAlreadyInSessionContext(ConfluenceAuthenticatorUtils.java:29) at com.atlassian.confluence.user.ConfluenceAuthenticator.isPrincipalAlreadyInSessionContext(ConfluenceAuthenticator.java:92) at com.atlassian.seraph.auth.DefaultAuthenticator.authoriseUserAndEstablishSession(DefaultAuthenticator.java:192) at com.atlassian.confluence.user.ConfluenceAuthenticator.authoriseUserAndEstablishSession(ConfluenceAuthenticator.java:147) at com.atlassian.seraph.auth.DefaultAuthenticator.login(DefaultAuthenticator.java:102) at com.atlassian.confluence.user.ConfluenceAuthenticator.login(ConfluenceAuthenticator.java:53) at com.atlassian.seraph.auth.DefaultAuthenticator.getUserFromBasicAuthentication(DefaultAuthenticator.java:525) at com.atlassian.seraph.auth.DefaultAuthenticator.getUser(DefaultAuthenticator.java:336) at com.atlassian.confluence.user.ConfluenceAuthenticator.getUser(ConfluenceAuthenticator.java:135) {code}
    via by Steve Lancashire [Atlassian],
  • This build failed : https://confluence-bamboo.internal.atlassian.com/browse/CONFFUNC-MAINM3-BATCH06-330/test/case/609899714 with this error on the client side {code} com.sun.jersey.api.client.ClientHandlerException: A message body reader for Java class com.atlassian.confluence.api.model.content.Content, and Java type class com.atlassian.confluence.api.model.content.Content, and MIME media type application/octet-stream was not found at com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:549) at com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:506) at com.sun.jersey.api.client.WebResource.handle(WebResource.java:674) at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74) at com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:563) at com.atlassian.confluence.rest.client.AbstractRemoteService.post(AbstractRemoteService.java:343) at com.atlassian.confluence.rest.client.AbstractRemoteService.access$300(AbstractRemoteService.java:39) at com.atlassian.confluence.rest.client.AbstractRemoteService$5.call(AbstractRemoteService.java:150) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:253) at com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:55) at com.atlassian.confluence.rest.client.PromisingExecutorService.submit(PromisingExecutorService.java:65) at com.atlassian.confluence.rest.client.AbstractRemoteService.postFuture(AbstractRemoteService.java:145) at com.atlassian.confluence.rest.client.AbstractRemoteService.postFuture(AbstractRemoteService.java:140) at com.atlassian.confluence.rest.client.RemoteContentServiceImpl.create(RemoteContentServiceImpl.java:198) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.atlassian.confluence.rest.client.proxy.RemoteServiceProxyCreator$1.invoke(RemoteServiceProxyCreator.java:59) at com.sun.proxy.$Proxy15.create(Unknown Source) at com.atlassian.confluence.it.rpc.delegates.ContentRpc.createPage(ContentRpc.java:83) at com.atlassian.confluence.it.rpc.ConfluenceRpc.createPage(ConfluenceRpc.java:624) at com.atlassian.confluence.it.rpc.ConfluenceRpc.createPage(ConfluenceRpc.java:605) at com.atlassian.confluence.MacroDiffAcceptanceTest.setUp(MacroDiffAcceptanceTest.java:43) {code} and the following stack on the server: {code} 2014-03-05 03:22:11,794 DEBUG [http-bio-47362-exec-5] [atlassian.seraph.auth.DefaultAuthenticator] getUserFromCookie getUserFromCookie : Got username : 'null' from cookie, attempting to authenticate user is known 2014-03-05 03:22:11,795 DEBUG [http-bio-47362-exec-5] [atlassian.seraph.auth.DefaultAuthenticator] getUserFromBasicAuthentication getUserFromSession : Looking in Basic Auth headers 2014-03-05 03:22:11,797 DEBUG [http-bio-47362-exec-5] [atlassian.seraph.auth.DefaultAuthenticator] getUserFromBasicAuthentication getUserFromSession : 'admin' does not require elevated security check. Attempting authentication... 2014-03-05 03:22:11,806 DEBUG [http-bio-47362-exec-5] [atlassian.seraph.auth.DefaultAuthenticator] login login : 'admin' has been authenticated 2014-03-05 03:22:11,807 ERROR [http-bio-47362-exec-5] [confluence.web.filter.DebugFilter] getSession HttpServletRequest#getSession has been invoked after the response has been committed for URI /confluence/rest/api/content 2014-03-05 03:22:11,811 ERROR [http-bio-47362-exec-5] [[Catalina].[localhost].[/confluence].[noop]] log Servlet.service() for servlet [noop] in context with path [/confluence] threw exception java.lang.IllegalStateException: Cannot create a session after the response has been committed at org.apache.catalina.connector.Request.doGetSession(Request.java:2921) at org.apache.catalina.connector.Request.getSession(Request.java:2318) at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:899) at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:229) at com.atlassian.confluence.web.filter.DebugFilter$DebugHttpServletRequestWrapper.getSession(DebugFilter.java:105) at com.atlassian.plugin.servlet.PluginHttpRequestWrapper.getSession(PluginHttpRequestWrapper.java:146) at com.atlassian.plugin.servlet.PluginHttpRequestWrapper.getSession(PluginHttpRequestWrapper.java:146) at com.atlassian.plugin.servlet.PluginHttpRequestWrapper.getSession(PluginHttpRequestWrapper.java:146) at com.atlassian.plugin.servlet.PluginHttpRequestWrapper.getSession(PluginHttpRequestWrapper.java:146) at com.atlassian.plugin.servlet.PluginHttpRequestWrapper.getSession(PluginHttpRequestWrapper.java:146) at com.atlassian.plugin.servlet.PluginHttpRequestWrapper.getSession(PluginHttpRequestWrapper.java:146) at com.atlassian.plugin.servlet.PluginHttpRequestWrapper.getSession(PluginHttpRequestWrapper.java:146) at com.atlassian.plugin.servlet.PluginHttpRequestWrapper.getSession(PluginHttpRequestWrapper.java:140) at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:238) at com.atlassian.confluence.security.seraph.ConfluenceAuthenticatorUtils.isPrincipalAlreadyInSessionContext(ConfluenceAuthenticatorUtils.java:29) at com.atlassian.confluence.user.ConfluenceAuthenticator.isPrincipalAlreadyInSessionContext(ConfluenceAuthenticator.java:92) at com.atlassian.seraph.auth.DefaultAuthenticator.authoriseUserAndEstablishSession(DefaultAuthenticator.java:192) at com.atlassian.confluence.user.ConfluenceAuthenticator.authoriseUserAndEstablishSession(ConfluenceAuthenticator.java:147) at com.atlassian.seraph.auth.DefaultAuthenticator.login(DefaultAuthenticator.java:102) at com.atlassian.confluence.user.ConfluenceAuthenticator.login(ConfluenceAuthenticator.java:53) at com.atlassian.seraph.auth.DefaultAuthenticator.getUserFromBasicAuthentication(DefaultAuthenticator.java:525) at com.atlassian.seraph.auth.DefaultAuthenticator.getUser(DefaultAuthenticator.java:336) at com.atlassian.confluence.user.ConfluenceAuthenticator.getUser(ConfluenceAuthenticator.java:135) {code}
    via by Steve Lancashire [Atlassian],
  • Problem using the Activiti Rest web services
    via Stack Overflow by Elio
    ,
  • jersey text/html message body writer missing
    via Stack Overflow by Isuru
    ,
  • jersey web client exception
    via Stack Overflow by Waqas Ali
    ,
    • com.sun.jersey.api.client.ClientHandlerException: A message body reader for Java class com.atlassian.confluence.api.model.content.Content, and Java type class com.atlassian.confluence.api.model.content.Content, and MIME media type application/octet-stream was not found at com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:549) at com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:506) at com.sun.jersey.api.client.WebResource.handle(WebResource.java:674) at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74) at com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:563) at com.atlassian.confluence.rest.client.AbstractRemoteService.post(AbstractRemoteService.java:343) at com.atlassian.confluence.rest.client.AbstractRemoteService.access$300(AbstractRemoteService.java:39) at com.atlassian.confluence.rest.client.AbstractRemoteService$5.call(AbstractRemoteService.java:150) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:253) at com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:55) at com.atlassian.confluence.rest.client.PromisingExecutorService.submit(PromisingExecutorService.java:65) at com.atlassian.confluence.rest.client.AbstractRemoteService.postFuture(AbstractRemoteService.java:145) at com.atlassian.confluence.rest.client.AbstractRemoteService.postFuture(AbstractRemoteService.java:140) at com.atlassian.confluence.rest.client.RemoteContentServiceImpl.create(RemoteContentServiceImpl.java:198) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.atlassian.confluence.rest.client.proxy.RemoteServiceProxyCreator$1.invoke(RemoteServiceProxyCreator.java:59) at com.sun.proxy.$Proxy15.create(Unknown Source) at com.atlassian.confluence.it.rpc.delegates.ContentRpc.createPage(ContentRpc.java:83) at com.atlassian.confluence.it.rpc.ConfluenceRpc.createPage(ConfluenceRpc.java:624) at com.atlassian.confluence.it.rpc.ConfluenceRpc.createPage(ConfluenceRpc.java:605) at com.atlassian.confluence.MacroDiffAcceptanceTest.setUp(MacroDiffAcceptanceTest.java:43)

    Users with the same issue

    batwalrus76
    2 times, last one,
    asdasd
    16 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    25 more bugmates