Jump to content
Changes to the Jaspersoft community edition download ×

error evaulating expression : image_1


2004 IR Help

Recommended Posts

By: bpdy9fg - bpdy9fg

error evaulating expression : image_1

2005-01-25 09:18

Hi folks,

 

Would anyone have any ideas why this error is being produced. The object returned from getObject() of the ChartReportParameter below is a JFreeChart.

 

17:04:58,473 ERROR [ReportGenerationMgr] Unable to fill report: com.foundation.reports.ReportException: Error evaluating expressio

: image_1

Source text : ((com.foundation.reports.parameter.ChartReportParameter)$P{chart1}).getObject()

com.foundation.reports.ReportException: Error evaluating expression : image_1

 

Any help would be appreciated.

 

regards,

Brian

 

 

 

 

 

By: Teodor Danciu - teodord

RE: error evaulating expression : image_1

2005-01-25 10:07

 

Hi,

 

I suspect it it about a class cast exception because

you cannot put JFreeChart objects directly inside

an image expression.

You need to wrap them inside a JRRenderable

implemetation.

 

Take a look at the supplied "jfreechart" sample supplied

with the distribution.

 

I hope this helps.

Teodor

 

 

 

 

 

By: bpdy9fg - bpdy9fg

null pointer question with version 0.6.4...

2005-01-26 06:30

Thanks .. I think I cleared that up (error evaulating expression : image_1) .. however now I am getting a null pointer exception in JRVerticalFiller.addPage() ... (release 0.6.4) .. at this point

<code>calculator.getPageNumber().setValue(

new Integer(((Number)calculator.getPageNumber().getValue()).intValue() + 1)

);

</code>

I get a null pointer at the getValue() call. This is while filling the report.

 

Why would this be? Is there anything specific I need to be set in the xml file? The report should only be one page so I don't understand why it (or is it) tries to add a new page.

 

regards,

Brian

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