Can not attach jpg files

6.4.11#64026-sha1:78f6ec4 version of jira. We can not attach such type file, txt, pdf etc works fine, but not jpg pr jpeg. IF I attach and save, it will goes to time out and: We have server version of JIRA (not cloud)

Unexpected error


There was an unexpected error while loading the issue.

If you think this message is wrong, please contact your JIRA administrators.

After that it is not possible to open that issue any more. I can see the issue in backlog (or active sprint) but if I click it , it goes to timeout.


 If I try to export it to excel, excel can not download it.

We just updated to this version of jira. Old jpg/jpeg files will open (attached before this update)


5 answers

1 accepted

RESOLUTION: (this works for us)

It indicated that Java could not locate the appropriate class, we need to force JIRA to build all cache again by doing few steps below:

  1. Shutdown JIRA
  2. Delete everything under work folder inside JIRA_INSTALL directory (e.g. $JIRA_INSTALLATION/work/* )
  3. Restart JIRA
0 vote

Could you look at the atlassian-jira.log file and see what errors are logged in there at the time a jpg upload fails?

ception in thread "file-attachment-store:thread-489" java.lang.NoClassDefFoundError: Could not initialize class com.sun.imageio.plugins.jpeg.JPEGImageReader

        at com.sun.imageio.plugins.jpeg.JPEGImageReaderSpi.createReaderInstance(

        at com.twelvemonkeys.imageio.plugins.jpeg.JPEGImageReaderSpi.createReaderInstance(Unknown Source)

        at javax.imageio.spi.ImageReaderSpi.createReaderInstance(

        at javax.imageio.ImageIO$

        at javax.imageio.ImageIO$

        at com.atlassian.core.util.thumbnail.ThumbnailUtil.getFirstImageReader(

        at com.atlassian.core.util.thumbnail.Thumber.scaleImage(

        at com.atlassian.core.util.thumbnail.Thumber.createThumbnail(

        at com.atlassian.core.util.thumbnail.Thumber.retrieveOrCreateThumbNail(

        at com.atlassian.jira.issue.thumbnail.DefaultThumbnailManager$3.withInputStream(

        at com.atlassian.jira.issue.thumbnail.DefaultThumbnailManager$3.withInputStream(

        at com.atlassian.jira.issue.managers.DefaultAttachmentManager$8.get(

        at com.atlassian.jira.issue.managers.DefaultAttachmentManager$8.get(




        at com.atlassian.util.concurrent.Executors$DefaultSubmitter$

        at com.atlassian.util.concurrent.LimitedExecutor$

        at java.util.concurrent.ThreadPoolExecutor.runWorker(

        at java.util.concurrent.ThreadPoolExecutor$


0 vote

Ah, I think I've seen this before.

Could you go to the JIRA "System information" page under the admin section and look at the Java related stuff - specifically, what Java is running and what version it is?

Java Version1.8.0_77
Java VendorOracle Corporation
JVM Version1.8
JVM VendorOracle Corporation
JVM Implementation Version25.77-b03
Java RuntimeJava(TM) SE Runtime Environment
Java VMJava HotSpot(TM) 64-Bit Server VM

Bother.  When I saw this, it was because the wrong JVM was in use.  But yours is fine.

I think this one needs to go to Atlassian support - I can't replicate it, and I can't find any reason why it's failing.  I'd give as much information as you can!

Case moved to Atlassian support

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Confluence

Three common content challenges + how to manage them

An efficient enterprise content management system, or ECM, is a must-have for companies that create work online (cough   cough, all companies). If content calendars, marketing plans, and bu...

91 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you