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

0 votes
Accepted answer

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 votes

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 votes

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
Community showcase
Posted Oct 09, 2018 in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

222 views 6 0
Join discussion

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