Jump to content
We've recently updated our Privacy Statement, available here ×
  • Running report with Europe map on JasperReports Server issue


    stasp

    Issue:

    [toc on_off::hide=1]

    When creating report with Map Pro component and configuring Europe map, you may find out that while report works fine in iReport Designer, after uploading to JasperReports Server the error below pops up when trying to run the report

    com.jaspersoft.jasperserver.api.JSExceptionWrapper: Errors were encountered when compiling report expressions class file:

    1. com.jaspersoft.ireport.components.fusion.maps cannot be resolved to a type value = (java.lang.String)(com.jaspersoft.ireport.components.fusion.maps.EntityCodes(((java.lang.String)field_country.getValue()))); //$JR_EXPR_ID=13$

    <------------------------------------------->

    2. com.jaspersoft.ireport.components.fusion.maps cannot be resolved to a type value = (java.lang.String)(com.jaspersoft.ireport.components.fusion.maps.EntityCodes(((java.lang.String)field_country.getOldValue()))); //$JR_EXPR_ID=13$

    <------------------------------------------->

    3. com.jaspersoft.ireport.components.fusion.maps cannot be resolved to a type value = (java.lang.String)(com.jaspersoft.ireport.components.fusion.maps.EntityCodes(((java.lang.String)field_country.getValue()))); //$JR_EXPR_ID=13$

    <------------------------------------------->

    3 errors


    Resolution:

    In iReport Designer, Maps Pro includes a sample helper class called EntityCodes in com.jaspersoft.ireport.components.fusion.maps. It converts the name of a European country to the corresponding entity ID in the map of Europe. The problem is that this class was created for iReport Designer, and it's not included in JasperReports Server.

    The class is located in com-jaspersoft-ireport-components-fusion.jar under /ireportpro/modules folder. To solve the issue copy this jar into /WEB-INF/lib folder and restart the server.


    Ref. Case #00020975 -- 14:20, 15 March 2012 (UTC)  

     


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...