Jump to content
Changes to the Jaspersoft community edition download ×

ibad.rahman

Members
  • Posts

    3
  • Joined

  • Last visited

ibad.rahman's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Ah, got it, I had created a Data Adpater, but I had to go into the report's properties and specify the adapter as the data-source. Got it. Thank you so much!
  2. Hi All, I have some reports that are working fine in iReport. They are not doing anything very fancy, just taking an XML Data source and generating some proposal documents based on that. When I try to run them in JasperSoft Studio I get the following error pasted below. The report uses groovy as it's language, and all the report properties seem to be set the same as in iReport as far as I can tell, and the DataAdapter uses the same Select expression and file. What could be happening? net.sf.jasperreports.engine.JRException: net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression for source text: ((net.sf.jasperreports.engine.data.JRXmlDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("cartLine")at com.jaspersoft.studio.editor.preview.view.control.ReportControler.fillReport(ReportControler.java:524)at com.jaspersoft.studio.editor.preview.view.control.ReportControler.access$20(ReportControler.java:499)at com.jaspersoft.studio.editor.preview.view.control.ReportControler$5.run(ReportControler.java:380)at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)Caused by: net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression for source text: ((net.sf.jasperreports.engine.data.JRXmlDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("cartLine")at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:291)at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:618)at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:586)at net.sf.jasperreports.engine.fill.JRFillElement.evaluateExpression(JRFillElement.java:1020)at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluateSubreport(JRFillSubreport.java:460)at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluate(JRFillSubreport.java:351)at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:281)at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:504)at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:2026)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.BaseFillHandle$ReportFill.run(BaseFillHandle.java:119)at java.lang.Thread.run(Thread.java:745)Caused by: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'net.sf.jasperreports.engine.JREmptyDataSource@6830ad8b' with class 'net.sf.jasperreports.engine.JREmptyDataSource' to class 'net.sf.jasperreports.engine.data.JRXmlDataSource'at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType(DefaultTypeTransformation.java:360)at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.castToType(ScriptBytecodeAdapter.java:599)at GammaMain_1460740202165_624679.evaluate(calculator_GammaMain_1460740202165_624679:306)at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:277)... 14 more
  3. I am getting the exact same error, as far as I can tell. I don't know if scriptlets are involved though. I have some reports that work fine in iReports but produce errors in JasperSoft Studio. Hope someone can help with this issue.
×
×
  • Create New...