query executer factory in MongoDB

0

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";
 
            JasperCompileManager
                    .compileReportToFile("C://Users//admin//workspace//JASPER//src//MyReport.jrxml");
 
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
 
}

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: 5 years 7 months ago

1 Answer:

0

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

ernestoo's picture
7786
Joined: Nov 29 2010 - 11:59am
Last seen: 1 year 9 months ago
Feedback
randomness