Package net.buffalo.service

Examples of net.buffalo.service.ServiceInvocationException


    } else {
      method = lookupMethod(service, call, signature);
    }
   
    if (method == null) {
      throw new ServiceInvocationException(("cannot find the method " + call + " for "
          + service.getClass().getName()));
    }
   
    Object result = null;
    try {
      result = ClassUtil.invokeMethod(service, method, call.getArguments());
    } catch (IllegalArgumentException e) {
      throw new ServiceInvocationException(e);
    } catch (IllegalAccessException e) {
      throw new ServiceInvocationException(e);
    } catch (InvocationTargetException e) {
      result = e.getTargetException();
    }
   
    BuffaloProtocal.getInstance().marshall(result, writer);
View Full Code Here


    Cookie[] cookies = request.getCookies();
   
    if (cookies == null || cookies.length <=0) {
      LOG.warn("Some rantankerous user invoke this service, refused. " + method.getClass());
      throw new ServiceInvocationException("Permission error!");
    }
   
    return method.proceed();
  }
View Full Code Here

TOP

Related Classes of net.buffalo.service.ServiceInvocationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.