Examples of ServerException


Examples of org.openxri.exceptions.ServerException

    try {

      utf8Namespace = IRIUtils.IRItoXRI(IRIUtils.URItoIRI(namespace));
    } catch (Exception ex) {

      ServerException ex2 = new ServerInternalException("Unsupported encoding in namespace: " + ex.getMessage(), ex);
      log.warn(ex2);
      throw ex2;
    }

    XRIAuthority authorityPath = new GCSAuthority(utf8Namespace);

    Authority namespaceAuthority;

    try {

      namespaceAuthority = this.store.localLookup(authorityPath);
    } catch (StoreException ex) {

      ServerException ex2 = new ServerInternalException("Error while finding namespace authority " + namespace + ".", ex);
      log.warn(ex2);
      throw ex2;
    }

    if (namespaceAuthority == null) {

      ServerException ex = new ServerNotFoundException("Namespace authority " + namespace + " not found.");
      log.warn(ex);
      throw ex;
    }

    // the big goal is to make an XRDS, consisting of one XRD
View Full Code Here

Examples of org.sonar.server.exceptions.ServerException

  }

  private void verifyRequest(WebService.Action action, Request request) {
    // verify the HTTP verb
    if (action.isPost() && !"POST".equals(request.method())) {
      throw new ServerException(HttpServletResponse.SC_METHOD_NOT_ALLOWED, "HTTP method POST is required");
    }
  }
View Full Code Here

Examples of org.wso2.carbon.utils.ServerException

            }
        } catch (RegistryException e) {
            String errorMsg = "Error when checking the existence of " + keyStorePath + " in the Governance" +
                              "Registry.";
            log.error(errorMsg, e);
            throw new ServerException(errorMsg, e);
        }
        return isKeyStoreExisting;
    }
View Full Code Here

Examples of org.wso2.carbon.utils.ServerException

        try {
            this.registry = SecurityServiceHolder.getRegistryService().getConfigSystemRegistry();
        } catch (Exception e) {
            String msg = "Error when retrieving the system config registry";
            log.error(msg);
            throw new ServerException(msg, e);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.utils.ServerException

  } catch (Exception e) {
      log.error(e);
        try {
            registry.rollbackTransaction();
        } catch (Exception ex) {
            throw new ServerException("Unable to rollback transaction");
        }
      throw new ServerException("addPoliciesToService");
  }

    }
View Full Code Here

Examples of org.wso2.carbon.utils.ServerException

    } catch (Exception e) {
      log.error(e);
      try {
        registry.rollbackTransaction();
      } catch (Exception ex) {
        throw new ServerException("Unable to rollback transaction");
      }
      throw new ServerException("addPoliciesToService");
    }

  }
View Full Code Here

Examples of org.wso2.carbon.utils.ServerException

            }
        } catch (Exception e) {
            String msg = "Error occured while updating parameters of service group: "
                         + serviceGroupName;
            log.error(msg, e);
            throw new ServerException("updateServiceParameters", e);
        }

    }
View Full Code Here

Examples of org.wso2.carbon.utils.ServerException

            persistenceManager.updateServiceGroupParameter(serviceGroup, parameter);
        } catch (Exception e) {
            String msg = "Error occured while updating parameters of service group: "
                         + serviceGroupName;
            log.error(msg, e);
            throw new ServerException("updateServiceParameters", e);
        }

    }
View Full Code Here

Examples of org.wso2.carbon.utils.ServerException


        } catch (Exception e) {
            String msg = "Cannot remove service policy";
            log.error(msg, e);
            throw new ServerException(msg, e);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.utils.ServerException

            return params.toArray(new String[params.size()]);
        } catch (Exception e) {
            String msg = "Error occured while getting parameters of service : " + serviceName;
            log.error(msg, e);
            throw new ServerException(msg, e);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.