JSException: Error filling report

1

Hi,

I am setting up a Jasper Report server for the first time (Ubuntu 10.04, 64-bit) and am receiving an error trying to run a very simple report that executes properly in iReport designer.

The steps I've taken so far:

  1. Created the report in iReport, linked to postgres data source, wrote query, tested
  2. Created a PostgreSQL data source in Jasper Server, which passes the connectivity test
  3. Created a duplicate of the query I used in the report, but saved it as a query in JasperServer
  4. Created a new Jasper Report in Jasper Server by uploading my JRXML file and then linking it to the data source and query I created in Jasper Server

After execution, I get the following error reported:

 

Error Message

com.jaspersoft.jasperserver.api.JSException: Error filling report

Error Trace

com.jaspersoft.jasperserver.api.JSException: Error filling report at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$FillResultListener.reportFillError(EngineServiceImpl.java:1178) at net.sf.jasperreports.engine.fill.BaseFillHandle.notifyError(BaseFillHandle.java:211) at net.sf.jasperreports.engine.fill.BaseFillHandle$ReportFiller.run(BaseFillHandle.java:135) at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$SynchronousExecutor.execute(EngineServiceImpl.java:859) at net.sf.jasperreports.engine.fill.BaseFillHandle.startFill(BaseFillHandle.java:165) at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$AsynchronousReportFiller.fillReport(EngineServiceImpl.java:821) at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl.fillQueryReport(EngineServiceImpl.java:1712) at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl.fillReport(EngineServiceImpl.java:1624) at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportFill.runReport(EngineServiceImpl.java:1005) at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportRunnable.run(EngineServiceImpl.java:881) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: net.sf.jasperreports.engine.JRException: Byte data not found at : coffee.jpg at net.sf.jasperreports.repo.RepositoryUtil.getBytesFromLocation(RepositoryUtil.java:324) at net.sf.jasperreports.engine.RenderableUtil.getRenderable(RenderableUtil.java:121) at net.sf.jasperreports.engine.fill.JRFillImage.evaluateImage(JRFillImage.java:527) at net.sf.jasperreports.engine.fill.JRFillImage.evaluate(JRFillImage.java:463) at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:259) at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:459) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillTitle(JRVerticalFiller.java:344) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:280) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:151) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:909) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:841) at net.sf.jasperreports.engine.fill.BaseFillHandle$ReportFiller.run(BaseFillHandle.java:116) ... 10 more

 

I'm really not sure what to try next as the error message isn't setting off any light bulbs.

 

rev40oz's picture
Joined: Jan 22 2013 - 11:24am
Last seen: 2 years 8 months ago
Byte data not found at : coffee.jpg at net.sf.jasperreports.repo.RepositoryUtil.getBytesFromLocation(
sanbez - 6 years 10 months ago
you need to upload all resources your report requires to JasperReports Server, if you use iReport use the wizard and upload the report again. It will identify additional resources, upload them and add add valid expressions to find the resources on JasperReports Server.
mrcaffeine - 6 years 10 months ago

1 Answer:

0

Thanks, mrcaffeine.  Exporting the report resources, namely two images, to the repository did the trick.  Thanks for the help!

rev40oz's picture
Joined: Jan 22 2013 - 11:24am
Last seen: 2 years 8 months ago
Feedback
randomness