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 ?

call:
def dbcpServiceId = lookup.getControllerServiceIdentifiers(ControllerService).find {
    cs -> lookup.getControllerServiceName(cs) == "RedisDistributedMapCacheClientService"
}
cacheService = lookup.getControllerService(dbcpServiceId)
logger.info("---> 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, 
cacheService=RedisDistributedMapCacheClientService[id=ec0583ac-0165-1000-eece-2bfb6195cdc4], 
cacheClass=class com.sun.proxy.$Proxy85]
0 REPLIES 0