Jump to content
Changes to the Jaspersoft community edition download ×

Scriptlet, Subreport, MasterReport


Recommended Posts

By: alexdubr - alexdubr

Scriptlet, Subreport, MasterReport

2006-02-28 03:39

Hi,

 

I've got a following problem:

I have a scriptlet, which process dates from the subreport. This two are working perfectly, but when I'm running the MasterReport it shows me: 'net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression : Source text : $P{REPORT_SCRIPTLET}.parse($F{D31},22)'(parse it is function in scritrlet, $F{D31} is a string which I'm selecting from the database). Nevertheless subreport and masterreport without scriptlet working perfectly, but this time database works very busy, what is not good for me. Please people help me...

 

 

 

 

By: Lucian Chirita - lucianc

RE: Scriptlet, Subreport, MasterReport

2006-03-03 01:46

Hi

 

Do you have a longer exception stack trace?

 

Which JR version do you use?

 

Are by any chance using $P{REPORT_PARAMETERS_MAP} as parametersMapExpression for the subreport?

 

Regards,

Lucian

 

 

By: alexdubr - alexdubr

Scriptlet, Subreport, MasterReport

2006-03-05 12:07

I'm using 1.2.0 ver.

 

here is full track:

Compiling to file... .untitled_report_1.jasper -> C:Documents and SettingsAlexanderDesktopiReport-1.2.0iReport-1.2.0untitled_report_1.java

it.businesslogic.ireport.ReportClassLoader@16ca577

Compilation running time : 125

Filling report...

Locale: English (United States)

Error filling print...

NESTED BY :

java.lang.ClassCastException: Rep at untitled_report_2_1141587905328_754041.evaluate(untitled_report_2_1141587905328_754041:159)

at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:170)

at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:556)

at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:524)

at net.sf.jasperreports.engine.fill.JRFillElement.evaluateExpression(JRFillElement.java:952)

at net.sf.jasperreports.engine.fill.JRFillTextField.evaluateText(JRFillTextField.java:337)

at net.sf.jasperreports.engine.fill.JRFillTextField.evaluate(JRFillTextField.java:324)

at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:275)

at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:399)

at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:1300)

at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:631)

at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:228)

at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:128)

at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:730)

at net.sf.jasperreports.engine.fill.JRFillSubreport.run(JRFillSubreport.java:477)

at java.lang.Thread.run(Thread.java:595)

NESTED BY : net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression : Source text : $P{REPORT_SCRIPTLET}.getsmth($F{adrees})

at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:181)

at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:556)

at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:524)

at net.sf.jasperreports.engine.fill.JRFillElement.evaluateExpression(JRFillElement.java:952)

at net.sf.jasperreports.engine.fill.JRFillTextField.evaluateText(JRFillTextField.java:337)

at net.sf.jasperreports.engine.fill.JRFillTextField.evaluate(JRFillTextField.java:324)

at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:275) a

t net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:399)

at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:1300)

at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:631)

at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:228)

at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:128)

at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:730)

at net.sf.jasperreports.engine.fill.JRFillSubreport.run(JRFillSubreport.java:477)

at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.ClassCastException: Rep

at untitled_report_2_1141587905328_754041.evaluate(untitled_report_2_1141587905328_754041:159)

at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:170) ... 14 more

Print not filled. Try to use an EmptyDataSource...!

 

regarding $P{REPORT_PARAMETERS_MAP}... well it's not suitable for me...

 

thanks

 

 

By: Lucian Chirita - lucianc

RE: Scriptlet, Subreport, MasterReport

2006-03-09 00:28

Sorry, I'm not able to make anything out of the stack trace..

 

Could you post your <subreport> element? Also, what is Rep? Is it the master's or subreport's scriptlet class?

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...