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

java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.ImageFormatException

    Details

      Description

      After upgrading Liferay IDE 6.2 GA4 to GA6, when editing web content (based on structures with images), the browser gives the following message: "This website is not available ERR_CONTENT_DECODING_FAILED.". However, in the log catalina.out sends the following error:

      PM org.apache.catalina.core.ApplicationDispatcher invoke
      GRAVE: El Servlet.service() para servlet Main Servlet lanzó una excepción
      java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.ImageFormatException
              at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
              at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
              at com.sun.media.jai.codecimpl.JPEGImageDecoder.decodeAsRenderedImage(JPEGImageDecoder.java:46)
              at com.sun.media.jai.codec.ImageDecoderImpl.decodeAsRenderedImage(ImageDecoderImpl.java:140)
              at com.liferay.portal.image.ImageToolImpl.read(ImageToolImpl.java:580)
              at com.liferay.portal.image.ImageToolImpl.read(ImageToolImpl.java:424)
              at com.liferay.portal.image.ImageToolImpl.getImage(ImageToolImpl.java:351)
              at com.liferay.portal.kernel.image.ImageToolUtil.getImage(ImageToolUtil.java:144)
              at com.liferay.portal.service.impl.ImageLocalServiceImpl.updateImage(ImageLocalServiceImpl.java:144)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      

      ... more

      
      22:17:41,290 WARN  [ajp-bio-8009-exec-41][code_jsp:130] {code="500", msg="", uri=/group/control_panel/manage}
      javax.servlet.ServletException: La ejecución del Servlet lanzó una excepción
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:326)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
              at org.ap
      
      

      The content that I want to change is based on a data structure. In the structure I have an image field (WCM-image) .
      Eliminating the image of the content instance it update web content good. If I select an image for this image-field, then it generates the error before.

      I found this previous record, but I do not see how to fix it:

      https://issues.liferay.com/browse/LPS-37906
      https://issues.liferay.com/browse/LPS-38531
      https://issues.liferay.com/browse/LPS-29365

      I try with jre-1.8.0 and jre-1.7.0 and it doesn't work.

        Attachments

          Activity

            People

            • Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 31 weeks, 1 day ago

                Packages

                Version Package
                6.2.X EE