Jump to content
  • Adding report unit with custom query executer factory to JasperServer from iReport ends with an error message

    Assigned User Giulio Toffoli
    CategoryBug report



    when I try to add a report unit with a custom query executer factory using iReport 3.5.2 (up to 3.6.0), the Report Unit Wizard ends with an error message like this:



    net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.JRException: Class .CustomQueryExecuterFactory not found.


    The report is compiled and rendered locally using iReport without any problems. The problem arises only upon report upload to JasperServer.


    My custom query executer factory class (and all other needed classes) is already present on the report's classpath (set by Tools->Options->iReport->Classpath settings), the JasperServer instance has the custom classes in WEB-INF/lib directory, too.


    The only known way to add a report unit with custom query executer factory using iReport is to use the iReport 3.5.0 or 3.5.1 (this works for me). The iReport versions 3.5.2, 3.5.3, and 3.6.0 seem to have a slightly changed report upload mechanism that does not work with such reports.


    This behavior is rather strange for me, and I don't know if it is a bug or my environment is not configured properly.


    Thanks for clarification of this issue in advance.






    User Feedback

    Recommended Comments

    It definitively looks like an iReport classloading problem, it seems that the uploader when analyzes the report, does not set as context classloader the reportClassLoader, leading in an error when the jrxml is loaded for further processing in the upload stage and requires JasperReports extensions (like a language factory).



    Link to comment
    Share on other sites

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