Jump to content

Error While Previewing the Report


su2

Recommended Posts

Hello Friends,

I am newbie to ireport/jasperreport.

I added a new successful database connection in my service window. I am able to see all the tables in the tree view.

I added a simple SQL query to the report - SELECT * FROM Order_header. I see all the fields of the table.

In the report I added 1 field order_id to fill. When I try to preview the report it gives me following error.

-------------------------------------------------------------------------------------------------------------------------

Error filling print... Error evaluating expression :
Source text : Report1
net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression :      Source text : Report1      at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:193)      at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:570)      at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:538)      at net.sf.jasperreports.engine.fill.JRFillElement.evaluateExpression(JRFillElement.java:868)      at net.sf.jasperreports.engine.fill.JRFillTextField.evaluateText(JRFillTextField.java:368)      at net.sf.jasperreports.engine.fill.JRFillTextField.evaluate(JRFillTextField.java:353)      at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:256)      at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:482)      at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillTitle(JRVerticalFiller.java:308)      at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:244)      at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:110)      at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:908)      at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:811)      at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:59)      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:855)      at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)      at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)  Caused by: groovy.lang.MissingPropertyException: No such property: Report1 for class: report1_1254577041125_483274      at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:49)      at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:59)      at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:169)      at report1_1254577041125_483274.getProperty(calculator_report1_1254577041125_483274)      at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.getGroovyObjectProperty(ScriptBytecodeAdapter.java:532)      at report1_1254577041125_483274.evaluate(calculator_report1_1254577041125_483274:211)      at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:182)      ... 18 more 
Print not filled. Try to use an EmptyDataSource...

-------------------------------------------------------------------------------------------------------------------------

I would really appreciate you help.

Thank you in advance.

Su-

 

 

 

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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...