mario.pedrazzoli Posted January 8, 2013 Share Posted January 8, 2013 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/libIs a bug or misconfiguration? any idea for resolution?thanx to all Link to comment Share on other sites More sharing options...
fiimage Posted June 24, 2013 Share Posted June 24, 2013 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. Link to comment Share on other sites More sharing options...
aprilevans587 Posted November 6, 2013 Share Posted November 6, 2013 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. Link to comment Share on other sites More sharing options...
arronwall1 Posted December 27, 2013 Share Posted December 27, 2013 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 Link to comment Share on other sites More sharing options...
zzd_d Posted March 11, 2022 Share Posted March 11, 2022 I don't know, you can ask google Link to comment Share on other sites More sharing options...
zzd_d Posted March 11, 2022 Share Posted March 11, 2022 I don't know, you can ask google Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now