TIFF images

0

Under ubunto (with CENTOS is the same) I get an error message when I try to load a tiff image from disk (with png images work perfectly):

2013-01-02 16:35:27,497 ERROR errorPage_jsp,http-8080-4:487 - stack trace of exception that redirected to errorPage.jsp
net.sf.jasperreports.engine.JRException: Image read failed.
        at net.sf.jasperreports.engine.util.JRJdk14ImageReader.readImage(JRJdk14ImageReader.java:73)
        at net.sf.jasperreports.engine.util.JRImageLoader.loadAwtImageFromBytes(JRImageLoader.java:167)
        at net.sf.jasperreports.engine.JRImageRenderer.getImage(JRImageRenderer.java:407)
        at net.sf.jasperreports.engine.JRImageRenderer.getDimension(JRImageRenderer.java:482)
        at net.sf.jasperreports.engine.RenderableUtil.getOnErrorRendererForDimension(RenderableUtil.java:264)
        at net.sf.jasperreports.engine.export.JRXhtmlExporter.exportImage(JRXhtmlExporter.java:2079)
        at net.sf.jasperreports.engine.export.JRXhtmlExporter.exportElements(JRXhtmlExporter.java:741)
        at net.sf.jasperreports.engine.export.JRXhtmlExporter.exportPage(JRXhtmlExporter.java:699)
        at net.sf.jasperreports.engine.export.JRXhtmlExporter.exportReportToWriter(JRXhtmlExporter.java:618)
        at net.sf.jasperreports.engine.export.JRXhtmlExporter.exportReport(JRXhtmlExporter.java:358)
        at org.apache.jsp.WEB_002dINF.jsp.modules.viewReport.DefaultJasperViewer_jsp._jspService(DefaultJasperViewer_jsp.java:273)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
        at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
        at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
        at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)
        at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:621)
        at com.jaspersoft.jasperserver.war.tags.JasperViewerTag.doEndTag(JasperViewerTag.java:216)
        at org.apache.jsp.WEB_002dINF.jsp.modules.viewReport.reportOutput_jsp._jspx_meth_js_005fjasperviewer_005f0(reportOutput_jsp.java:110)
        at org.apache.jsp.WEB_002dINF.jsp.modules.viewReport.reportOutput_jsp._jspService(reportOutput_jsp.java:67)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:127)
        at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:56)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
        at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
........

The result is the same with jasperserver 4.7 and 5.0, but seems to be present the JAI library (jai-core, jai-codec) in jasperserver/WEB-INF/lib

Is a bug or misconfiguration? any idea for resolution?

thanx to all

mario.pedrazzoli's picture
Joined: Feb 19 2007 - 11:33pm
Last seen: 7 years 10 months ago

3 Answers:

0

not a professional in this stuff, but i do have some thought about loading tiff image vb.net.  it has something to do with the library you have been using. just a samll changes will do the magic.

fiimage's picture
Joined: Jun 23 2013 - 8:42pm
Last seen: 7 years 5 months ago
0

Have you tried other image format, like gif? In general, png, gif, jpeg and bmp image file are in the same category. But as for tiff image format, the programming method seems to be different. May be you can refer to some TIFF image reading SDK to find out the reason. Hope it will help you a little.

aprilevans587's picture
Joined: Apr 8 2013 - 8:40pm
Last seen: 6 years 8 months ago
0

Hi, fiimage.

I am also testing about the related Tiff projects these days. I want to look for a professional 3rd party Tiff processor whose way of processing is simple and fast to help me with the related work. It will be better if it is totally manual and can be customized by users according to our own favors. Do you have any ideas about it? Or any good suggestion? Thanks in advance. And I will try your sharing later.



Best regards,
Arron

arronwall1's picture
Joined: Jul 5 2013 - 2:59am
Last seen: 5 years 1 month ago
Feedback
randomness