Thumbnails Fail to Render Due to OutOfMemoryError when Viewing an Issue

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

Unable to render {include} The included page could not be found.

症状

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)
...

原因

JIRA is using Java JDK 1.5, which is not compatible with this operation, as in our Supported Platforms.

ソリューション

Upgrade to Java JDK 1.6.

 

 

最終更新日 2017 年 7 月 26 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.