Hi ,

I have a common bean that I am using in my 2 separate REST calls.Both the 
calls have different output attributes from same bean (i.e CampainBean)

CampaignBean has 3 attributes - id , name and status

Rest Call 1 - needs to show "id" and "name"

Rest Call 2 - Need to show "id","name" and "status"

Rest call 1 controller has this filter -
            FilterProvider filters = new 
SimpleFilterProvider().addFilter("campaignBeanFilter",SimpleBeanPropertyFilter.filterOutAllExcept("id","name","status"));

Rest call 2 controller has this filter - 

            FilterProvider filters = new 
SimpleFilterProvider().addFilter("campaignBeanFilter",SimpleBeanPropertyFilter.filterOutAllExcept("id","name"));

Rest call 1 works fine but when I hit rest call 2 , it gives following 
exception -

e>com.fasterxml.jackson.databind.JsonMappingException: Can not resolve 
PropertyFilter with id 'campaignBeanFilter'; no FilterProvider configured


Am I missing anything in configuration ?



-- 
You received this message because you are subscribed to the Google Groups 
"jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jackson-user+unsubscr...@googlegroups.com.
To post to this group, send email to jackson-user@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to