Jump to content
We've recently updated our Privacy Statement, available here ×
  • java.lang.ArrayIndexOutOfBoundsException: 0 rike.java:75)


    ghudson_1
    • Features: Reports Version: v7.2 Product: JasperReports® Server

    Issue Description

    A customer applied an OS patch and immediately their reports began to fail when users tried to run them. The exception in the jasperserver.log was:

    java.lang.ArrayIndexOutOfBoundsException: 0
    at sun.font.CompositeStrike.getStrikeForSlot(CompositeStrike.java:75)
    at sun.font.CompositeStrike.getFontMetrics....
    

    The stacktrace indicated that the exception was thrown during report-fill


    Resolution

    A bug in the redhat patch is breaking the JVM's ability to fetch font. See the two links below:

    The second link above describes a workaround involving an edit to local.conf, but we recommend you ask redhat their thoughts.

    For background, TIBCO JasperReports® Server needs a physical font file (.ttf) at runtime. You can associate specific .ttf with reports via our font-extensions feature, if you haven't done this, then JasperReports® Server relies on the Java Virtual Machine (JVM) and the JVM relies on the OS. Essentially the JVM has logical and physical font mappings and the redhat update seems to have change something at the physical font level OR perhaps at a JVM level.

    If you cannot change local.conf, a font-extension might help avoid the error if you specify a .ttf for the 'default' font in JasperReports®​​​​​​​ Server. The default font comes from a property, which is this value out-of-box:

    net.sf.jasperreports.default.font.name=SansSerif
    

    So theoretically you could create a font-extension for SansSerif in which you define the ttf to be used for font family name "SansSerif"

    For information on creating font extensions please see the Fonts chapter in the Studio user guide - https://community.jaspersoft.com/documentation/tibco-jaspersoft-studio-user-guide/v720/working-font-extensions-0


    Ref. Case 01794343


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