Successfully!

Error!

Chart Export Upgrade Instructions

  • Last update:  2021-12-10
  • I. Overview

    1.Version Introduction

     VersionJAR package version
    10.0
    2020-04-26

    2. Problem Description

    For JAR packages of 2020-04-26 and later versions, the export of charts using the phantomjs scheme is cancelled, and the new scheme is used instead.

    When FineReport uses export, timing scheduling, and chart display functions in the designer, if the report is deployed in a Linux environment and the JDK version is below 1.8, you need to load J2V8's libj2v8_linux_x86_64.so and rely on the corresponding version of GCC. If the GCC version is too low, the following problems will occur:

    1)The exported chart is blank and the template has error information:

    "C library and JDK version do not meet the requirements, Please upgrade GBLIC to 2.17 And GLIBCXX to 3.4.19 or JDK to 1.8"

    2)During scheduled scheduling, the export chart is blank, the system message prompts that the operation failed, and an error is reported in the log:

    "C library and JDK version do not meet the requirements, Please upgrade GBLIC to 2.17 And GLIBCXX to 3.4.19 or JDK to 1.8"

    So how to realize that the chart export and timing scheduling functions can be used normally in an environment below JDK1.8 and without J2V8?

    Note: Even if the user's JDK version is above 1.8, it is recommended that users consider upgrading the GCC environment solution first. Export performance will be improved after the upgrade.


    3.Solutions

    Upgrade the GCC version in the Linux system, and use J2V8 as the JS runtime environment when drawing charts.

    II. Steps

    1. Upgrade

    Before upgrading, you need to confirm the GCC version in the current system. Use the following commands to check whether there are GLIBC_2.17and GLIBCXX_3.4.22 in the system.

    Check whether GLIBC_2.17 exists in the system:

    strings /lib64/libc.so.6 | grep GLIBC

    Check whether GLIBCXX_3.4.22 exists in the system:

    strings /usr/lib64/libstdc++.so.6 | grep GLIBCXX

    If the system does not correspond to the GCC version, you can consider whether to upgrade as needed.


    2.Upgrade Steps

    Click to download the upgrade tool:Upgrade Tools.zip,Unzip the upgrade tool, copy it to any directory other than usr, cd into the directory, and execute the following command:

    chmod 755 glibcxx_3.4.22.sh
    chmod 755 glibc_2.17.sh
    ./glibcxx_3.4.22.sh
    ./glibc_2.17.sh

    Here chmod adds execution permissions to the script, and ./ is to execute the obtained script.

    After executing the command, the system will automatically upgrade the GCC version.

    III.Escalation Risk

    1)GLIBC

    GLIBC is the C runtime library, which is the lowest level API in the Linux system (including various commands of Linux depend on this library). If there are other important items in the system, please upgrade carefully. (The corresponding upgrade file is glibc_2.17.sh)

    2)GLIBCXX

    GLIBCXX is a C++ runtime library. Generally, the upgrade will not have much impact, and if there is a problem after the upgrade, the version can be rolled back. (The corresponding upgrade file is glibcxx_3.4.22.sh)

    Attachment List


    Theme: Chart
    • Helpful
    • Not helpful
    • Only read

    Doc Feedback