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(JPEGImageReaderSpi.java:85)

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

        at javax.imageio.spi.ImageReaderSpi.createReaderInstance(ImageReaderSpi.java:320)

        at javax.imageio.ImageIO$ImageReaderIterator.next(ImageIO.java:529)

        at javax.imageio.ImageIO$ImageReaderIterator.next(ImageIO.java:513)

        at com.atlassian.core.util.thumbnail.ThumbnailUtil.getFirstImageReader(ThumbnailUtil.java:184)

        at com.atlassian.core.util.thumbnail.Thumber.scaleImage(Thumber.java:213)

        at com.atlassian.core.util.thumbnail.Thumber.createThumbnail(Thumber.java:291)

        at com.atlassian.core.util.thumbnail.Thumber.retrieveOrCreateThumbNail(Thumber.java:270)

        at com.atlassian.jira.issue.thumbnail.DefaultThumbnailManager$3.withInputStream(DefaultThumbnailManager.java:252)

        at com.atlassian.jira.issue.thumbnail.DefaultThumbnailManager$3.withInputStream(DefaultThumbnailManager.java:248)

        at com.atlassian.jira.issue.managers.DefaultAttachmentManager$8.get(DefaultAttachmentManager.java:874)

        at com.atlassian.jira.issue.managers.DefaultAttachmentManager$8.get(DefaultAttachmentManager.java:868)

        at com.atlassian.jira.issue.attachment.store.DefaultFileSystemAttachmentStore$2.get(DefaultFileSystemAttachmentStore.java:145)

        at com.atlassian.jira.issue.attachment.store.DefaultFileSystemAttachmentStore$2.get(DefaultFileSystemAttachmentStore.java:141)

        at com.atlassian.jira.issue.attachment.store.DefaultFileSystemAttachmentStore$3.call(DefaultFileSystemAttachmentStore.java:178)

        at com.atlassian.util.concurrent.Executors$DefaultSubmitter$CallableRunner.run(Executors.java:62)

        at com.atlassian.util.concurrent.LimitedExecutor$Runner.run(LimitedExecutor.java:93)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

        at java.lang.Thread.run(Thread.java:745)

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 https://support.atlassian.com as much information as you can!

Case moved to Atlassian support

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published 9 hours ago in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

34 views 0 3
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