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

zawmn83

Members
  • Posts

    9
  • Joined

  • Last visited

zawmn83'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. When I set report properties net.sf.jasperreports.chart.render.type=image_dpi, the following error occur. I'm using jasper report 3.5.3. Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: [[c:JasperFillManager]]->fillReport((o:JasperReport)[o:JasperReport], (i:Map)[o:HashMap], (i:Connection)[o:JDBC4Connection]). Cause: net.sf.jasperreports.engine.JRRuntimeException: No chart renderer factory specifyed for 'image_dpi' render type.
  2. Hi lucian I'm new to jasper report and java. Could you tell me more detail steps to apply this wrokaround? Do I need to creat a java file ImageDPIChartRendererFactory and complie? Where do I need to put output ImageDPIChartRendererFactory.class ? Do I need change jasper report properties from iReport ? lucian Wrote: I suggest the following workaround (until we sort out how we'll implement this in JR): You can write a chart renderer factory which produces rasterized images adjusted for a certain DPI. JR already includes a chart renderer factory that produces rasterized images, so using that as a starting point we can write something like the class below. The class uses a property called net.sf.jasperreports.chart.dpi which provides the desired chart image resolution. To use this chart renderer factory, the following properties need to be set in jasperreports.properties: net.sf.jasperreports.chart.render.type=image_dpi net.sf.jasperreports.chart.renderer.factory.image_dpi=jr.ImageDPIChartRendererFactory net.sf.jasperreports.chart.dpi=96 Regards, Lucian Code:
  3. Hi I'm not sure my problem is same as above. But I only got the problem in chart and only when I exported to pdf. I have a report with chart. I found that all text (chart title, category axis tick label, value axis tick label and Legend label) within chart are missing when I export to pdf file. But I can see these text in html export and excel export. I'm not sure it is font problem or not. But I add text field outside of chart and set same font as chart labels' font. I can see these text fields outside of chart but can't see text within charts. So I tried change some properties and tested. When I change Common Chart properties-->Render Type to svg, the category axis tick label are appear in pdf export. But chart title, value axis tick label and Legend label are still missing. Even category axis tick label appear only when I set Common Chart Properties-->Label rotation to some value. If I set Label rotation to zero, this category axis tick labels also missing even I set with svg render type. When I change Common Chart properties-->Render Type to image, all text are appear. But the quality of chart image is very bad. My webserver is CentOS 5.3, Jasper 3.5.3, Tomcat 5.5. I develop jrxml file in windows PC with iReport 3.5.3 and deploy on linux webserver. When I deploy this report to local windows webserver, all things are fine. I can see charts text. Please help me to find out the problem. Thanks Post Edited by zawmn83 at 09/16/2009 05:05 Post Edited by zawmn83 at 09/16/2009 05:53 Post Edited by zawmn83 at 09/16/2009 05:54
  4. Hi I got a problem when I export my report to pdf. My report include a bar chart. Legend Labels not show. Is it related to fonts issue? I export as html and excel this report, everything is fine. I can see Legent labels. Please see attachment pdf file. How can I solve? Thanks Post Edited by zawmn83 at 09/15/2009 12:40
  5. Hi I solved my issue. It is permission problem between apache and tomcat users. The following is my code that raise error. I created unique temp file in php by using tempnam function. In this case this new file is readonly to others users (including tomcat) even I set permission 777 to parent tmp folder. So tomcat can't write file in exportReportToPdfFile function. $outputPath = tempnam(realpath("tmp"), "jasper"); //generate unique temp file name $exportManager->exportReportToPdfFile($jasperPrint, $outputPath); I insert chmod in code and it is solved problem. $outputPath = tempnam(realpath("tmp"), "jasper"); //generate unique temp file name chmod($outputPath, 0766); //allow tomcat to write permission $exportManager->exportReportToPdfFile($jasperPrint, $outputPath); But I got another problem, when I clear tmp files from apache. I want to delete generated tmp file after viewing report. I think it is ok to delete generated pdf file and html file because their permission are 0766 and can be read/write from both apache and tomcat. But for the files under tmpfilename.html_files folder, they are belong to tomcat. And readonly to apache and I can't delete these files from apache. Is there any jasper build-in function or parameter to set output tmpfilename.html_files folder and subfiles permission? Thanks
  6. Hi Yes. I solved this problem by installing fonts like follows: yum install bitmap* yum install dejavu-lgc* yum install bitstream-vera* Thanks
  7. Hi Followings is my server configuration Centos 5.3 Tomcat 5 Open JDK Runtime Evnironment (build 1.6.0-b09) PHP 5.3.0 Apache version 2.2.3 php-java-bridge_5.4.4.2 jasperreports-3.5.3 When I tested BarbecueReport.jrxml from a jsp file, it is working well. I'm trying to use jasper report from php according to http://www.rjohnson.id.au/wordpress/2007/10/27/bullet-proof-jasper-reports-and-php But when I try BarbecueReport.jrxml from php, I got the following two error one for exportReportToPdfFile and another for exportReportToHtmlFile. I note that only files with zero byte are output to /var/www/html/mysuite/tmp/. I tested this php files in local centos linux server, it is working well. Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: [[c:JasperExportManager]]->exportReportToPdfFile((o:JasperPrint)[o:JasperPrint], (o:String)[o:String]). Cause: net.sf.jasperreports.engine.JRException: Error trying to export to file : /var/www/html/mysuite/tmp/jasperNO8iz5 VM: 1.6.0@http://java.sun.com/" at: #-11 net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:388) #-10 net.sf.jasperreports.engine.JasperExportManager.exportReportToPdfFile(JasperExportManager.java:126) #-9 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) #-8 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) #-7 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) #-6 java.lang.reflect.Method.invoke(Method.java:616) #-5 php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1077) #-4 php.java.bridge.Request.handleRequest(Request.java:414) #-3 php.java.bridge.Request.handleRequests(Request.java:490) #-2 php.java.bridge.http.ContextRunne in http://127.0.0.1:8080/JavaBridge/java/Java.inc on line 215 Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: [[c:JasperExportManager]]->exportReportToHtmlFile((o:JasperPrint)[o:JasperPrint], (o:String)[o:String]). Cause: net.sf.jasperreports.engine.JRException: Error creating to file writer : textquestion VM: 1.6.0@http://java.sun.com/" at: #-11 net.sf.jasperreports.engine.export.JRHtmlExporter.exportReport(JRHtmlExporter.java:480) #-10 net.sf.jasperreports.engine.JasperExportManager.exportReportToHtmlFile(JasperExportManager.java:440) #-9 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) #-8 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) #-7 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) #-6 java.lang.reflect.Method.invoke(Method.java:616) #-5 php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1077) #-4 php.java.bridge.Request.handleRequest(Request.java:414) #-3 php.java.bridge.Request.handleRequests(Request.java:490) #-2 php.java.bridge.http.ContextRunner.run(ContextRunner.jav in http://127.0.0.1:8080/JavaBridge/java/Java.inc on line 215 What wrong with me? Thanks in advance
  8. My OS is CentOS Linux 5.3 Java version 1.6.0-b09 I got the following two errors 1st error occur only for the first time after I restarted tomcat. 2nd error occur after the first error occur. 1st error not appear until I restart tomcat again. Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: [[c:JasperFillManager]]->fillReport((o:JasperReport)[o:JasperReport], (i:Map)[o:HashMap], (i:Connection)[o:JDBC4Connection]). Cause: java.lang.Error: Probable fatal error:No fonts found. VM: 1.6.0@http://java.sun.com/" at: #-111 sun.font.FontManager.getDefaultPhysicalFont(FontManager.java:1088) #-110 sun.font.FontManager.initialiseDeferredFont(FontManager.java:960) #-109 sun.font.FontManager.findOtherDeferredFont(FontManager.java:899) #-108 sun.font.FontManager.findDeferredFont(FontManager.java:916) #-107 sun.font.FontManager.findFont2D(FontManager.java:1904) #-106 sun.font.FontManager.getDefaultPhysicalFont(FontManager.java:1071) #-105 sun.font.FontManager.initialiseDeferredFont(FontManager.java:960) #-104 sun.font.FontManager.findOtherDeferredFont(FontManager.java:899) #-103 sun.font.FontManager.findDeferredFont(FontManager.java:916) #-102 sun.font.FontManager.findFont2D(FontManager.java:1904) #-101 sun.font.FontManager.getDefaultPhysicalFont(Font in http://127.0.0.1:8080/JavaBridge/java/Java.inc on line 215 Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: [[c:JasperFillManager]]->fillReport((o:JasperReport)[o:JasperReport], (i:Map)[o:HashMap], (i:Connection)[o:JDBC4Connection]). Cause: java.lang.ClassNotFoundException: Unresolved external reference: java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser. -- Unable to call the method, see the README section "Java platform issues" for details and DO NOT REPORT THIS PROBLEM TO THE PHP/Java Bridge MAILING LIST! VM: 1.6.0@http://java.sun.com/" at: #-6 php.java.bridge.JavaBridge.getUnresolvedExternalReferenceException(JavaBridge.java:433) #-5 php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1089) #-4 php.java.bridge.Request.handleRequest(Request.java:414) #-3 php.java.bridge.Request.handleRequests(Request.java:490) #-2 php.java.bridge.http.ContextRunner.run(ContextRunner.java:146) #-1 php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60) #0 http://127.0.0.1:8080/JavaBridge/java/Java.inc(248): j in http://127.0.0.1:8080/JavaBridge/java/Java.inc on line 215 Post Edited by zawmn83 at 09/13/2009 04:32
  9. Hi I'm new to Jasper report and I use iReport 3.5.3. When I add a bar chart in iReport designer, the sample chart will appear with One, Two, Three, etc. and First, Second, Third label. I note that the spacing between each category is greater than the spacing between each series bar. It is look great. But when I click Preview my report, the spacing between category and between series are almost same. I tried with different number of categories in report. But the spacing are still almost same. Is it normally same spacing ? or what's wrong with me?
×
×
  • Create New...