From: James M. <jma...@ps...> - 2003-04-29 20:17:26
|
At 04:36 PM 4/24/2003 +0200, Richard didier wrote: >Le Jeudi 24 Avril 2003 15:42, James Macgill a =E9crit : > > At 03:17 PM 4/24/2003 +0200, Richard didier wrote: > > >Hi all, > > > > > >I'm using Tomcat 4.1.18, along with J2SE 1.4.1, JAI installed, under > > > Linux. > > > Of all the above 1 and 4 are probably your best bet. > >Well, 1 being done, I have tried 4, and it worked up to the following= Tomcat >log (got a blank image) : I'm afraid I'm at a bit of a loss with regards the error message you=20 report. The "Unable to complete image generation after response started"=20 error indicates that the map has been generated properly and that a java=20 Image object has been created. The error is thrown by the JAI api as it=20 attempts to output the Image object as a PNG. I have cc'd this specifically to Martin (our JAI expert) in the hope that=20 he may have some ideas... Some random shots in the dark though, can you try adding a specific format= =20 to the map request url, something like &format=3Djpeg to see if its just the= =20 PNG which is broken. Can you also check which temp directory is being used by tomcat and that=20 which ever account tomcat is running under has write permissions to that=20 folder, this is needed as JAI sets up a cache file there. If you get a chance can you also try the alpha 2 release in the files=20 section of the source forge site, it worked slightly differently and it=20 would be good to know if this is a new bug introduced by recent changes or= =20 something that was there all along. James >--- >24 avr. 2003 16:17:27 org.geotools.wms.WMSServlet doGetMap >GRAVE: Unable to complete image generation after response started : >java.lang.ClassCastExceptionnull >accept: >text/xml,application/xml,application/xhtml+xml,text/html;q=3D0.9,text/plain= ;q=3D0.8,video/x-mng,image/png,image/jpeg,image/gif;q=3D0.2,text/css,*/*;q= =3D0.1 >java.lang.ClassCastException > at >sun.awt.image.ByteInterleavedRaster.setDataElements(ByteInterleavedRaster.j= ava:660) > at java.awt.image.BufferedImage.copyData(BufferedImage.java:1350) > at >com.sun.media.imageioimpl.plugins.clib.CLibImageWriter.getMediaLibImage(Unk= nown=20 > >Source) > at >com.sun.media.imageioimpl.plugins.png.CLibPNGImageWriter.write(Unknown >Source) > at javax.imageio.ImageWriter.write(ImageWriter.java:591) > at >org.geotools.wms.WMSServlet.formatImageOutputStream(WMSServlet.java:495) > at org.geotools.wms.WMSServlet.doGetMap(WMSServlet.java:454) > at org.geotools.wms.WMSServlet.doGet(WMSServlet.java:212) >--- >Behind the scene, le web application log reports the following : >--- >java.lang.IllegalStateException: "getOutputStream()" a d=E9j=E0 =E9t=E9= appel=E9 pour >cette r=E9ponse > at >org.apache.coyote.tomcat4.CoyoteResponse.getWriter(CoyoteResponse.java:614) > at >org.apache.coyote.tomcat4.CoyoteResponseFacade.getWriter(CoyoteResponseFaca= de.java:173) > at >org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:173) > at >org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:166) > at >org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:184) > at >org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFact= oryImpl.java:198) > at >org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.= java:193) > at org.apache.jsp.index_jsp._jspService(index_jsp.java:66) > at=20 > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at >org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:= 204) > at >org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) > at= org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) >--- >The french "a d=E9j=E0 =E9t=E9 appel=E9 pour cette r=E9ponse" stands for= "has already=20 >been >called for the (http) response" > >Any idea ? > > > > > James > > > >didier > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Geotools-gt2-users mailing list >Geo...@li... >https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users |