Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-6278

Error logged when "No thumbnail present in file" even though this is normal

    Details

    • Bug Priority:
      Category 4

      Description

      With the introduction of OOXMLThumbnailContentTransformer (in 4.0), this transformer now throws an exception that is logged as an error (with a full stack trace) even though the exception is only intended to be used to force a failover to another (slower) transformer that succeeds.

      To test, upload a docx without an embedded thumbnail and transform to jpeg (set up a rule on a folder), then check the log. The log (if debug is enabled log4j.logger.org.alfresco.repo.content.ContentServiceImpl=debug) should include the line:

      DEBUG [org.alfresco.repo.content.ContentServiceImpl] Transformer succeeded after previous transformer failed: 99999999 No thumbnail present in file, unable to generate image/XXXX

      However it contains:

      ERROR [org.alfresco.repo.content.ContentServiceImpl] Transformer succeeded after previous transformer failed.
      org.alfresco.service.cmr.repository.ContentIOException: 08030143 Content conversion failed:
      reader: ContentAccessor[ contentUrl=store://2012/9/3/13/21/f050f0d4-a5ac-4eaa-93d3-bd1a47fbee2d.bin, mimetype=application/vnd.openxmlformats-officedocument.wordprocessingml.document, size=366516, encoding=UTF-8, locale=en_GB]
      writer: ContentAccessor[ contentUrl=store://D:\Installs\ALFRES~1.1-B\tomcat\temp\Alfresco\FailoverTransformer_intermediate_OOXMLThumbnailContentTransformer_3051272724847863748.jpg, mimetype=image/jpeg, size=0, encoding=UTF-8, locale=en_GB]
      options:

      {targetContentProperty=null, contentReaderNodeRef=workspace://SpacesStore/9a1fce19-c0a0-4716-bc60-d7e344782139, contentWriterNodeRef=workspace://SpacesStore/f15cd44d-cd3d-4fe0-8839-69311ef2344c, imageResizeOptions=ImageResizeOptions [width=100, height=100, maintainAspectRatio=true, percentResize=false, resizeToThumbnail=false, allowEnlargement=false], sourceContentProperty=null, includeEmbedded=false, imageCropOptions=null, commandOptions=, imageAutoOrient=true}

      limits:

      {timeoutMs=120000, maxPages=-1, readLimitKBytes=-1, maxSourceSizeKBytes=-1, pageLimit=1, readLimitTimeMs=-1}

      at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:272)
      at org.alfresco.repo.content.ContentServiceImpl.failoverTransformers(ContentServiceImpl.java:668)
      at org.alfresco.repo.content.ContentServiceImpl.transform(ContentServiceImpl.java:617)
      at org.alfresco.repo.content.transform.ComplexContentTransformer.transformInternal(ComplexContentTransformer.java:477)
      at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:238)
      ...
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
      Caused by: org.alfresco.error.AlfrescoRuntimeException: 08030142 No thumbnail present in file, unable to generate image/jpeg
      at org.alfresco.repo.content.transform.OOXMLThumbnailContentTransformer.transformInternal(OOXMLThumbnailContentTransformer.java:110)
      at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:238)
      ... 91 more

        Attachments

          Activity

            People

            • Assignee:
              closedbugs Closed Bugs
              Reporter:
              adavis Alan Davis
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: