Jump to content
Changes to the Jaspersoft community edition download ×

Getting problems inserting java.awt.Image

Recommended Posts

By: Aitor Garc a Rey - osirys

Getting problems inserting java.awt.Image

2002-12-12 05:37

I'm getting problems trying to send a java.awt.Image as parameter to a report. I pass this image from a <b>swing </b> JInternalFrame and get this exception:


[java] dori.jasper.engine.JRException: Image not found : ((java.awt.Image)parameter_SummaryImage.getValue())

[java] at dori.jasper.engine.util.JRImageLoader.loadImageDataFromLocation(JRImageLoader.java:148)

[java] *******************************************************************************

[java] at dori.jasper.engine.fill.JRFillImage.evaluateImage(JRFillImage.java:342)

[java] * WARNING: Failure using Thread.currentThread().getContextClassLoader() *

[java] * in JRImageLoader class. Using JRImageLoader.class.getClassLoader() instead. *

va] at dori.jasper.engine.fill.JRFillImage.evaluate(JRFillImage.java:278)

[java] *******************************************************************************

[java] at dori.jasper.engine.fill.JRFillBand.evaluate(JRFillBand.java:359)

[java] at dori.jasper.engine.fill.JRVerticalFiller.fillSummary(JRVerticalFiller.java:783)

[java] at dori.jasper.engine.fill.JRVerticalFiller.fillReportEnd(JRVerticalFiller.java:304)

[java] at dori.jasper.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:167)

[java] at dori.jasper.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:421)

[java] at dori.jasper.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:359)

[java] at dori.jasper.engine.fill.JRFiller.fillReport(JRFiller.java:114)

[java] at dori.jasper.engine.JasperFillManager.fillReport(JasperFillManager.java:217)

[java] at dori.jasper.engine.JasperRunManager.runReportToPdfFile(JasperRunManager.java:105)

[java] at JasperApp.main(JasperApp.java:249)

[java] Java Result: 1



By: Teodor Danciu - teodord

RE: Getting problems inserting java.awt.Image

2002-12-12 05:59




Are you sure you have :


<imageExpression class="java.awt.Image">


I hope this helps.





By: Aitor Garc a Rey - osirys

RE: Getting problems inserting java.awt.Image

2002-12-12 08:25

Thanks a lot. That was the problem.

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