I cannot connect to mongodb 2.6.1 from Jasperserver 5.5. I could, however, connect to mongodb 2.4.8. Version 2.6.1 is fairly new. Is there an upgrade that I need to apply to Jasperserver 5.5 for this to work?
Thanks.
1 Answer:
Posted on May 29, 2014 at 3:06pm
The mongodb authorization model was changed in version 2.6. Here's the error that I get.
2014-05-29 15:03:15,538 ERROR MongoDbDataSourceService45,http-apr-8080-exec-9:97 - net.sf.jasperreports.engine.JRException: not authorized for query on san.system.namespaces
2014-05-29 15:03:15,541 ERROR DataSourceAction,http-apr-8080-exec-9:455 - exception testing custom data source
net.sf.jasperreports.engine.JRException: not authorized for query on san.system.namespaces
at com.jaspersoft.mongodb.jasperserver.MongoDbDataSourceService45.createConnection(MongoDbDataSourceService45.java:98)
at com.jaspersoft.mongodb.jasperserver.MongoDbDataSourceService.testConnection(MongoDbDataSourceService.java:44)
at com.jaspersoft.jasperserver.war.action.DataSourceAction.testCustomDataSource(DataSourceAction.java:451)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Can you see the log? What kind of error are you getting?