[#4379] - Adding report unit with custom query executer factory to JasperServer from iReport ends with an error message

Category:
Bug report
Priority:
High
Status:
Assigned
Project: Severity:
Block
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:

Hello,

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:

Error:
net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.JRException: Class <my-custom-package>.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.

Regards,
Vlado

grlicky's picture
Joined: Apr 21 2009 - 10:42am
Last seen: 13 years 7 months ago

1 Comment:

#1

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

Giulio

Feedback
randomness