sumithnangunuri Posted June 21, 2018 Share Posted June 21, 2018 hi,I am creating a sub-report which is part of main report. When I am running sub-report individually it is working fine without any errors,but when I am running using main report it is raising an error as below shown.Some times sub-report in my main report is working fine,sometimes its not working fine and raising an error as shown below.Please suggest me any one how to resolve my error.Thank's in advance.Error filling print... net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression : Source text : (($V{poa}*100)/($V{COLUMN_COUNT}*3))>=70 net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression : Source text : (($V{poa}*100)/($V{COLUMN_COUNT}*3))>=70 at net.sf.jasperreports.engine.fill.JRFillSubreport.prepare(JRFillSubreport.java:729) at net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:328) at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:388) at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:347) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:2071) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:761) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:271) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:129) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:903) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:813) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:58) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:417) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:247) at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:878) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997) Caused by: net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression : Source text : (($V{poa}*100)/($V{COLUMN_COUNT}*3))>=70 at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:203) at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:589) at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:557) at net.sf.jasperreports.engine.fill.JRFillElementContainer.buildConsolidatedStyle(JRFillElementContainer.java:753) at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluateConditionalStyle(JRFillElementContainer.java:719) at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluateConditionalStyles(JRFillElementContainer.java:707) at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:467) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummaryNoLastFooterNewPage(JRVerticalFiller.java:1177) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummary(JRVerticalFiller.java:1042) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportEnd(JRVerticalFiller.java:302) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:136) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:903) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:813) at net.sf.jasperreports.engine.fill.JRFillSubreport.fillSubreport(JRFillSubreport.java:627) 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:744) Caused by: java.lang.ArithmeticException: Division by zero at java.math.BigDecimal.divide(BigDecimal.java:1669) at org.codehaus.groovy.runtime.typehandling.BigDecimalMath.divideImpl(BigDecimalMath.java:66) at org.codehaus.groovy.runtime.typehandling.IntegerMath.divideImpl(IntegerMath.java:46) at org.codehaus.groovy.runtime.dgmimpl.NumberNumberDiv$NumberNumber.invoke(NumberNumberDiv.java:320) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124) at COPO_1528867947635_263995.evaluate(calculator_COPO_1528867947635_263995:333) at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:190) ... 16 more Print not filled. Try to use an EmptyDataSource...[/code] Link to comment Share on other sites More sharing options...
hozawa Posted June 22, 2018 Share Posted June 22, 2018 Error in the following statement. Check if $V{poa} or $V{COLUMN_COUNT} is null or empty.(($V{poa}*100)/($V{COLUMN_COUNT}*3))>=70 Link to comment Share on other sites More sharing options...
sumithnangunuri Posted June 22, 2018 Author Share Posted June 22, 2018 I dont understand that above error is raised only when the subreport is integrated into my main report, when I run subreport independently its working fine.If it is null or empty the subreport also should not be work fine is it right.Please suggest me with your answers to resolve my error. Link to comment Share on other sites More sharing options...
sumithnangunuri Posted June 22, 2018 Author Share Posted June 22, 2018 Thank's for your response,I dont understand that above error is raised only when the subreport is integrated into my main report, when I run subreport independently its working fine.If it is null or empty the subreport also should not be work fine is it right.Please suggest me with your answers to resolve my error. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now