Creating a Confluence Gadget in JIRA Fails

Still need help?

The Atlassian Community is here for you.

Ask the community

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

  1. Disable GZip compression in JIRA as in Configuring JIRA Options.
  2. Disable HTTP Compression in Confluence as described in Compressing an HTTP Response within Confluence.
Last modified on Apr 7, 2016

Was this helpful?

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