How to register a QueryExecuterFactory in jasper reports in java

Posted by Bosso on Stack Overflow See other posts from Stack Overflow or by Bosso
Published on 2010-01-07T15:16:03Z Indexed on 2010/04/29 10:17 UTC
Read the original article Hit count: 510

Filed under:
|

Hi,

I implemented JRQueryExecuter and want to use it in a report. Using iReport I managed to register and use the executer.

Now I want to use it in a java application, but I can't find any resources how to register the factory.

I thought it's enough to have the implementation in the classpath, but I get the following exception:

Caused by: net.sf.jasperreports.engine.JRException: No query executer factory class registered for tmql queries.
at net.sf.jasperreports.engine.query.DefaultQueryExecuterFactoryBundle.getQueryExecuterFactory(DefaultQueryExecuterFactoryBundle.java:80)
at net.sf.jasperreports.engine.util.JRQueryExecuterUtils.getQueryExecuterFactory(JRQueryExecuterUtils.java:57)
at net.sf.jasperreports.engine.design.JRDesignDataset.queryLanguageChanged(JRDesignDataset.java:1006)

Can anybody give me a hint?

regards Hannes

© Stack Overflow or respective owner

Related posts about java

Related posts about jasper-reports