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

dhruv_parekh

Members
  • Posts

    4
  • Joined

  • Last visited

dhruv_parekh's Achievements

Rookie

Rookie (2/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Hi, It is a good practise if you render compiled jasperreports (*.jasper),rather compiling jrxm file at runtime and then render. Correct me if I'm wrong. My assumption is you have wiritten a code as below JasperDesign jasperDesign = JRXmlLoader.load(some_report.jrxml); JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign); JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, paramMap, dbCon); Instead of above code, re-write as per below code JasperReport jasperReport = (JasperReport) JRLoader.loadObject(some_report.jasper); JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, paramMap, dbCon); By approaching this way, You can continue creating your report in current version and render it in JDK 1.4.2. Hope this will solve your problem.
  2. Hi Freinds, One simple question:- I developed few reports on JasperReports 3.0.1 and trying to run them on JBoss 4.0.5_GA Server and JDK 1.4.2_05. They are giving me errors. I checked jboss server.log file to track the errors and they are as below. Is there any compatibility issue? Or some other reason? What should I do? Please guide me. Thanking You. Code:ERROR [org.apache.commons.digester.Digester] Digester.getParser: org.xml.sax.SAXNotRecognizedException: Feature: http://apache.org/xml/features/validation/dynamic at org.apache.crimson.parser.XMLReaderImpl.setFeature(XMLReaderImpl.java:219) at org.apache.crimson.jaxp.SAXParserImpl.setFeatures(SAXParserImpl.java:150) at org.apache.crimson.jaxp.SAXParserImpl.<init>(SAXParserImpl.java:133) at org.apache.crimson.jaxp.SAXParserFactoryImpl.newSAXParserImpl(SAXParserFactoryImpl.java:113) at org.apache.crimson.jaxp.SAXParserFactoryImpl.setFeature(SAXParserFactoryImpl.java:141) at org.apache.commons.digester.parser.XercesParser.configureXerces(XercesParser.java:185) at org.apache.commons.digester.parser.XercesParser.newSAXParser(XercesParser.java:138) at org.apache.commons.digester.ParserFeatureSetterFactory.newSAXParser(ParserFeatureSetterFactory.java:71) at org.apache.commons.digester.Digester.getParser(Digester.java:692) at org.apache.commons.digester.Digester.getXMLReader(Digester.java:899) at org.apache.commons.digester.Digester.parse(Digester.java:1647) at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:239) at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:226) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:214) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:168) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:152) at GenerateReport.generateHTML(GenerateReport.java:435) at GenerateReport.fetchReport(GenerateReport.java:581) at GenerateReport.processRequest(GenerateReport.java:269) at GenerateReport.doPost(GenerateReport.java:365) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:534)
  3. Hi, I've created a report for employees. In that report all records should display in same page for the perticular employee. If employee code is changed then it should display record on a new page. I've added a group for the employee_code. And applied a page break in that group footer. But it doesn't work well as per expactation. Page break gets activated when records of one employee exceeded to page height. "Ignore Pagination" condition is unchecked. Now another problem occurred when i checked "Ignore Pagination", it shows the records in one page for one employee. Creates new page when employee is changed. It works fine in Excel and HTML format, but it is not working in PDF format. I'm using JasperReport 3.1.0, JDK 1.4.2_05, and NetBeans 6.5.1. What should I do? Is there any way to get report as per my customer's expactation? Please guide me.
  4. Hi, I've created a report for employees. In that report all records should display in same page for the perticular employee. If employee code is changed then it should display in new page. I've added a group for the employee_code. And applied a page break in that group footer. But it doesn't work well as per expactation. Page break gets activated when records of one employee exceeded to page height. "Ignore Pagination" condition is unchecked. Now another problem opccurred when i checked "Ignore Pagination", it shows the records in one page for one employee. Creates new page when employee is changed. It works fine in Excel and HTML format, but it is not working in PDF format. What should I do? Is there any way to get report as per my customer's expactation? Please guide me. Post Edited by dhruv_parekh at 08/03/2009 06:37
×
×
  • Create New...