query executer factory in MongoDB

Hi i am trying to compile simple jrxml file in eclipse, but it giving me error like. Can you tell how to do it in eclipse.

..insert your code here..import net.sf.jasperreports.engine.*;
public class Test {
    public static void main(String[] args) {
        try {
            String mongoURI = "mongodb://localhost:27017/gspan";
        } catch (Exception e) {

It giving me an error

..insert your code here..net.sf.jasperreports.engine.JRException: org.xml.sax.SAXParseException; lineNumber: 9; columnNumber: 16; Error at line 9 char 16: No query executer factory registered for the 'MongoDbQuery' language.
    at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:247)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:230)

Any suggestion, how this stuff can work.

vivek.dhiman1's picture
Joined: Sep 19 2013 - 11:51am
Last seen: 9 years 3 months ago

1 Answer:

MongoDB connector jars don't ship with JR, you need to get them from the MongodB project on this site

ernestoo's picture
Joined: Nov 29 2010 - 11:59am
Last seen: 5 years 5 months ago