Cannot integrate Jira/Confluence/Bitbucket Server and Hipchat Server/Data Center with ClientHandlerException
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
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.
*Fisheye および Crucible は除く
問題
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.
診断
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
原因
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.
回避策
On the Jira/Confluence/Bitbucket side:
- Go to Admin > Manage add-ons
- Search for Hipchat in the system add-ons
- Disable all three Hipchat plugins
- Enable all three plugins again