yosi_1 Posted June 29, 2014 Posted June 29, 2014 Hello , when trying to create data source on Jaspersoft server to a mongodb replica set with Auth on I receive an error : net.sf.jasperreports.engine.JRException: not authorized for query on xxxxxxx.system.namespaces [/code]at com.jaspersoft.mongodb.jasperserver.MongoDbDataSourceService45.createConnection(MongoDbDataSourceService45.java:96) at com.jaspersoft.mongodb.jasperserver.MongoDbDataSourceService.testConnection(MongoDbDataSourceService.java:42) at com.jaspersoft.jasperserver.remote.connection.CustomDataSourceConnectionStrategy.createConnection(CustomDataSourceConnectionStrategy.java:74) at com.jaspersoft.jasperserver.remote.connection.CustomDataSourceConnectionStrategy.createConnection(CustomDataSourceConnectionStrategy.java:47) at com.jaspersoft.jasperserver.remote.connection.ConnectionsManager.createConnection(ConnectionsManager.java:71) at[/code]I notice this happen before with other version of the server and versions on mongoDB changes.
yosi_1 Posted July 1, 2014 Author Posted July 1, 2014 when putting the username and password in the connection string : mongodb://user:password@host:port/db then conneciton is working.when user name and password in added to fields in the datasource dialogue then it is not working.
naveen.kunchavaram Posted December 15, 2014 Posted December 15, 2014 The above mentioned method works for Topics, but not for Domain. Can you suggest any alternative for authenticating for Domain?mongodb://user:password@host:port/db Thanks in Advance, Naveen.KK
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