Jump to content
We've recently updated our Privacy Statement, available here ×

730.saurabh

Members
  • Posts

    7
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Posts posted by 730.saurabh

  1. I am new to mongodb.

    I am trying to pass parameter to mapreduce but it gives error as following,

    Setting up the file resolver... com.mongodb.util.JSONParseException:  {  'collectionName' : 'range',   mapReduce : { map : 'function () { if(this.user == {'select':null}){  emit (this._id,{userid:this.user.valueOf()}); } 
     
    For some reason the parameter is returned as null. My map function is as follows,
    map : 'function () {
                             if(this.user == $P{select})
                            {
                             emit (this._id,{userid:this.user.valueOf()});
                            }
                            }',
    Can anyone please point out my mistake?
  2.  

    I am using multi-select input control in my report. The parameter $P{select} is of type java.util.Collection and accepts a list of ids.
     
    The ids that I have are of the type org.bson.types.ObjectId.
     
    "_id": { "$oid": "0d59dcfcd9342a3fc72acadf" }
     
    When I run the report by passing list of ids it returns a blank report. It used to work fine for earlier data when the ids where of type 'String'.
     
    The query in Mongodb that I am using to match ids is _id:{$in:$P{select}}. And in $P{select} I am just passing id as 0d59dcfcd9342a3fc72acadf
     
    What am I doing wrong here?
  3.  

    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?

×
×
  • Create New...