Error evaluating expression for source text:

1

Error Details

Error Message

Error filling report

Error Trace

 com.jaspersoft.jasperserver.api.JSException: Error filling report Arguments: at
 com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$FillResultListener.reportFillError(EngineServiceImpl.java:1294) at
 net.sf.jasperreports.engine.fill.BaseFillHandle.notifyError(BaseFillHandle.java:210) at
 net.sf.jasperreports.engine.fill.BaseFillHandle$ReportFill.run(BaseFillHandle.java:134) at
 com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$SynchronousExecutor.execute(EngineServiceImpl.java:922) at
 net.sf.jasperreports.engine.fill.BaseFillHandle.startFill(BaseFillHandle.java:164) at
 com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$AsynchronousReportFiller.fillReport(EngineServiceImpl.java:878) at
 com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl.fillReport(EngineServiceImpl.java:1774) at
 com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportFill.runWithDataSource(EngineServiceImpl.java:1118) at
 com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportFill.runReport(EngineServiceImpl.java:1047) at
 com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportRunnable.run(EngineServiceImpl.java:944) at
 java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at
 java.lang.Thread.run(Unknown Source) 
 Caused by: net.sf.jasperreports.engine.fill.JRExpressionEvalException:
     Error evaluating expression for source text:
     $F{HM_OUTP_RECEIPTS_COV_DISC}+$F{HM_OUTP_RECEIPTS_CASH_DISC}+$F{HM_OUTP_RECEIPTS_ADD_DIS} at
 net.sf.jasperreports.engine.fill.JREvaluator.evaluateEstimated(JREvaluator.java:357) at
 net.sf.jasperreports.engine.fill.JRCalculator.evaluateEstimated(JRCalculator.java:609) at
 net.sf.jasperreports.engine.fill.JRCalculator.estimateVariables(JRCalculator.java:208) at
 net.sf.jasperreports.engine.fill.JRFillDataset.next(JRFillDataset.java:1276) at
 net.sf.jasperreports.engine.fill.JRFillDataset.next(JRFillDataset.java:1250) at
 net.sf.jasperreports.engine.fill.JRBaseFiller.next(JRBaseFiller.java:1010) at
 net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:121) at
 net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:558) at
 net.sf.jasperreports.engine.fill.BaseFillHandle$ReportFill.run(BaseFillHandle.java:119) ... 10 more 
 Caused by: groovy.lang.GroovyRuntimeException:
     Ambiguous method overloading for method java.math.BigDecimal#plus.
     Cannot resolve which method to invoke for [null] due to overlapping prototypes between:
     [class java.lang.Character] [class java.lang.String]
     [class java.lang.Number] [class java.math.MathContext] at
 groovy.lang.MetaClassImpl.chooseMostSpecificParams(MetaClassImpl.java:3238) at
 groovy.lang.MetaClassImpl.chooseMethodInternal(MetaClassImpl.java:3191) at
 groovy.lang.MetaClassImpl.chooseMethod(MetaClassImpl.java:3134) at
 groovy.lang.MetaClassImpl.getMethodWithCachingInternal(MetaClassImpl.java:1325) at
 groovy.lang.MetaClassImpl.createPojoCallSite(MetaClassImpl.java:3367) at
 org.codehaus.groovy.runtime.callsite.CallSiteArray.createPojoSite(CallSiteArray.java:129) at
 org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallSite(CallSiteArray.java:163) at
 org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at
 org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:55) at
 org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:122) at
 report1_1476812987006_838301.evaluateEstimated(calculator_report1_1476812987006_838301:655) at
 net.sf.jasperreports.engine.fill.JREvaluator.evaluateEstimated(JREvaluator.java:343) ... 18 more
 

sorry i new to use this report server but i need help

this report its working good on ireport but when i publish this error appear i post before

Error is limited to field T-discount because i sum all discount from database to this field ($F{HM_OUTP_RECEIPTS_COV_DISC}+$F{HM_OUTP_RECEIPTS_CASH_DISC}+$F{HM_OUTP_RECEIPTS_ADD_DIS)




it.ahmedosama's picture
Joined: Nov 25 2013 - 1:59am
Last seen: 1 year 5 months ago

3 Answers:

0

Ok so not sure what your question is. Need a lot more information. 
Seems that you have an issues with your expression. Did you test the report in jasperstudio/ireport before deploying to jaspersever ?

Error evaluating expression for source text: $F{HM_OUTP_RECEIPTS_COV_DISC}+$F{HM_OUTP_RECEIPTS_CASH_DISC}+$F{HM_OUTP_RECEIPTS_ADD_DIS

joseng62's picture
600
Joined: Dec 5 2014 - 2:43am
Last seen: 3 days 2 hours ago
0

Seems like one of your field is return null and groovy doesn't know how to handle it. Can avoid this by checking for null in your expression.

hozawa's picture
42004
Joined: Apr 24 2010 - 4:31pm
Last seen: 9 hours 9 min ago
0

sorry i new to use this report server but i need help

this report its working good on ireport but when i publish this error appear i post before

Error is limited to field T-discount because i sum all discount from database to this field ($F{HM_OUTP_RECEIPTS_COV_DISC}+$F{HM_OUTP_RECEIPTS_CASH_DISC}+$F{HM_OUTP_RECEIPTS_ADD_DIS)

it.ahmedosama's picture
Joined: Nov 25 2013 - 1:59am
Last seen: 1 year 5 months ago
Feedback
randomness