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

gbaldeck

Members
  • Posts

    9
  • Joined

  • Last visited

gbaldeck's Achievements

Apprentice

Apprentice (3/14)

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

Recent Badges

0

Reputation

  1. Hi everybody, I have a report that has a subreport and then that subreport has its own subreport. The problem i'm having is when it gets to the last subreport it seems to be getting stuck in an infinite loop. There are only 26 objects that should be showing up in that subreport (I checked how big the arraylist was before it is passed to jasper reports). But when I put a print statement on one of the functions being called by jasper reports it prints atleast 1000 times and keeps going. Eventually the memory is used up and I have to cancel the process. Anyone have any ideas what could be causing this? -Graham
  2. I found that the page numbers were set to reset on group. So I made a new subreport with it's own page numbers and that fixed all the problems.
  3. Thank you for the answer. This did not solve the problem though. It still does the exact same thing. I have cleared my java cache, cleaned and rebuilt my code, and recompiled the jasper reports. All this after the changes you suggested and it made no difference. I do think that is the correct way to do it though. The way it is setup in my other reports is exactly like that. There is something else going on here that is causing the problem though. Any other ideas?
  4. Hi, I am using iReport 4.0.0 and I'm trying to display the total number of pages on the header page. I am using the PAGE_COUNT variable to do this. The problem is PAGE_COUNT keeps giving 0 pages no matter how many pages are there. Also, when I use the PAGE_NUMBER variable it keeps saying each page is page 1. I have a subreport with a nested subreport but the PAGE_COUNT and PAGE_NUMBER aren't used anywhere in those. They are only used at the top level of the report. I have many other reports that these variables work in but for some reason they aren't working with this one. What could be causing this?
  5. I fixed it. It was a problem with one of my datasources. I was passing null as the datasource when the list was empty when I should have just been passing an empty list.
  6. Hi, I have a report that is getting an error when run. It is saying that in one of my datasources there is a field that it can't get. However I've looked in all my jrxml files and this field doesn't exist anywhere. Also, the datasources I'm using dont have this property defined anywhere either. It is non-existant in all my java files and jrxml files but I'm still getting the error. What could be causing this? Here's the stack trace: net.sf.jasperreports.engine.JRException: Error retrieving field value from bean : contractNumber at net.sf.jasperreports.engine.data.JRAbstractBeanDataSource.getBeanProperty(JRAbstractBeanDataSource.java:123) at net.sf.jasperreports.engine.data.JRAbstractBeanDataSource.getFieldValue(JRAbstractBeanDataSource.java:96) at net.sf.jasperreports.engine.data.JRBeanCollectionDataSource.getFieldValue(JRBeanCollectionDataSource.java:100) at net.sf.jasperreports.engine.fill.JRFillDataset.setOldValues(JRFillDataset.java:823) at net.sf.jasperreports.engine.fill.JRFillDataset.next(JRFillDataset.java:787) at net.sf.jasperreports.engine.fill.JRBaseFiller.next(JRBaseFiller.java:1478) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:125) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:942) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:860) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:84) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:624) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:605) at com.airit.propworks.gui.report.PWReport.buildReport(PWReport.java:292) at com.airit.propworks.gui.billing.report.ConcessionActivitySummaryReportManager.runReport(ConcessionActivitySummaryReportManager.java:37) at com.airit.propworks.gui.PWReportForm$ReportWorker.doInBackground(PWReportForm.java:389) at com.airit.propworks.gui.PWReportForm$ReportWorker.doInBackground(PWReportForm.java:383) at javax.swing.SwingWorker$1.call(SwingWorker.java:277) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at javax.swing.SwingWorker.run(SwingWorker.java:316) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.NoSuchMethodException: Unknown property 'contractNumber' at org.apache.commons.beanutils.PropertyUtilsBean.getSimpleProperty(PropertyUtilsBean.java:1122) at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:686) at org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean.java:715) at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:290) at net.sf.jasperreports.engine.data.JRAbstractBeanDataSource.getBeanProperty(JRAbstractBeanDataSource.java:111) ... 22 more
  7. That worked! The file you attached looks like a huge help too. Thank you.
  8. Hi, I have a text field that contains some text. I don't want to bold all of it, only part of it. Here is the xml of the text field: <textFieldExpression class="java.lang.String"><![CDATA[$R{statementMessage.report.label}+": "+$P{StatementMessage}]]></textFieldExpression> Here is how I tried to do it: <textFieldExpression class="java.lang.String"><![CDATA[<style isBold="true" pdfFontName="Helvetica-Bold">$R{statementMessage.report.label}+": "</style>+$P{StatementMessage}]]></textFieldExpression> Notice the style tags I used. That didn't work. I've tried several other ways but none of them worked. How should I go about doing this?
  9. Hi, I am trying to setup a row group in a crosstab within iReport. This row group uses three strings concatenated together. When any one of them changes a new row is made. The problem I'm having is that these three strings are taken and stored in a variable. Once they are in this variable the only way to get at them is to split the variable based on a delimiter, and then display them. It seems that I cannot get at the strings individually without using a delimiter. I need a different way of getting at these strings. I cannot use a delimiter to split the variable apart because its possible that the delimiter will be in the string more often than I want it to be (giving me more than 3 strings back). But it seems that I can't just use the individual strings because the rows will not print correctly. What can I do to solve this?
×
×
  • Create New...