Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-21418

CMMException causes image attachment thumbnails to not appear

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Tracked Elsewhere
    • Icon: Medium Medium
    • None
    • 3.3.2, 3.4.1
    • None
    • Oracle JDK 1.6.0_19-b04, 1.6.0_17-b04
      JIRA Studio 2.3.1

      Some images suspected to contain EXIF data do not appear as thumbnails in gallery macro, image browser, etc.

      The attached file large2.jpg can be used to reproduce this problem. Another file large2_fixed.jpg is the one that is fixed using the workaround in the aforementioned KB.

      2010-12-07 17:25:11,428 ERROR [http-8341-5] [[Standalone].[localhost].[/].[file-server]] log Servlet.service() for servlet file-server threw exception
      java.awt.color.CMMException: Invalid image format
      	at sun.awt.color.CMM.checkStatus(CMM.java:131)
      	at sun.awt.color.ICC_Transform.<init>(ICC_Transform.java:89)
      	at java.awt.image.ColorConvertOp.filter(ColorConvertOp.java:516)
      	at com.sun.imageio.plugins.jpeg.JPEGImageReader.acceptPixels(JPEGImageReader.java:1102)
      	at com.sun.imageio.plugins.jpeg.JPEGImageReader.readImage(Native Method)
      	at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageReader.java:1070)
      	at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.java:885)
      	at javax.imageio.ImageIO.read(ImageIO.java:1422)
      	at javax.imageio.ImageIO.read(ImageIO.java:1326)
      	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.confluence.pages.thumbnail.DefaultThumbnailManager.getThumbnail(DefaultThumbnailManager.java:108)
      	at com.atlassian.confluence.importexport.resource.ThumbnailDownloadResourceManager.getResourceReader(ThumbnailDownloadResourceManager.java:44)
      	at com.atlassian.confluence.importexport.resource.DelegatorDownloadResourceManager.getResourceReaderFromDelegate(DelegatorDownloadResourceManager.java:75)
      	at com.atlassian.confluence.importexport.resource.DelegatorDownloadResourceManager.getResourceReader(DelegatorDownloadResourceManager.java:32)
      	at com.atlassian.confluence.servlet.download.AttachmentDownload.getStreamForDownload(AttachmentDownload.java:65)
      	at com.atlassian.confluence.servlet.download.ServeAfterTransactionDownload$StreamResultCallback.doInTransaction(ServeAfterTransactionDownload.java:140)
      

        1. large2_fixed.jpg
          large2_fixed.jpg
          580 kB
        2. large2.jpg
          large2.jpg
          633 kB

              ssaasen Stefan Saasen (Inactive)
              amohdaris Azwandi Mohd Aris (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: