Bug 30435 - sun.awt.image.ImageFormatException: JPEG datastream contains no image
Summary: sun.awt.image.ImageFormatException: JPEG datastream contains no image
Status: RESOLVED WORKSFORME
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Sandbox Taglibs (show other bugs)
Version: 1.0
Hardware: PC All
: P3 blocker (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-02 12:10 UTC by password
Modified: 2005-03-20 17:06 UTC (History)
0 users



Attachments
This is one image among all was giving me problem. (55.51 KB, image/jpeg)
2004-08-06 11:18 UTC, password
Details
Image Tag example using the image mentioned in the bug report (109.36 KB, application/octet-stream)
2004-10-28 05:44 UTC, Abey Mullassery
Details

Note You need to log in before you can comment on or make changes to this bug.
Description password 2004-08-02 12:10:56 UTC
taglib uri="http://jakarta.apache.org/taglibs/image-1.0" 
    prefix="img" %>

Tag libaray has image reading problem .. frequent error for some images (10%) 
was below .. Even all the images had been  displayed normally in browser using 
server.

Exception was 

"sun.awt.image.ImageFormatException: JPEG datastream contains no image"


All the images which had problem again  corrected number of times in photoshop 
but still failed to work using image taglibaray.  




My code was 


<img:image src="/itemimages/10343.jpg" dir="itemimages" name="10343.jpg" 
refresh="true">
<img:resize scale="25%"/>

</img:image>
Comment 1 password 2004-08-06 11:18:43 UTC
Created attachment 12352 [details]
This is one  image among all  was giving me problem.
Comment 2 Abey Mullassery 2004-10-28 05:44:29 UTC
Created attachment 13238 [details]
Image Tag example using the image mentioned in the bug report
Comment 3 Abey Mullassery 2004-10-28 05:46:25 UTC
I tested the image with the PMIW and the Image tag. It is working fine. I used
Tomcat 5.0 with Java 1.4.2.

I have attached the image-examples war file with the "problem" image. Please
check this at our end and let me know if it works fine. Check the same with any
old webapp/setting you had (just to check if it was due to a bug in an older
version). If you still find an error somewhere, send me the required files to
test it here.

Abey Mullassery