This commit is contained in:
Lucio Lelii 2015-10-20 16:29:44 +00:00
parent 4c23f0c489
commit 5fab9a1b99
1 changed files with 2 additions and 2 deletions

View File

@ -24,10 +24,10 @@ public class MethodRetriever<T> implements InvocationHandler{
try{ try{
return method.invoke(service, args); return method.invoke(service, args);
}catch(IllegalAccessException | IllegalArgumentException proxyEx){ }catch(IllegalAccessException | IllegalArgumentException proxyEx){
log.error("error invoking method "+method.getName()+" in service "+service.getClass().getCanonicalName()+" using proxy ",proxyEx); log.error("error invoking method "+method.getName()+" in service "+service.getClass().getCanonicalName()+" using proxy ");
throw new RuntimeException(proxyEx); throw new RuntimeException(proxyEx);
}catch(InvocationTargetException ite){ }catch(InvocationTargetException ite){
log.error("error invoking method "+method.getName()+" in service "+service.getClass().getCanonicalName()+" using proxy ",ite); log.error("exception invoking method "+method.getName()+" in service "+service.getClass().getCanonicalName()+" using proxy ");
throw ite.getCause(); throw ite.getCause();
}finally{ }finally{
CalledMethodProvider.instance.reset(); CalledMethodProvider.instance.reset();