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

stevelackey

Members
  • Posts

    7
  • Joined

  • Last visited

stevelackey'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. We are having a display problem with certain text that wraps within a field in PDF documents. In some cases, text is being chopped off of the end of the field. We've noticed that the problem happens when a text field has HTML super script tags (<sup> </sup>). But the problem does not always occur with super script tags - some data fields with super script tags display fine. We are using JasperReports 3.7.4. We are running on an AIX server and sending PDF's to a browser. The problem happens with both FF and IE. I've included a code snippet below. The problem field is the field that starts at "x=0". I've also attached the .jrxml file. Code: <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement stretchType="RelativeToTallestObject" x="0" y="3" width="166" height="10"> <printWhenExpression><![CDATA[!$P{PRODUCT}.isAwp()]]></printWhenExpression> </reportElement> <textElement markup="html"> <font fontName="Arial" size="8" isPdfEmbedded="true"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[com.lfg.afpq.util.PresentationUtils.getInstanceHtml().getFundName($P{PRODUCT}, $F{pfl})]]></textFieldExpression> </textField> <textField pattern="" isBlankWhenNull="false"> <reportElement stretchType="RelativeToTallestObject" x="212" y="3" width="32" height="10"/> <textElement textAlignment="Center"> <font fontName="Arial" size="8" isPdfEmbedded="true"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[com.lfg.afpq.util.PresentationUtils.formatValue($F{dailyChange},"0.00;-0.00",2)]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement stretchType="RelativeToTallestObject" x="0" y="3" width="134" height="10" forecolor="#000000"> <printWhenExpression><![CDATA[$P{PRODUCT}.isAwp()]]></printWhenExpression> </reportElement> <textElement markup="html"> <font fontName="Arial" size="8" isPdfEmbedded="true"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[com.lfg.afpq.util.PresentationUtils.getInstanceHtml().getFundName($P{PRODUCT}, $F{pfl})]]></textFieldExpression> </textField>
  2. I've attached a copy of the report (actually a subreport). No that's not the entire stack trace. I'll include a little more here: Exception in thread "main" net.sf.jasperreports.engine.JRRuntimeException: java.lang.StackOverflowError at net.sf.jasperreports.engine.fill.JRFillSubreport.prepare(JRFillSubreport.java:710) at net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:329) at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:419) at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:378) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:2018) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:757) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportContent(JRVerticalFiller.java:289) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:131) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:938) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:841) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:58) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:417) at com.lfg.jasper.JasperTest.main(JasperTest.java:74) Caused by: java.lang.StackOverflowError at java.util.HashMap$EntryIterator.<init>(HashMap.java:832) at java.util.HashMap$EntryIterator.<init>(HashMap.java:832) at java.util.HashMap.newEntryIterator(HashMap.java:846) at java.util.HashMap$EntrySet.iterator(HashMap.java:950) at java.util.AbstractMap.hashCode(AbstractMap.java:459) at java.util.HashMap$Entry.hashCode(HashMap.java:720) at java.util.AbstractMap.hashCode(AbstractMap.java:461) at java.util.HashMap$Entry.hashCode(HashMap.java:720) at java.util.AbstractMap.hashCode(AbstractMap.java:461) at java.util.HashMap$Entry.hashCode(HashMap.java:720) Below this are just more calls to AbstractMap and Hashmap. Thanks!
  3. I have a report that has been working fine for a couple of months. But a recent data load caused it to break. I get a Java stack trace, part of which is this... Exception in thread "main" net.sf.jasperreports.engine.JRRuntimeException: java.lang.StackOverflowError at net.sf.jasperreports.engine.fill.JRFillSubreport.prepare(JRFillSubreport.java:710) at net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:329) at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:419) at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:378) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:2018) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:757) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportContent(JRVerticalFiller.java:289) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:131) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:938) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:841) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:58) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:417) I've isolated the issue down the one line in my jrxml that is causing the problem: <textFieldExpression class="java.lang.String"><![CDATA[$F{FTTH_CO_NME}]]></textFieldExpression> In looking at some of the new data that was recently loaded, I see strings with Scandinavian charcters (e.g., a "y" with two dots above it) that I suspect are causing the problem. Does anybody have any suggestions on how to deal with this? Thanks.
  4. Just an FYI, I pulled the left side section of the report out of the main report and into its own subreport. When I do that, the isRemoveLineWhenBlank works like I want it to. However, I think the frame approach is cleaner and I'd like to use it. If I could get it working.
  5. Thank you so much for helping. I've attached my report template files. BTW - I put them back to where they were (i.e., I took the frame back out).
  6. Thanks for the advice. I put a frame around the section to the left, but unfortunately I got the same results. I might try to put the section on the left in its own subreport (like the other two sections) to see if that might solve the problem.
  7. I have a report that looks like this: Main Section Subreport #1 Subreport #2 Label 1 Data 1 S1 Row 1 S2 Row 1 Label 2 Data 2 S1 Row 2 S2 Row 2 Label 3 Data 3 S1 Row 3 S2 Row 3 In the Main Section, I want the data (and labels) to "shift up" when data items above them are null or blank. So I use the isRemoveLineWhenBlank="true" parameter on them. But the data is not shifting up because there is data in the same row of the two subreports. If I comment out the calls to the two subreports, things work as expected (the data "shift's up" appropriately). But how can I get this to work when the Subreports have data? Thanks.
×
×
  • Create New...