Jump to content

veeseekay

Members
  • Posts

    7
  • Joined

  • Last visited

veeseekay'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, I am using a master report file with two subreports in it. At runtime, am gettting the foll exception JRException : Could not load object from location : Subreport.jasper I have placed the compiled jasper objects of the subreports in the same directory from where the master jrxml gets compiled(yes, i knw this is bad since jasper objects can be compiled at build time - I will change it). I am not aware of the subreports compilation procedure while compiling the master report. is there an auto compile feature? How do I get to view the master report ? TIA cheers!
  2. Any suggestions folks? Am unable to get around this problem
  3. Hi Jasper experts, I am facing this issue when I am trying to export a report to pdf. My jrxml is using SansSerif-Bold font and am using itext-1.3.1 and jasperreports-3.0.0 in my classpath. The report exports fine when I change the font to SansSerif from SansSerif-Bold. I am pretty sure tht I have not included any other clashing versions of itext. the jasperreports jar has default.properties which lists SansSerif and Helcetica. How can this be overridden ? I am using ubuntu and jdk 1.4 and weblogic 8.1 as my container. pls help cheers! Code:net.sf.jasperreports.engine.JRRuntimeException: Could not load the following font : pdfFontName : SansSerif-BoldpdfEncoding : Cp1252isPdfEmbedded : false at net.sf.jasperreports.engine.export.JRPdfExporter.getFont(Ljava.util.Map;)Lcom.lowagie.text.Font;(JRPdfExporter.java:1691) at net.sf.jasperreports.engine.export.JRPdfExporter.getChunk(Ljava.util.Map;Ljava.lang.String;)Lcom.lowagie.text.Chunk;(JRPdfExporter.java:1600) at net.sf.jasperreports.engine.export.JRPdfExporter.getPhrase(Lnet.sf.jasperreports.engine.util.JRStyledText;Lnet.sf.jasperreports.engine.JRPrintText;)Lcom.lowagie.text.Phrase;(JRPdfExporter.java:1583) at net.sf.jasperreports.engine.export.JRPdfExporter.exportText(Lnet.sf.jasperreports.engine.JRPrintText;)V(JRPdfExporter.java:1908) at net.sf.jasperreports.engine.export.JRPdfExporter.exportElements(Ljava.util.Collection;)V(JRPdfExporter.java:679) at net.sf.jasperreports.engine.export.JRPdfExporter.exportPage(Lnet.sf.jasperreports.engine.JRPrintPage;)V(JRPdfExporter.java:641) at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(Ljava.io.OutputStream;)V(JRPdfExporter.java:536) at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport()V(JRPdfExporter.java:323) Post Edited by veeseekay at 03/01/2010 13:29
  4. I have worked around this issue for the time being. I am not sure if it can be leveraged as a proper fix though. I have added xercesImpl.jar in the classpath, which, now appears before the weblogic.jar. Hence my web-app finds the SAXParser.class in the xercesImpl.jar. Also added the following piece of code : System.setProperty("org.xml.sax.driver", "org.apache.xerces.parsers.SAXParser") cheers!
  5. Hi, I am running my application on weblogic and it is a requirement that jrxmls can be uploaded and compiled at runtime. However, I am getting the following exeption. I have looked at other similar posts and found out that jdt compiler has to be used since weblogic has its own sax parser. I have included this jar(jdtcore.jar) in my class path. I have also modified my weblogic startup script to have this jar ahead of weblogic.jar in the classpath. It still does not help. http://jasperetl.org/plugins/espforum/view.php?group_id=102&forumid=103&topicid=45683&page=2 -- provides some clues too, but am unable to get through. Any pointers? TIA Cheers! Code:Caused by: org.xml.sax.SAXException: http://java.sun.com/xml/jaxp/properties/schemaSource at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(Lorg.xml.sax.InputSource;)V(AbstractSAXParser.java:1203) at weblogic.xml.jaxp.WebLogicXMLReader.parse(Lorg.xml.sax.InputSource;)V(WebLogicXMLReader.java:135) at weblogic.xml.jaxp.RegistryXMLReader.parse(Lorg.xml.sax.InputSource;)V(RegistryXMLReader.java:152) at org.apache.commons.digester.Digester.parse(Lorg.xml.sax.InputSource;)Ljava.lang.Object;(Digester.java:1764) at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(Lorg.xml.sax.InputSource;)Lnet.sf.jasperreports.engine.design.JasperDesign;(JRXmlLoader.java:235) at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(Ljava.io.InputStream;)Lnet.sf.jasperreports.engine.design.JasperDesign;(JRXmlLoader.java:222) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(Ljava.io.InputStream;)Lnet.sf.jasperreports.engine.design.JasperDesign;(JRXmlLoader.java:210) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(Ljava.io.File;)Lnet.sf.jasperreports.engine.design.JasperDesign;(JRXmlLoader.java:164) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(Ljava.lang.String;)Lnet.sf.jasperreports.engine.design.JasperDesign;(JRXmlLoader.java:148) at net.sf.jasperreports.engine.JasperCompileManager.compileReport(Ljava.lang.String;)Lnet.sf.jasperreports.engine.JasperReport;(JasperCompileManager.java:146)
  6. I could resolve this issue. First, I downloaded jasper-reports.3-6.1.src. Put all the jars found under the lib directory in my eclipse class path and things started working. So it was pretty obvious that I was missing some jar. By elimination, I figured out the final set of jars needed in my classpath. The image shows the jars in my project classpath. Cheers!
  7. Folks, I am a newbie to jasper reports and am finding difficulty in compiling jrxml file. Unfortunately, googling and hunting for info in this forum has not helped me. I have created a simple test class file as shown in the code, But I get the foll exception while trying to compile : net.sf.jasperreports.engine.JRRuntimeException: Error creating SAX parser at net.sf.jasperreports.engine.xml.JRReportSaxParserFactory.createParser(JRReportSaxParserFactory.java:109) at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createParser(JRXmlDigesterFactory.java:1320) at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.createDigester(JRXmlDigesterFactory.java:1295) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:199) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:164) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:148) at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:85) at JasperTest.main(JasperTest.java:15) Caused by: org.xml.sax.SAXNotRecognizedException: http://java.sun.com/xml/jaxp/properties/schemaLanguage at org.apache.xerces.framework.XMLParser.setProperty(XMLParser.java:1714) at org.apache.xerces.parsers.SAXParser.setProperty(SAXParser.java:770) at org.apache.xerces.jaxp.SAXParserImpl.setProperty(SAXParserImpl.java:190) at net.sf.jasperreports.engine.xml.JRReportSaxParserFactory.configureParser(JRReportSaxParserFactory.java:140) at net.sf.jasperreports.engine.xml.JRReportSaxParserFactory.createParser(JRReportSaxParserFactory.java:104) ... 7 more I designed the jrxml with ireport 3.6.1 and using jasperreports-3.6.1.jar in my classpath along with dependent jars(commons-collection, digester, logging). I also tried adding xerces(and related jars like xercesImpl, xml-apis, etc) jars in classpath, but unable to solve the issue. Any pointers would be highly appreciated. Cheers! Code:import net.sf.jasperreports.engine.JasperCompileManager;import net.sf.jasperreports.engine.JasperReport;public class JasperTest { public static void main(String args[]) { try { // JRProperties.setProperty(JRProperties.COMPILER_XML_VALIDATION, false); // JasperDesign jasperDesign = // JRXmlLoader.load("\mypath\report1.jrxml"); JasperCompileManager.compileReport("\mypath\report1.jrxml"); } catch (Exception e) { e.printStackTrace(); } }}
×
×
  • Create New...