Creating a Confluence Gadget in JIRA Fails
Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.
Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles for non-Data Center-specific features may also work for Server versions of the product, however they have not been tested. 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
Symptoms
Adding a Confluence Page Gadget to the JIRA Dashboard fails with the below error:
The following appears in the atlassian-jira.log
:
2013-04-15 12:28:58,035 http-bio-8080-exec-22 ERROR captain.planet 748x116340x1 1skg2vg 10.80.0.97,127.0.0.1 /plugins/servlet/gadgets/makeRequest [renderer.internal.http.HttpClientFetcher] Unable to retrieve response
java.io.EOFException
at java.util.zip.GZIPInputStream.readUByte(GZIPInputStream.java:264)
at java.util.zip.GZIPInputStream.readUShort(GZIPInputStream.java:254)
at java.util.zip.GZIPInputStream.readHeader(GZIPInputStream.java:163)
at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:78)
at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:90)
at com.atlassian.gadgets.renderer.internal.http.HttpClientFetcher$GzipDecompressingEntity.decorate(HttpClientFetcher.java:251)
at com.atlassian.gadgets.renderer.internal.http.HttpClientFetcher$InputStreamDecoratingHttpEntity.getContent(HttpClientFetcher.java:232)
at org.apache.http.conn.BasicManagedEntity.getContent(BasicManagedEntity.java:87)
Cause
JIRA is connecting to Confluence through a reverse-proxy that has GZip compression enabled. As both JIRA and Confluence also have GZip compression enabled this is causing problems as double compression is applied.
Resolution
- Disable GZip compression in JIRA as in Configuring JIRA Options.
- Disable HTTP Compression in Confluence as described in Compressing an HTTP Response within Confluence.