logger.debug(sbInvokerMsg.toString());
logger.debug("begin get proxy factory");
// get local proxy
IProxyStub localProxy = Global.getSingleton().getProxyFactory().getProxy(request.getLookup());
logger.debug("proxyFactory.getProxy finish");
if (localProxy == null) {
ServiceFrameException sfe = new ServiceFrameException(
"method:ProxyHandle.invoke--msg:" + request.getLookup() + "." + request.getMethodName() + " not fond",
context.getChannel().getRemoteIP(),
context.getChannel().getLocalIP(),
request,
ErrorState.NotFoundServiceException,
null);
response = ExceptionHelper.createError(sfe);
logger.error("localProxy is null", sfe);
} else {
logger.debug("begin localProxy.invoke");
String swInvoderKey = "InvokeRealService_" + request.getLookup() + "." + request.getMethodName();
sw.startNew(swInvoderKey, sbInvokerMsg.toString());
sw.setFromIP(context.getChannel().getRemoteIP());
sw.setLocalIP(context.getChannel().getLocalIP());
//invoker real service
GaeaResponse gaeaResponse = localProxy.invoke(context);
sw.stop(swInvoderKey);
logger.debug("end localProxy.invoke");
context.setGaeaResponse(gaeaResponse);