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

nkunkov

Members
  • Posts

    8
  • Joined

  • Last visited

nkunkov'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. Yes, i was able to get this to work BUT i have a more complicated scenario... I have repeating objects being printed in the detail band. For each row i have a list of objects for which i want a count printed. For example, below is what i'd like to see: Row A list of object for Row A, count is 3 object 1 object 2 object 3 Row B list of object for Row B, count is 2 object 1 object 2 Following your example i can get a count but only of the last list since the evaluation happens at Report time. So for both Row A and Row B the count will be 2. Instead of 3 for Row A and 2 for Row B. Is there a way to do what I require? I have a feeling i need to create a group on the Row ID and make the evaluation time - Group. But when i create a group i don't see the new group in the drow down of "Evaluation Time". Is there a trick to properly adding group that would appear in the dropdown? Is the group a right way to go? Thank you! N.K.
  2. Thanks so much for your reply. I did exactly as you recommended but i'm not getting a correct max_count. It just always returns 1 even though it is set to be the highest of the count variable. I have reset type set to "report" for all 3 variables, but it doesn't seem like the highest works or i'm still doing something wrong. I'm expecting 2 to be the max_count in this case, but it seems that it gets evaluated and returned when it's still 1. Any ideas?
  3. Hello, I have a list element as part of the report and i'm required to display a size of the list before it's printed. For example, if my list has 5 rows, i'd like to print "the list has 5 rows" before printing the actual list values. I tried using REPORT_COUNT variable, but it prints a row number for each row while i just need the final count printed once. Changing evaluation time didn't help much. I need a final or max count and i need to print it only once. Is this possible? Any help would be appreciated. Thanks NK
  4. Hello, I'm trying to upgrade to the latest version and getting a following error. Could you let me know how to add the certificate to my keystore? Unable to read repository at http://jasperstudio.sf.net/jssproductrepo_E4_CE/plugins/net.sf.jasperreports_6.3.1.final.jar. sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target Unable to read repository at http://jasperstudio.sf.net/jssproductrepo_E4_CE/plugins/org.apache.ant_1.9.6.v201510161327.jar. sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target Unable to read repository at http://jasperstudio.sf.net/jssproductrepo_E4_CE/plugins/org.eclipse.emf.common.ui_2.10.1.v20160208-0841.jar. sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target Unable to read repository at http://jasperstudio.sf.net/jssproductrepo_E4_CE/plugins/org.eclipse.emf.edit_2.11.1.v20160208-0841.jar. sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target Unable to read repository at http://jasperstudio.sf.net/jssproductrepo_E4_CE/plugins/org.eclipse.equinox.p2.extensionlocation_1.2.201.v20160129-0947.jar. sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target Unable to read repository at http://jasperstudio.sf.net/jssproductrepo_E4_CE/plugins/org.eclipse.jdt.debug.ui_3.7.101.v20160203-1236.jar. sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target Unable to read repository at http://jasperstudio.sf.net/jssproductrepo_E4_CE/plugins/org.eclipse.jgit_4.3.0.201604071810-r.jar. sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target Unable to read repository at http://jasperstudio.sf.net/jssproductrepo_E4_CE/plugins/org.eclipse.jgit.archive_4.3.0.201604071810-r.jar. sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target Unable to read repository at http://jasperstudio.sf.net/jssproductrepo_E4_CE/plugins/org.eclipse.jgit.http.apache_4.3.0.201604071810-r.jar. sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target Unable to read repository at http://jasperstudio.sf.net/jssproductrepo_E4_CE/plugins/org.eclipse.jgit.pgm_4.3.0.201604071810-r.jar. sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target Unable to read repository at http://jasperstudio.sf.net/jssproductrepo_E4_CE/plugins/org.eclipse.jgit.ui_4.3.0.201604071810-r.jar. sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target Unable to read repository at http://jasperstudio.sf.net/jssproductrepo_E4_CE/plugins/org.eclipse.osgi_3.10.102.v20160118-1700.jar. sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target Unable to read repository at http://jasperstudio.sf.net/jssproductrepo_E4_CE/plugins/org.eclipse.pde.core_3.10.102.v20160128-0556.jar. sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target Unable to read repository at http://jasperstudio.sf.net/jssproductrepo_E4_CE/plugins/org.eclipse.pde.launching_3.6.301.v20160128-0556.jar. sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
  5. Well, after resizing the subreports and a main report the problem went away. But it's very obscure. It would be great to know some basic rules so that this doesn't happen. I'm sure this has to do with sizing of some of the bands but i can't put a finger on it. Are there some guidelines? Why does this usually happen? Thank you NK
  6. Hello, I have a main report with multiple subreports. Most of subreports are fairily simple and all works well. One of the subreports is quite large. It has 3 List elements in a single detail band with some other fields. One of the list elements has a list element inside it. Not sure if this is a wrong thing to do. I have a JSON datasource which has arrays inside arrays. When i added this last subreport to the main report - the main report keeps generating thousands of pages without stopping. The only way to generate a report is to remove some of the data from the last subreport and make it's detail band a lot smaller. What causes something like this? How should i structure the report that has multiple arrays within arrays? Is it a problem with the subreport or with the main report? I use Tibco Jaspersoft studio 6.2.1 Any help would be appreciated. NK
  7. Hi Lucian, Here is the stack trace: net.sf.jasperreports.engine.JRRuntimeException: java.lang.StackOverflowErrorat net.sf.jasperreports.engine.fill.JRFillSubreport.prepare(JRFillSubreport.java:886)at net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:352)at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:421)at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:396)at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:2060)at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:752)at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:259)at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:119)at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:558)at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:164)at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:474)at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:875)...................a few references to our custom code here..................... at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)at java.lang.Thread.run(Thread.java:745)Caused by: java.lang.StackOverflowErrorat java.util.HashMap$EntryIterator.<init>(HashMap.java:1469)at java.util.HashMap$EntrySet.iterator(HashMap.java:1013)at java.util.AbstractMap.hashCode(AbstractMap.java:528) I looked through similar postings and they indicated that this may potentially be caused by the Javaflow library. I have both a regular jasperreports library and a javaflow library in the class path. I tried to exclude javaflow libraries from the build but wasn't able to as there is still some dependency there. Instead, i added a jasperreports.properties files that hasnet.sf.jasperreports.subreport.runner.factory=net.sf.jasperreports.engine.fill.ThreadPoolSubreportRunnerFactory.Before, the default.jasperreports.properties was used and I guess the one that comes from javaflow took precedenceso the original property was net.sf.jasperreports.subreport.runner.factory=net.sf.jasperreports.engine.fill.JRContinuationSubreportRunnerFactory.Now, with ThreadPoolSubreportRunnerFactory property, i don't get the stackOverflowError anymore.That being said, I'm not sure what I did was correct and the problem won't resurface again later.Do you think this should solve the problem? Do we know why Javaflow may cause problems? Should I expect the error to re-appear? Thanks for your help!NK
  8. Hello, I'm using Jasperreports 6.2.0. I have a report with a number of subreports and getting a stackoverlow error. I'm calling Jasper from a Java application running on Tomcat. Looks like it's going into an infinite loop iterating over a map. Stack trace below. Looking at other posts, this could be related to the parameters map or to the logger. But all the information I could find was for the earlier versions. Any help would be appreciated. at net.sf.jasperreports.engine.fill.JRFillSubreport.prepare(JRFillSubreport.java:886)at net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:352)at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:421)at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:396)at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:2060)at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:752)at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:259)at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:119)at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:558)at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:164)at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:474)at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:875)............................................................................ Caused by: java.lang.StackOverflowErrorat java.util.HashMap$EntryIterator.<init>(HashMap.java:1469)at java.util.HashMap$EntrySet.iterator(HashMap.java:1013)at java.util.AbstractMap.hashCode(AbstractMap.java:528)at java.util.Objects.hashCode(Objects.java:98)at java.util.HashMap$Node.hashCode(HashMap.java:296)at java.util.AbstractMap.hashCode(AbstractMap.java:530)at java.util.Objects.hashCode(Objects.java:98)at java.util.HashMap$Node.hashCode(HashMap.java:296)at java.util.AbstractMap.hashCode(AbstractMap.java:530)at java.util.Objects.hashCode(Objects.java:98)at java.util.HashMap$Node.hashCode(HashMap.java:296)at java.util.AbstractMap.hashCode(AbstractMap.java:530)at java.util.Objects.hashCode(Objects.java:98)at java.util.HashMap$Node.hashCode(HashMap.java:296)at java.util.AbstractMap.hashCode(AbstractMap.java:530)at java.util.Objects.hashCode(Objects.java:98)Thank you
×
×
  • Create New...