Cannot connect to Mongodb 2.6.1

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.

cc.nguyen's picture
Joined: Oct 30 2013 - 11:14am
Last seen: 8 years 8 months ago

Can you see the log? What kind of error are you getting?

ernestoo - 8 years 10 months ago

1 Answer:

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)
cc.nguyen's picture
Joined: Oct 30 2013 - 11:14am
Last seen: 8 years 8 months ago
Feedback
randomness