730.saurabh Posted December 2, 2013 Share Posted December 2, 2013 I have a multi-select input control in my report which displays a list of names. The _id in the collection are of the type 'org.bson.types.ObjectId'.When I am trying to load the report on Jasperserver-pro I get the error message as 'ERROR ReportsServiceCallTemplate,http-bio-8080-exec-3:73 - Unexpected error occurs java.lang.IllegalStateException: Processor of type com.jaspersoft.jasperserver.war.cascade.handlers.converters.DataConverter for class org.bson.types.ObjectId not configured 'What am I missing here? Link to comment Share on other sites More sharing options...
Solution nithyanand11 Posted December 3, 2013 Solution Share Posted December 3, 2013 Try with objectId.value() optionEx:{ 'collectionName' : 'user', mapReduce : { map : 'function () { emit (this._id,{ id : this._id.valueOf(), lastname:this["last-name"]}); }', reduce : 'function (key, values) { var allDetails = []; var user = { id: null, lastname : null}; for( var index = 0; index < values.length; index++) { user.lastname = values[index].lastname; user.id = values[index].id; allDetails.push(user); user = { lastname : null}; } return {list : allDetails} }', out : 'list' }} Link to comment Share on other sites More sharing options...
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