Jump to content
  • Server upload: Style template reference overwrite with subreport not working

    Assigned User chicuslavic
    CategoryBug report

    I have a report which consists of a main template and one subreport template. Both templates are referencing the same style template file which is located in the same folder in the workspace.


    When I upload the report to the JasperReports Server, my styles file is showing up with other resources in the publish wizard correctly. I use "Overwrite" for the styles file with expression "repo:Styles.jrtx" and all resources including the Styles.jrtx are correctly uploaded to the server.


    The problem is now: when I execute the report, I get an error that the byte data for the Styles.jrtx isn't found. The path shown in the exception is the path from my local workspace.


    (net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.JRException: Byte data not found at: CCM/Chargenbericht CCM/Styles.jrtx. at ...)


    So I checked the templates on the server - first the main template and it was showing the correctly overwritten style template source expression "repo:Styles.jrtx". But when I was looking at the subreport template, if found out that the subreport template still had the local expression. It wasn't overwritten during upload and this is the reason why I'm getting the exception when filling the report on the server.


    The report publishing wizard is making me crazy not the first time. I have also troubles with uploading resource bundles what I have reported already some weeks ago (see: https://community.jaspersoft.com/jaspersoft-studio/issues/9956)


    User Feedback

    Recommended Comments

    Changed Resolution from Open to Unable to Reproduce

    Changed Status from New to Resolved

    Changed Assigned User from - to @chicuslavic

    I tested on the last version, both report and subreport expressions are rewrited. Please upgrade your Jaspersoft Studio to the last version, you could take CE. Add a sample if you still have problems.
    Link to comment
    Share on other sites

    Changed Resolution from Unable to Reproduce to Fixed

    Changed Status from Feedback Requested to Resolved

    Thank you for your sample, I fixed the problem. Unfortunately, you have to wait for a new release.
    Link to comment
    Share on other sites

  • Create New...