Hi , I am rendering jasper reports on a webpage by compiling the jrxml in groovy-grails (rendering the result string in a .gsp page) Here is the main code in the service class def runReport(paramSMap, rep_id, pageno) { def pg = pageno JasperReport jasperReport = JasperCompileManager.compileReport(reportSource); JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, paramSMap, conn); JRExporter exporter = new JRHtmlExporter(); ByteArrayOutputStream byteArray = new ByteArrayOutputStream(); if (pg!=null){ int pgc = new Integer(pg); println "inside pg-ck" exporter.setParameter(JRHtmlExporterParameter.IS_WHITE_PAGE_BACKGROUND,Boolean.FALSE); exporter.setParameter(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN, Boolean.FALSE); exporter.setParameter(JRHtmlExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS,Boolean.TRUE); exporter.setParameter(JRHtmlExporterParameter.PAGE_INDEX, pgc); exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, byteArray); exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); exporter.setParameter(JRHtmlExporterParameter.IS_WRAP_BREAK_WORD,Boolean.TRUE); if (pgc==0){ println "inside pg" reportSize=jasperPrint.getPages().size(); } exporter.exportReport(); String renderdStr=new String(byteArray.toByteArray()); return renderdStr; } and I am displaying the renderd string in the result.gsp page. The report runs successfully each time I run an appropriate jrxml (i validate the jrxml first by running it in ireports). But the rendering on html fails sometimes for no reason. If I run the same report again from the front end it displays properly. But sometimes during the first run it does not display anything but a "Loading" spinner continuously. I initially thought its related to report size, like for very large report reading the jrxml / compiling/filling/ writing the outputstream etc, somewhere it gets timed out . but its happening for 1 page report also. I really need to know why its failing sometimes and working at other times, we need to make this a dependable process, like is it a good idea to use JrVirtualizer which I think is preferred for large reports. Thanks in advance, Priyank Devurkar