{"id":2731,"date":"2022-08-30T15:27:18","date_gmt":"2022-08-30T15:27:18","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/02\/08\/jasperreports-doenst-give-any-information-where-the-error-occurs-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:27:18","modified_gmt":"2022-08-30T15:27:18","slug":"jasperreports-doenst-give-any-information-where-the-error-occurs-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/jasperreports-doenst-give-any-information-where-the-error-occurs-collection-of-common-programming-errors\/","title":{"rendered":"JasperReports doens&#39;t give any information where the error occurs-Collection of common programming errors"},"content":{"rendered":"<p>When I try to run a report in JasperReports it suddenly crashes, and as far as I know, it&#8217;s because of the subreport. The problem is that it only crashes for one particular input, the others works fine. When I run the subreport for every input case that the main report shall give it, it doesn&#8217;t crash at all. The error message doesn&#8217;t give me any clue about where to look.<\/p>\n<p>The server has encountered an error. Please excuse the inconvenience.<\/p>\n<pre><code>Error Message\n\njava.lang.ClassCastException: java.lang.Integer cannot be cast to java.math.BigDecimal\n\nError Trace\n\njava.lang.ClassCastException: java.lang.Integer cannot be cast to java.math.BigDecimal at net.sf.jasperreports.engine.fill.JRBigDecimalSumIncrementer.increment(JRBigDecimalIncrementerFactory.java:302) at net.sf.jasperreports.engine.fill.JRAbstractExtendedIncrementer.increment(JRAbstractExtendedIncrementer.java:42) at net.sf.jasperreports.engine.fill.JRCalculator.calculateVariables(JRCalculator.java:144) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:742) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:265) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:128) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:836) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:746) at net.sf.jasperreports.engine.fill.JRFillSubreport.fillSubreport(JRFillSubreport.java:640) at net.sf.jasperreports.engine.fill.JRSubreportRunnable.run(JRSubreportRunnable.java:59) at net.sf.jasperreports.engine.fill.JRThreadSubreportRunner.run(JRThreadSubreportRunner.java:205) at java.lang.Thread.run(Thread.java:619)\n<\/code><\/pre>\n<p id=\"rop\"><small>Originally posted 2014-02-08 03:40:14. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>When I try to run a report in JasperReports it suddenly crashes, and as far as I know, it&#8217;s because of the subreport. The problem is that it only crashes for one particular input, the others works fine. When I run the subreport for every input case that the main report shall give it, it [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2731","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2731","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2731"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2731\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2731"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2731"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2731"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}