jcicilio Posted June 19, 2013 Posted June 19, 2013 Hi,I am testing iReport 5.x on a Mongo Replica Set with authentication enabled. An error is being returned when I test the connection:"Error: net.sf.jasperreports.engine.JRException: not authorized for query on... [our database name] .system.namespaces "I can connect successfully on a MongoDB without authentication enabled. I can connect with other tools to the authenticated mongo replica set with no issues.Has anyone else seen this issue, or have a suggestion for resolution. Two constraints are (1) must include replicaset usage and (2) must include authentication.Best,John
coryc_1 Posted July 29, 2013 Posted July 29, 2013 I too have this issue, and also the same signs of trouble attaching to mongo through the Jasperserver-pro (assume its the same driver being called) Scenario: Rep-set with Auth on. can connect with other tools, locally. just not this MongoDB connector within Ireport 5.x /Jasperserver 5.1.0 I have attempted 3rd party connectors with same results.
carlt Posted July 30, 2013 Posted July 30, 2013 I am also having this issue.I am trying to hook up a brand new AWS Jasperserver service to my 2.4.1 MongoDB replica set hosted on MongoHQ.Any idea if and when this might be resolved?Is there a workaround?
carlt Posted July 30, 2013 Posted July 30, 2013 I seem to have posted an answer rather than a comment
marianol Posted August 7, 2013 Posted August 7, 2013 This is a known bug, and comes from an issue between the JRS mongo driver in iReport and the error code changes in Mongo 2.4.Attached is a replacement Jar for the JS MongoDB datasource that fixes this issue and allows you connect to MongoDB with replicasets as well as mongo 2.4. To install it; just replace your "js-mongodb-datasource-1.0.0.jar" in both iReport and JasperServer with the attached Jar.in iReport the file is located in: /modules/ext/js-mongodb-datasource-1.0.0.jarand in JasperServer in: /webapps/jasperserver-pro/WEB-INF/lib/js-mongodb-datasource-1.0.0.jarThis bug is fixed in 5.2
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now