Jump to content
We've recently updated our Privacy Statement, available here ×

paragdreams

Members
  • Posts

    15
  • Joined

  • Last visited

paragdreams's Achievements

Apprentice

Apprentice (3/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Collaborator Rare

Recent Badges

0

Reputation

  1. Dear All, I am upgrading my jasper reports from 3.6.0 to latest 4.x.x version(Preferably 4.1.2 as its stable one). When I running my existing reports with latest version of jasper reports jar file I am getting following error message, javax.servlet.ServletException: javax.ejb.EJBException: null; CausedByException is: null; CausedByException is: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'splitType' is not allowed to appear in element 'band'. at com.commence.report.web.ViewAdHocReportHandler.getReportResults(ViewAdHocReportHandler.java:285) at com.commence.report.web.ViewAdHocReportHandler.execute(ViewAdHocReportHandler.java:181) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) 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:630) 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) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069) at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455) at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:320) at com.commence.struts.CustomRequestProcessor.processForwardConfig(CustomRequestProcessor.java:60) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) 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.commence.filter.PopulateUserObject.doFilter(PopulateUserObject.java:140) 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.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) Caused by: javax.ejb.EJBException: null; CausedByException is: null; CausedByException is: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'splitType' is not allowed to appear in element 'band'. at com.commence.report.ejb.session.ReportFacadeEJB.getReportResult(ReportFacadeEJB.java:847) at com.commence.report.ejb.session.ReportFacadeEJB.getAdHocReportResult(ReportFacadeEJB.java:768) at com.commence.report.web.ViewAdHocReportHandler.getReportResults(ViewAdHocReportHandler.java:282) ... 38 more I am creating my jrxml file from java code. I have used splitType attribute in all my reports but according to jasper reports splitType attribute is not deprecated in any of the version. Can anyone help me out in finding solution for this issue? Thanking you in advance.
  2. Hi Friends, I have upgraded my jasper reports from version 3.6.0 to 4.5.0. When I am running my reports through java code I am getting following exception, net.sf.jasperreports.engine.util.JRFontNotFoundException: Font 'Helvetica' is not available to the JVM. See the Javadoc for more details. at net.sf.jasperreports.engine.util.JRFontUtil.checkAwtFont(JRFontUtil.java:358) at net.sf.jasperreports.engine.fill.TextMeasurer.measureSimpleText(TextMeasurer.java:537) at net.sf.jasperreports.engine.fill.TextMeasurer.measure(TextMeasurer.java:341) at net.sf.jasperreports.engine.fill.JRFillTextElement.chopTextElement(JRFillTextElement.java:511) at net.sf.jasperreports.engine.fill.JRFillTextField.prepare(JRFillTextField.java:607) at net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:328) at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:393) at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:341) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillFixedBand(JRVerticalFiller.java:2074) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageFooter(JRVerticalFiller.java:1007) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummaryNoLastFooterSamePage(JRVerticalFiller.java:1137) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummary(JRVerticalFiller.java:1032) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportEnd(JRVerticalFiller.java:296) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:135) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:836) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:746) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:58) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:417) at com.commence.jasperreports.GenerateReport.getHTMLReportDetails(GenerateReport.java:185) at com.commence.jasperreports.JasperReportsEJB.getHTMLReportDetails(JasperReportsEJB.java:82) at com.commence.jasperreports.Report.getReport(Report.java:164) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280) at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:216) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) 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.commence.filter.PopulateUserObject.doFilter(PopulateUserObject.java:140) 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.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) Can anyone please help me out finding solution for this issue? Thanking you in advance. -Parag
  3. Hi Sham, I tried using new version 4.5.0 and my PDF export issues seems resolved. I am still looking for any other possible solution with jasper reports version 3.6.0. -Parag
  4. Hi Stanislav, Thanks for your valuable suggestion. I tried using new version 4.5.0 and my PDF export issues seems resolved. Thanks again. - Parag
  5. Hi Stanislav, Thanks for the reply. Actually I create JRXML from Java code, compile it on the fly and run it using fillreport method. When I export it to PDF format I use in memory jasperprint object. I am using follwoing code to export PDF data, JRPdfExporter pdfExporter = new JRPdfExporter(); pdfExporter.setParameter(JRPdfExporterParameter.JASPER_PRINT, jprint); pdfExporter.setParameter(JRPdfExporterParameter.OUTPUT_STREAM, output); pdfExporter.exportReport(); Is there any setting need to made while creating JRXML or using PDFExporter? Currently I am using jasperrepots 3.6.0 version.
  6. Hi All, I need your help in getting out of PDF export issue. When I export any report data to PDF format the text gets cut offs and we are not getting full text in generated PDF file. Is there any work around to this? I am using jasper reports 3.6.0. Any help in this is really appreciated.
  7. Please check if Kartika font is installed on your machine.
  8. Hi, When I export any report to PDF format the text gets cut offs in between and we are not getting full text in generated PDF file. Is there any work around to this? I am using jasper reports 3.6.0. Any help in this is really appreciated. Post Edited by paragdreams at 12/23/2011 07:08
  9. Hi Sham, Can you please help in in finding solution for PDF export? When I export any report to PDF format the text gets cut offs in between and we are not getting full text in generated PDF file. Is there any work around to this?
  10. Hi Sham, Thanks again your solution works this time also.
  11. Hi, I am using jasper reports 3.6.0 and generating JRXML from java code. When I export the report output to excel file the last record on some pages splits into 2 rows and second row appears on next page. Is there any way out to keep the row data on same page or auto adjust page hwight based on row data? Any help is really appreaciated.
  12. Please try isStartNewPage="true" attribute for group element.or title band
  13. Hi Sham, Thanks a lot your solution worked as expected.
  14. Hi Nathan, Thanks for your quick reply. I tried your solution and it worked. But it works when we are generating JRXML file from java code and compile it and then use for export. Also, in my code I first generate JRXML file then compile it and show result to user in html form and keep the jasper print object in session for future use like navigating to next previous page or to export in any particular type like excel,csv or pdf. If I use your trick of printWhenExpression it is hiding title band from report completely even in html form. What I really need is when user run report he/she can able to see title band but when we export report to CSV only then only it should hide report title. My code of CSV export is as follows, JRCsvExporter csvExporter = new JRCsvExporter(); csvExporter.setParameter(JRCsvExporterParameter.JASPER_PRINT, jprint); csvExporter.setParameter(JRCsvExporterParameter.FIELD_DELIMITER, ","); csvExporter.setParameter(JRCsvExporterParameter.RECORD_DELIMITER, System.getProperty("line.separator")); csvExporter.setParameter(JRCsvExporterParameter.OUTPUT_STREAM, output); csvExporter.exportReport(); where jprint is a JasperPrint object. Can we have any trick which will hide title band when I do export? Your help on this is really appreciated.
  15. Hi, I am using jasper reports3.6.0 and need help while exporting report data to CSV file. I need to hide title band only when I export data to CSV from java code. I tried below option but it was not working, <property name="net.sf.jasperreports.export.xls.exclude.origin.band.1" value="title"/> <property name="net.sf.jasperreports.export.csv.exclude.origin.band.1" value="title"/> Does anyone know if this is working while only export and what value should I use for title band?
×
×
  • Create New...