Cannot integrate Jira/Confluence/Bitbucket Server and Hipchat Server/Data Center with ClientHandlerException

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

When integrating Hipchat Server/Data Center with Jira, Confluence or Bitbucket Server, and after the installation is approved from the Hipchat side, the install fails with this warning in the UI (Bitbucket is used in this example): 

Error encountered creating your Hipchat link

Something went wrong integrating Bitbucket and Hipchat. We probably had trouble connecting to the Hipchat server. Check that the connection between your server and Hipchat is working correctly and try again.

Try uninstalling the existing integration from Hipchat before trying again.

Diagnosis

Check for this exception in the Jira/Confluence/Bitbucket log:

2017-09-21 08:00:53,540 WARN  [http-nio-7990-exec-10] admin @D031DYx480x3133x0 t6k92o 134.76.126.13,0:0:0:0:0:0:0:1 "POST /rest/hipchat/integration/latest/installation/complete HTTP/1.1" c.a.p.h.rest.HipChatLinkResource Installation failed. com.sun.jersey.api.client.ClientHandlerException: com.sun.jersey.api.client.ClientHandlerException: A message body writer for Java type, class com.sun.jersey.api.representation.Form, and MIME media type, application/octet-stream, was not found com.sun.jersey.api.client.ClientHandlerException: com.sun.jersey.api.client.ClientHandlerException: A message body writer for Java type, class com.sun.jersey.api.representation.Form, and MIME media type, application/octet-stream, was not found

Cause

The root cause of the issue is unknown. We've seen it occurring following an upgrade when the integration is also updated and we suspect it's related to the old plugin cache. 

Workaround

On the Jira/Confluence/Bitbucket side: 

  1. Go to Admin > Manage add-ons
  2. Search for Hipchat in the system add-ons
  3. Disable all three Hipchat plugins



  4. Enable all three plugins again
Last modified on Jan 19, 2018

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.