Support Questions
Find answers, ask questions, and share your expertise

Controller Service Lookup returning proxy instance or type

New Contributor
Does anyone know why lookup for a controller service return proxy instead of the specialised object ?

def dbcpServiceId = lookup.getControllerServiceIdentifiers(ControllerService).find {
    cs -> lookup.getControllerServiceName(cs) == "RedisDistributedMapCacheClientService"
cacheService = lookup.getControllerService(dbcpServiceId)"---> cache [serviceName={}, cacheService={}, cacheClass={}]", serviceName, cacheService, cacheService.class)

Log extracted and you can see 'Proxy is returned', which means my distributed cache lookup is failing.

==> nifi-app.log <==
2018-09-19 11:23:27,913 INFO [Flow Service Tasks Thread-2] o.a.nifi.controller.StandardFlowService Saved flow controller org.apache.nifi.controller.FlowController@3c6087c // Another save pending = false
2018-09-19 11:23:30,396 INFO [Timer-Driven Process Thread-33] Script1 ------->>>> : cache [serviceName=RedisDistributedMapCacheClientService]
2018-09-19 11:23:30,461 INFO [Timer-Driven Process Thread-33] Script1 ---> cache [serviceName=IDService:RedisDistributedMapCacheClientService, 
cacheClass=class com.sun.proxy.$Proxy85]