java.lang.NoClassDefFoundError: com/sun/image/codec/jpeg/ImageFormatException

Liferay Issues | Dmitry Samersoff | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    liferay not uploading user profile picture

    Stack Overflow | 1 year ago | vipul gupta
    javax.servlet.ServletException: Servlet execution threw an exception
  2. 0

    Re: Error deploying roller.war tomcat7

    roller-user | 3 years ago | Gaurav
    java.lang.NoClassDefFoundError: javax/mail/Session
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Re: Error deploying roller.war tomcat7

    roller-user | 3 years ago | Gaurav
    java.lang.NoClassDefFoundError: javax/mail/Session
  5. 0

    Re: Error deploying roller.war tomcat7

    roller-user | 3 years ago | Gaurav
    java.lang.NoClassDefFoundError: javax/mail/Session
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    com.sun.image.codec.jpeg.ImageFormatException

    at org.apache.catalina.loader.WebappClassLoader.loadClass()
  2. Glassfish Core
    WebappClassLoader.loadClass
    1. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
    2. org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
    2 frames
  3. com.sun.media
    ImageDecoderImpl.decodeAsRenderedImage
    1. com.sun.media.jai.codecimpl.JPEGImageDecoder.decodeAsRenderedImage(JPEGImageDecoder.java:46)
    2. com.sun.media.jai.codec.ImageDecoderImpl.decodeAsRenderedImage(ImageDecoderImpl.java:140)
    2 frames
  4. Liferay Portal Impl
    ImageToolImpl.read
    1. com.liferay.portal.image.ImageToolImpl.read(ImageToolImpl.java:616)
    2. com.liferay.portal.image.ImageToolImpl.read(ImageToolImpl.java:421)
    2 frames
  5. Liferay Portal Service
    ImageProcessorUtil.generateImages
    1. com.liferay.portal.kernel.image.ImageToolUtil.read(ImageToolUtil.java:183)
    2. com.liferay.portlet.documentlibrary.util.ImageProcessorImpl._generateImages(ImageProcessorImpl.java:281)
    3. com.liferay.portlet.documentlibrary.util.ImageProcessorImpl.generateImages(ImageProcessorImpl.java:79)
    4. com.liferay.portlet.documentlibrary.util.ImageProcessorUtil.generateImages(ImageProcessorUtil.java:53)
    4 frames
  6. Liferay Portal Impl
    BaseProcessorMessageListener.doReceive
    1. com.liferay.portlet.documentlibrary.messaging.ImageProcessorMessageListener.generate(ImageProcessorMessageListener.java:31)
    2. com.liferay.portlet.documentlibrary.messaging.BaseProcessorMessageListener.doReceive(BaseProcessorMessageListener.java:36)
    2 frames
  7. Liferay Portal Service
    ThreadPoolExecutor$WorkerTask.run
    1. com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
    2. com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
    3. com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:65)
    4. com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:682)
    5. com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:593)
    5 frames
  8. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:744)
    1 frame