Thumbnails Fail to Render Due to OutOfMemoryError when Viewing an Issue
Unable to render {include} The included page could not be found.
Symptoms
An issue has a PNG image attached to it whose filesize is larger than 102kB. While viewing that particular issue, all image file attachment thumbnails fail to render.
The following error appears in atlassian-jira.log
:
2010-06-23 15:47:14,974 http-8080-Processor17 ERROR admin 56834x36x1 1ah2m6a http://localhost:8080/browse/MLT-3 [webwork.util.ValueStack] query="/thumbnails" {[id="null" type="5" values=""]} {[id="thumbnails" type="8" values=""]}
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
...
Caused by: java.lang.OutOfMemoryError: Java heap space
at com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java:671)
at com.sun.imageio.plugins.png.PNGImageReader.readImage(PNGImageReader.java:1314)
at com.sun.imageio.plugins.png.PNGImageReader.read(PNGImageReader.java:1601)
at javax.imageio.ImageIO.read(ImageIO.java:1400)
at javax.imageio.ImageIO.read(ImageIO.java:1322)
at com.atlassian.core.util.thumbnail.Thumber.getImage(Thumber.java:281)
at com.atlassian.core.util.thumbnail.Thumber.createThumbnail(Thumber.java:241)
at com.atlassian.core.util.thumbnail.Thumber.retrieveOrCreateThumbNail(Thumber.java:215)
at com.atlassian.core.util.thumbnail.Thumber.retrieveOrCreateThumbNail(Thumber.java:86)
at com.atlassian.jira.issue.thumbnail.DefaultThumbnailManager.getThumbnail(DefaultThumbnailManager.java:104)
at com.atlassian.jira.issue.thumbnail.DefaultThumbnailManager.getThumbnails(DefaultThumbnailManager.java:50)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.atlassian.util.profiling.object.ObjectProfiler.profiledInvoke(ObjectProfiler.java:70)
at com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(SwitchingInvocationHandler.java:28)
at $Proxy96.getThumbnails(Unknown Source)
...
Cause
JIRA is using Java JDK 1.5, which is not compatible with this operation, as in our Supported Platforms.
Resolution
Upgrade to Java JDK 1.6.
Last modified on Jul 26, 2017
Powered by Confluence and Scroll Viewport.