Error filling print... Error evaluating expression : Source text : $F{binary}

Jaspersoft Community 'Read-Only' as of July 8, 2022

Transition to New TIBCO Community Just Weeks Away

You can still search, review wiki content, and review discussions in read-only mode. Please email community@tibco.com with questions or issues requiring TIBCO review or response.

Hi,

I am trying to generate image from postgresql bytea type field,

When i preview the report , then i getting error like below,

Error filling print... Error evaluating expression :
    Source text : $F{binary}
net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression :
    Source text : $F{binary}
    at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:195)
    at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:589)
    at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:557)
    at net.sf.jasperreports.engine.fill.JRFillElement.evaluateExpression(JRFillElement.java:929)
    at net.sf.jasperreports.engine.fill.JRFillImage.evaluateImage(JRFillImage.java:1023)
    at net.sf.jasperreports.engine.fill.JRFillImage.evaluate(JRFillImage.java:1004)
    at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:258)
    at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:499)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillBandNoOverflow(JRVerticalFiller.java:439)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageHeader(JRVerticalFiller.java:403)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:264)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:128)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:946)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:845)
    at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:58)
    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:878)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
Caused by: java.lang.ClassCastException: [B cannot be cast to java.io.InputStream
    at Test_1464690468421_172331.evaluate(Test_1464690468421_172331:163)
    at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:182)
    ... 19 more
Print not filled. Try to use an EmptyDataSource...

Please help me how can i rectify this issue.

I donot know how to add blob field in postgresql.

I am using jasper report 4.0.2 and Postgresql 9.1

Please help.

 

 

satheesh.k's picture
Joined: May 31 2016 - 3:24am
Last seen: 6 years 3 weeks ago

0 Answers:

No answers yet
Feedback