Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-118285

AMDefaultImageScaler.scaleImage shows insufficient information when RenderedImageUtil.getRenderedImageContentStream fails

    Details

      Description

      If for whatever reason an IOException is thrown when calling RenderedImageUtil.getRenderedImageContentStream from AMDefaultImageScaler.scaleImage no information regarding the failing file entry is traced, showing an exception like:

      Jul 21 15:54:20.973 build-856 [liferay-64bf7bcd55-gd765] javax.imageio.IIOException: Bogus input colorspace
      at com.sun.imageio.plugins.jpeg.JPEGImageWriter.writeImage(Native Method)
      at com.sun.imageio.plugins.jpeg.JPEGImageWriter.writeOnThread(JPEGImageWriter.java:999)
      at com.sun.imageio.plugins.jpeg.JPEGImageWriter.write(JPEGImageWriter.java:363)
      at javax.imageio.ImageWriter.write(ImageWriter.java:615)
      at javax.imageio.ImageIO.doWrite(ImageIO.java:1612)
      at javax.imageio.ImageIO.write(ImageIO.java:1578)
      at com.liferay.portal.image.ImageToolImpl.write(ImageToolImpl.java:810)
      at com.liferay.portal.kernel.image.ImageToolUtil.write(ImageToolUtil.java:282)
      at com.liferay.adaptive.media.image.internal.util.RenderedImageUtil.getRenderedImageContentStream(RenderedImageUtil.java:49)
      at com.liferay.adaptive.media.image.internal.scaler.AMDefaultImageScaler.scaleImage(AMDefaultImageScaler.java:64)
      at com.liferay.adaptive.media.image.internal.processor.AMImageProcessorImpl.process(AMImageProcessorImpl.java:119)
      at com.liferay.adaptive.media.document.library.web.internal.optimizer.DLAMImageOptimizer.lambda$_optimize$1(DLAMImageOptimizer.java:151)
      at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.performAction(DefaultActionableDynamicQuery.java:394)
      at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery$1.call(DefaultActionableDynamicQuery.java:306)
      at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery$1.call(DefaultActionableDynamicQuery.java:268)
      at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.doPerformActions(DefaultActionableDynamicQuery.java:326)
      at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.performActions(DefaultActionableDynamicQuery.java:86)
      at com.liferay.adaptive.media.document.library.web.internal.optimizer.DLAMImageOptimizer._optimize(DLAMImageOptimizer.java:165)
      at com.liferay.adaptive.media.document.library.web.internal.optimizer.DLAMImageOptimizer.optimize(DLAMImageOptimizer.java:87)
      at com.liferay.adaptive.media.web.internal.optimizer.AMImageOptimizerUtil.optimize(AMImageOptimizerUtil.java:74)
      at com.liferay.adaptive.media.web.internal.background.task.OptimizeImagesSingleConfigurationBackgroundTaskExecutor.optimizeImages(OptimizeImagesSingleConfigurationBackgroundTaskExecutor.java:40)
      at com.liferay.adaptive.media.web.internal.background.task.OptimizeImagesBackgroundTaskExecutor.execute(OptimizeImagesBackgroundTaskExecutor.java:55)
      at com.liferay.portal.background.task.internal.SerialBackgroundTaskExecutor.execute(SerialBackgroundTaskExecutor.java:62)
      at com.liferay.portal.kernel.backgroundtask.DelegatingBackgroundTaskExecutor.execute(DelegatingBackgroundTaskExecutor.java:41)
      at com.liferay.portal.background.task.internal.ThreadLocalAwareBackgroundTaskExecutor.execute(ThreadLocalAwareBackgroundTaskExecutor.java:72)
      at com.liferay.portal.background.task.internal.messaging.BackgroundTaskMessageListener.doReceive(BackgroundTaskMessageListener.java:131)
      at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
      at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
      at com.liferay.portal.messaging.internal.ParallelDestination$1.run(ParallelDestination.java:56)
      at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:752)
      at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:664)
      at java.lang.Thread.run(Thread.java:748)
      

        Attachments

          Activity

            People

            Assignee:
            jeremy.chen Jeremy Chen
            Reporter:
            mariano.alvaro Mariano Álvaro
            Participants of an Issue:
            Recent user:
            Yunlin "Steven" Sun
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 7 weeks, 2 days ago

                Packages

                Version Package
                7.1.10 DXP FP19
                7.1.10.5 SP5
                7.1.X
                7.2.10 DXP FP8
                7.2.10.3 DXP SP3
                7.2.X
                7.3.4 CE GA5
                7.3.10 DXP GA1
                Master