Jump to content
We've recently updated our Privacy Statement, available here ×
  • JasperReports Server 7.8.x error: Class net.sf.jasperreports.engine.util.JdkGlyphFixTextMeasurerFactory not found


    Dhiraj Pahlani
    • Edited on:
    • Version: v7.8 Product: JasperReports® Server

    Problem:
    After migrating from JasperReports Server 7.5.x to 7.8.x, report rendering results in below error. How can we resolve this error?

    The report was not completed. An error occurred while executing it.
    net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.JRException: Class net.sf.jasperreports.engine.util.JdkGlyphFixTextMeasurerFactory not found.
    at net.sf.jasperreports.engine.util.JRTextMeasurerUtil.getFactory(JRTextMeasurerUtil.java:157)
    ...

    Cause:
    The 'JdkGlyphFixTextMeasurerFactory' class has been removed in the newer versions of JasperReports Server, and it should not be used anymore. Instead, we now have the newer 'net.sf.jasperreports.text.measurer.factory.single.line' class as a replacement.

    Solution:
    Please review your JRXML report and see if you have reference to the 'JdkGlyphFixTextMeasurerFactory' class. If yes, try removing it from the report for its test run.

    Also, please check if you have below property present in the jasperreports.properties file (<jasperserver-pro>/WEB-INF/classses/). If yes, kindly remove it from the file, save the file, and restart the application server for the changes to reflect.

    net.sf.jasperreports.text.measurer.factory=net.sf.jasperreports.engine.util.JdkGlyphFixTextMeasurerFactory

    A sample jasperreports.properties file is attached for reference which shows the presence of the newer 'net.sf.jasperreports.text.measurer.factory.single.line' class. Kindly take a look.

    # the fast/single line text measurer factory
    net.sf.jasperreports.text.measurer.factory.single.line=com.jaspersoft.jasperserver.api.engine.jasperreports.util.SingleLineTextMeasurerFactory
    _____________________________________________________________________________________________________________________________________________________________
    Ref. Case #02121776
     

    jasperreports.properties


    User Feedback

    Recommended Comments

    There are no comments to display.



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