milan_3 Posted September 22, 2016 Share Posted September 22, 2016 Hello,I am new to JasperSoft Studio and I am having problems with being able to locate report elements when I try to preview my reports. For example, the logo jpg images are not loading into the report and sub reports are also not being linked correctly to their parent. The common issue seems to be this sort of exception:net.sf.jasperreports.engine.JRException: net.sf.jasperreports.engine.JRException: Byte data not found at: repo:logo.at com.jaspersoft.studio.editor.preview.view.control.ReportControler.fillReport(ReportControler.java:537)at com.jaspersoft.studio.editor.preview.view.control.ReportControler.access$20(ReportControler.java:512)at com.jaspersoft.studio.editor.preview.view.control.ReportControler$5.run(ReportControler.java:393)at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)Caused by: net.sf.jasperreports.engine.JRException: Byte data not found at: repo:logo.at net.sf.jasperreports.repo.RepositoryUtil.getBytesFromLocation(RepositoryUtil.java:210)at net.sf.jasperreports.renderers.util.RendererUtil.getNonLazyRenderable(RendererUtil.java:162)at net.sf.jasperreports.engine.fill.JRFillImage.evaluateImage(JRFillImage.java:534)at net.sf.jasperreports.engine.fill.JRFillImage.evaluate(JRFillImage.java:478)at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:381)at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:500)at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillBandNoOverflow(JRVerticalFiller.java:427)at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageHeader(JRVerticalFiller.java:388)at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:249)at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:115)at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:580)at net.sf.jasperreports.engine.fill.BaseFillHandle$ReportFill.run(BaseFillHandle.java:123)at java.lang.Thread.run(Thread.java:745) Is there some configuration parameter that I am missing in order to tell Jasper Soft Studio where to find references to "repo:" ? All of my files are in the same project, and they are local. Please let me know if you need more information, or how to resolve this issue. Thanks, Milan Link to comment Share on other sites More sharing options...
chicuslavic Posted September 30, 2016 Share Posted September 30, 2016 you should use Image selection dialog, you have a radio button "Select a resource from JasperReports Server"try to use repo:/public/logo the path you have on the server relative to server root folder Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now