Jump to content
JasperReports Library 7.0 is now available ×

Recommended Posts

This error occurs as part of a failed preview in JasperSoft® Studio 6.21.2 - Visual Designer for JasperReports 6.21.2.

I have this...

Image Expression:
"https://blahblah.com/beep/beep/beep" + $F{_labslip}

Which gives this...
https://blahblah.com/beep/beep/beep/3D0002050-2024-03-28-09-47-10
As the actual URL of interest

However, this generates these errors...

On JasperSoft Studio

net.sf.jasperreports.engine.JRException: net.sf.jasperreports.engine.JRException: Byte data not found at: https://blahblah.com/beep/beep/beep/3D0002050-2024-03-28-09-47-10.
    at com.jaspersoft.studio.editor.preview.view.control.ReportController.fillReport(ReportController.java:553)
    at com.jaspersoft.studio.editor.preview.view.control.ReportController$1.run(ReportController.java:446)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: net.sf.jasperreports.engine.JRException: Byte data not found at: https://blahblah.com/beep/beep/beep/3D0002050-2024-03-28-09-47-10.
    at net.sf.jasperreports.repo.RepositoryUtil.getBytesFromLocation(RepositoryUtil.java:215)
    at net.sf.jasperreports.renderers.util.RendererUtil.getNonLazyRenderable(RendererUtil.java:179)
    at net.sf.jasperreports.engine.fill.JRFillImage.evaluateImage(JRFillImage.java:522)
    at net.sf.jasperreports.engine.fill.JRFillImage.evaluate(JRFillImage.java:450)
    at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:383)
    at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:548)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:2614)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:837)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:276)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:119)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:631)
    at net.sf.jasperreports.engine.fill.BaseFillHandle$ReportFill.run(BaseFillHandle.java:141)
    at java.base/java.lang.Thread.run(Unknown Source)

Which is baffling to me as the browser properly renders the image pointed to by this URL -> https://blahblah.com/beep/beep/beep/3D0002050-2024-03-28-09-47-10

JasperReports Server gives this error...
There was an error on the server. Try again or contact site administrators. (Error UID: 786d7e24-d712-4f04-97eb-71402238d98c)

I've looked at causes for this error, and none I have found match what's going on here.
The URL by itself renders properly in the browser, so I think I can eliminate permissions.

I've looked at causes for this error, and none I have found match what's going on here

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Ok, I am not sure why, but it appears to be something to do with resolving the URL used.
When I substitute the URL with the IP address all is well, and the image renders as expected.

The tomcat app which sits "above" Jasper can see the images just fine.
So, what needs tweaking with Jasper to resolve the URL's correctly?

Link to comment
Share on other sites

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