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

chinnu9999

Members
  • Posts

    7
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by chinnu9999

  1. hi , we are using jasper reports version :1.2.5, we have migrated to 4.5.1 but the patch is still not in production. Suddenly after more than one year in production Null Pointer is thrown from two jasper files, stacktrace : java.lang.NullPointerException at net.sf.jasperreports.engine.util.JRStyleResolver.isStyledText(JRStyleResolver.java:613) at net.sf.jasperreports.engine.fill.JRFillTextElement.isStyledText(JRFillTextElement.java:261) at net.sf.jasperreports.engine.fill.JRFillTextElement.createTextChopper(JRFillTextElement.java:121) at net.sf.jasperreports.engine.fill.JRFillTextElement.(JRFillTextElement.java:92) at net.sf.jasperreports.engine.fill.JRFillStaticText.(JRFillStaticText.java:60) at net.sf.jasperreports.engine.fill.JRFillObjectFactory.getStaticText(JRFillObjectFactory.java:494) at net.sf.jasperreports.engine.base.JRBaseStaticText.getCopy(JRBaseStaticText.java:93) at net.sf.jasperreports.engine.fill.JRFillElementGroup.(JRFillElementGroup.java:88) at net.sf.jasperreports.engine.fill.JRFillElementContainer.(JRFillElementContainer.java:90) at net.sf.jasperreports.engine.fill.JRFillBand.(JRFillBand.java:77) at net.sf.jasperreports.engine.fill.JRFillObjectFactory.getBand(JRFillObjectFactory.java:374) at net.sf.jasperreports.engine.fill.JRFillGroup.(JRFillGroup.java:77) at net.sf.jasperreports.engine.fill.JRFillObjectFactory.getGroup(JRFillObjectFactory.java:353) at net.sf.jasperreports.engine.fill.JRFillVariable.(JRFillVariable.java:85) at net.sf.jasperreports.engine.fill.JRFillObjectFactory.getVariable(JRFillObjectFactory.java:333) at net.sf.jasperreports.engine.fill.JRFillDataset.addVariable(JRFillDataset.java:281) at net.sf.jasperreports.engine.fill.JRFillDataset.setVariables(JRFillDataset.java:271) at net.sf.jasperreports.engine.fill.JRFillDataset.(JRFillDataset.java:225) at net.sf.jasperreports.engine.fill.JRFillObjectFactory.getDataset(JRFillObjectFactory.java:1032) at net.sf.jasperreports.engine.fill.JRBaseFiller.(JRBaseFiller.java:375) at net.sf.jasperreports.engine.fill.JRVerticalFiller.(JRVerticalFiller.java:92) at net.sf.jasperreports.engine.fill.JRVerticalFiller.(JRVerticalFiller.java:74) at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:147) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:83) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:601) at net.sf.jasperreports.engine.JasperFillManager.fillReportToFile(JasperFillManager.java:492) at net.sf.jasperreports.engine.JasperFillManager.fillReportToFile(JasperFillManager.java:448) java.lang.NullPointerException at net.sf.jasperreports.engine.util.JRStyleResolver.isStyledText(JRStyleResolver.java:613) at net.sf.jasperreports.engine.fill.JRFillTextElement.isStyledText(JRFillTextElement.java:261) at net.sf.jasperreports.engine.fill.JRFillTextElement.createTextChopper(JRFillTextElement.java:121) at net.sf.jasperreports.engine.fill.JRFillTextElement.(JRFillTextElement.java:92) at net.sf.jasperreports.engine.fill.JRFillTextField.(JRFillTextField.java:80) at net.sf.jasperreports.engine.fill.JRFillObjectFactory.getTextField(JRFillObjectFactory.java:514) at net.sf.jasperreports.engine.base.JRBaseTextField.getCopy(JRBaseTextField.java:256) at net.sf.jasperreports.engine.fill.JRFillElementGroup.(JRFillElementGroup.java:88) at net.sf.jasperreports.engine.fill.JRFillElementContainer.(JRFillElementContainer.java:90) at net.sf.jasperreports.engine.fill.JRFillBand.(JRFillBand.java:77) at net.sf.jasperreports.engine.fill.JRFillObjectFactory.getBand(JRFillObjectFactory.java:374) at net.sf.jasperreports.engine.fill.JRFillGroup.(JRFillGroup.java:76) at net.sf.jasperreports.engine.fill.JRFillObjectFactory.getGroup(JRFillObjectFactory.java:353) at net.sf.jasperreports.engine.fill.JRFillVariable.(JRFillVariable.java:85) at net.sf.jasperreports.engine.fill.JRFillObjectFactory.getVariable(JRFillObjectFactory.java:333) at net.sf.jasperreports.engine.fill.JRFillDataset.addVariable(JRFillDataset.java:281) at net.sf.jasperreports.engine.fill.JRFillDataset.setVariables(JRFillDataset.java:271) at net.sf.jasperreports.engine.fill.JRFillDataset.(JRFillDataset.java:225) at net.sf.jasperreports.engine.fill.JRFillObjectFactory.getDataset(JRFillObjectFactory.java:1032) at net.sf.jasperreports.engine.fill.JRBaseFiller.(JRBaseFiller.java:375) at net.sf.jasperreports.engine.fill.JRVerticalFiller.(JRVerticalFiller.java:92) at net.sf.jasperreports.engine.fill.JRVerticalFiller.(JRVerticalFiller.java:74) at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:147) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:83) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:601) at net.sf.jasperreports.engine.JasperFillManager.fillReportToFile(JasperFillManager.java:492) at net.sf.jasperreports.engine.JasperFillManager.fillReportToFile(JasperFillManager.java:448) i have downloaded the source for Jasper version 1.2.5 and it is showing the null pointer in JRStyleResolver.java at the following highlighted line /** * */ public static boolean isStyledText(JRTextElement element) { if (element.isOwnStyledText() != null) return element.isOwnStyledText().booleanValue(); JRStyle baseStyle = getBaseStyle(element); if (baseStyle != null && baseStyle.isStyledText() != null) return baseStyle.isStyledText().booleanValue(); return false; } Any help in this ? Thanks, Chinnu
  2. hi, i faced the same problem last week when we migrated from Jasper reports 1.2.x to 4.5.1. Following links might help solve this: http://community.jaspersoft.com/questions/530776/need-help-361-and-jrfontnotfoundexception http://community.jaspersoft.com/questions/542679/font-provided-font-extension-not-working-charts-or-pdf-export http://stackoverflow.com/questions/3811908/jvm-fonts-and-jasperreports http://mdahlman.wordpress.com/2010/05/28/jaspersoft-v3-7-font-extensions/ At last we have decided that we will install the missing font on linux (JVM) . Install font “Arial” on Linux: ==================== Step1:Check whether font "Arial" is already installed on the box : ============================================================== log in with any user name and type the following command : fc-list | grep Arial if found no need to install the font. Step2:Install the font "Arial" if not available on the box: ======================================================= 1)log in as root 2)move to /usr/share/fonts and create a folder with name as "truetype". 3)copy the font file "Arial.ttf" (found in windows/fonts on WinXp) into the folder "truetype". 4)run the command following command to see whether the font is installed properly fc-list | grep Arial Thanks, Chinnu
  3. hi all, i have the same scenario of stopping the report generation in the middle if the report generation is taking too much of a time based on my data. is there a way to stop the generation once the export has kick started ? i mean once the method exporter.exportReport(); is called ? I have seen some code like Thread.isInterrupted in the Exporter classes in the Jasper reports Source ,but i am unable to stop the exporting in the middle . Any help in this regard? Thanks, Chinnu
  4. hi all, i have the same scenario of stopping the report generation in the middle if the report generation is taking too much of a time based on my data, is there a way to stop the generation once the export has kick started ? i mean once the method exporter.exportReport(); is called ? I have seen some code like Thread.isInterrupted in the Exporter classes in the Jasper reports Source ,but i am unable to stop the exporting in the middle . Any help in this regard? Thanks, Chinnu
  5. these methods with signature loadJasperPrint* are not available in latest version 4.5, could u please confirm? lucian could u please give a sample code to add virtualizer technique while exporting large reports to xls. Regards, chinnu
  6. i was trying to export a very large (180MB JRPrint) to Excel format, it gave me an Out of memory. As part of googgling , i was following both the following URLS closely, http://stackoverflow.com/questions/7560499/jasper-reports-outofmemoryerror-on-export http://jasperforge.org/plugins/mantis/view.php?id=5478 It was mentioned that this is a feature request which deals with introducing virtualizer concept on Exporting side also , as we know it is present in JRPrint generation side already. Added loadJasperPrint* methods with JRVirtualizer arguments in JRLoader for better visibility of this feature. these methods with signature loadJasperPrint* are not available in latest version 4.5, could u please confirm? could anyone please give a sample code to add virtualizer technique while exporting large reports to xls. Regards, chinnu
  7. i am facing the same issue on websphere and i am using the older version of jasper reports 1.2.5? i want to upgrade to the latest version to get rid of other issues, can someone tell whether this issue is fixed as part of a bug and please give the bugid if possible? Thanks
×
×
  • Create New...