com.sun.image.codec.jpeg.TruncatedFileException: Premature end of input file

Oracle Community | 807545 | 1 decade 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

    Caught exception still showing stack trace

    Oracle Community | 1 decade ago | 807545
    com.sun.image.codec.jpeg.TruncatedFileException: Premature end of input file

    Root Cause Analysis

    1. com.sun.image.codec.jpeg.TruncatedFileException

      Premature end of input file

      at sun.awt.image.codec.JPEGImageDecoderImpl.readJPEGStream()
    2. Java RT
      JPEGImageDecoderImpl.decodeAsBufferedImage
      1. sun.awt.image.codec.JPEGImageDecoderImpl.readJPEGStream(Native Method)
      2. sun.awt.image.codec.JPEGImageDecoderImpl.decodeAsBufferedImage(JPEGImageDecoderImpl.java:210)
      2 frames
    3. com.sun.media
      JPEGRIF.create
      1. com.sun.media.jai.codecimpl.JPEGImage.<init>(JPEGImageDecoder.java:112)
      2. com.sun.media.jai.codecimpl.JPEGImageDecoder.decodeAsRenderedImage(JPEGImageDecoder.java:51)
      3. com.sun.media.jai.opimage.CodecRIFUtil.create(CodecRIFUtil.java:89)
      4. com.sun.media.jai.opimage.JPEGRIF.create(JPEGRIF.java:52)
      4 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:324)
      4 frames
    5. javax.media.jai
      RIFRegistry.create
      1. javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
      2. javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1669)
      3. javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
      4. javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
      4 frames
    6. com.sun.media
      StreamRIF.create
      1. com.sun.media.jai.opimage.StreamRIF.create(StreamRIF.java:104)
      1 frame
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:324)
      4 frames
    8. javax.media.jai
      RIFRegistry.create
      1. javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
      2. javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1669)
      3. javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
      4. javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
      4 frames
    9. com.sun.media
      FileLoadRIF.create
      1. com.sun.media.jai.opimage.FileLoadRIF.create(FileLoadRIF.java:109)
      1 frame
    10. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:324)
      4 frames
    11. javax.media.jai
      RenderedOp.getProperty
      1. javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
      2. javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1669)
      3. javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:481)
      4. javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:340)
      5. javax.media.jai.RenderedOp.createInstance(RenderedOp.java:805)
      6. javax.media.jai.RenderedOp.createRendering(RenderedOp.java:853)
      7. javax.media.jai.RenderedOp.getRendering(RenderedOp.java:874)
      8. javax.media.jai.RenderedOp$1.getPropertyNames(RenderedOp.java:1777)
      9. javax.media.jai.PropertyEnvironment.mapDefaults(PropertyEnvironment.java:280)
      10. javax.media.jai.PropertyEnvironment.getPropertyNames(PropertyEnvironment.java:135)
      11. javax.media.jai.WritablePropertySourceImpl.addProperties(WritablePropertySourceImpl.java:306)
      12. javax.media.jai.RenderedOp.createPropertySource(RenderedOp.java:1803)
      13. javax.media.jai.RenderedOp.getPropertyNames(RenderedOp.java:1837)
      14. javax.media.jai.PropertyEnvironment.hashNames(PropertyEnvironment.java:319)
      15. javax.media.jai.PropertyEnvironment.<init>(PropertyEnvironment.java:125)
      16. javax.media.jai.DescriptorCache.getPropertySource(DescriptorCache.java:1198)
      17. javax.media.jai.OperationRegistry.getPropertySource(OperationRegistry.java:1941)
      18. javax.media.jai.ThreadSafeOperationRegistry.getPropertySource(ThreadSafeOperationRegistry.java:595)
      19. javax.media.jai.OperationRegistry.getPropertySource(OperationRegistry.java:1980)
      20. javax.media.jai.ThreadSafeOperationRegistry.getPropertySource(ThreadSafeOperationRegistry.java:608)
      21. javax.media.jai.OperationNodeSupport.getPropertySource(OperationNodeSupport.java:624)
      22. javax.media.jai.RenderedOp.createPropertySource(RenderedOp.java:1800)
      23. javax.media.jai.RenderedOp.getProperty(RenderedOp.java:1924)
      23 frames