Jump to content

Recommended Posts

Posted

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.

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Posted

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.

 

  • 5 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...