Examples of ServiceException


Examples of org.exoplatform.social.client.api.service.ServiceException

      String BASE_URL = SocialHttpClientSupport.buildCommonRestPathFromContext(true);
      String requestURL = BASE_URL + "restActivity/" + this.getActivityId() + ".json";
      HttpResponse response = SocialHttpClientSupport.executeGet(requestURL, POLICY.BASIC_AUTH);
      restActivity = SocialJSONDecodingSupport.parser(RestActivity.class, response);
    } catch (IOException e) {
      throw new ServiceException(RestComment.class, "IOException when reads Json Content.", e);
    } catch (ParseException e) {
      throw new ServiceException(RestComment.class, "ParseException when reads Json Content.", e);
    }
    return restActivity;
  }

Examples of org.focusns.common.exception.ServiceException

        ProjectLink dbLink = linkDao.selectByFromAndToProjectId(link.getFromProjectId(), link.getToProjectId());
        if (dbLink == null) {
            linkDao.insert(link);
            fillProjectLink(link);
        } else {
            throw new ServiceException(ServiceExceptionCode.PROJECT_LINK_ALREADY_EXIST, "The project link already exist!");
        }
    }

Examples of org.geoserver.platform.ServiceException

      long reqUS = -1;
        if (request.getUpdateSequence() != null) {
          try {
            reqUS = Long.parseLong(request.getUpdateSequence());
          } catch (NumberFormatException nfe) {
            throw new ServiceException("GeoServer only accepts numbers in the updateSequence parameter");
          }
        }
        long geoUS = wfs.getGeoServer().getGlobal().getUpdateSequence();
      if (reqUS > geoUS) {
        throw new ServiceException("Client supplied an updateSequence that is greater than the current sever updateSequence","InvalidUpdateSequence");
      }
      if (reqUS == geoUS) {
        throw new ServiceException("WFS capabilities document is current (updateSequence = " + geoUS + ")","CurrentUpdateSequence");
      }
    }

Examples of org.geotools.ows.ServiceException

   
            Object object;
            try {
                object = DocumentFactory.getInstance(inputStream, hints, Level.WARNING);
            } catch (SAXException e) {
                throw (ServiceException) new ServiceException("Error while parsing XML.").initCause(e); //$NON-NLS-1$
            }
           
            if (object instanceof ServiceException) {
                throw (ServiceException) object;
            }

Examples of org.geowebcache.service.ServiceException

            }
            // Check that the response code is okay
            tileRespRecv.setStatus(responseCode);
            if (responseCode != 200 && responseCode != 204) {
                tileRespRecv.setError();
                throw new ServiceException("Unexpected response code from backend: " + responseCode
                        + " for " + wmsBackendUrl.toString());
            }

            // Check that we're not getting an error MIME back.
            String responseMime = getMethod.getResponseHeader("Content-Type").getValue();

Examples of org.hibernate.service.spi.ServiceException

  }

  @Override
  public <R extends Service> R initiateService(ServiceInitiator<R> serviceInitiator) {
    // the bootstrap registry should currently be made up of only directly built services.
    throw new ServiceException( "Boot-strap registry should only contain directly built services" );
  }

Examples of org.jayasoft.woj.common.services.ServiceException

   
    protected Object doCallService(String serviceName, Map params, boolean decode, boolean encrypted) throws ServiceException {
        try {
            return super.doCallService(serviceName, fillMapWithUAK(params), decode, encrypted);
        } catch (IllegalStateException e) {
            throw new ServiceException(e.getMessage());
        }
    }

Examples of org.jayasoft.woj.portal.business.services.ServiceException

                            // Creating mode
                            LOGGER.debug("Creating user "+modifiedUser);
                            try {
                                modifiedUser = (UserImpl) ServiceFactory.getRegistrationService().register(modifiedUser);
                            } catch (RegistrationException e) {
                                throw new ServiceException("registration failed", e);
                            }
                            request.getSession().setAttribute(Params.REGISTER.SESSION.CURRENT_USER_ID, String.valueOf(modifiedUser.getId()));          
                        } else {
                            // Modifying mode
                            LOGGER.debug("Updating user "+modifiedUser);

Examples of org.jboss.gravia.runtime.ServiceException

                result = factoryHolder.getService();

            } catch (Throwable th) {
                String message = "Cannot get factory value from: " + this;
                ServiceException ex = new ServiceException(message, ServiceException.FACTORY_EXCEPTION, th);
                LOGGER.error(message, ex);
            }
        } finally {
            Thread.currentThread().setContextClassLoader(tccl);
        }

Examples of org.jets3t.service.ServiceException

        result = new EOFException(FSExceptionMessages.CANNOT_SEEK_PAST_EOF);
      } else {
        result = new S3Exception(se);
      }
    } else if (thrown instanceof ServiceException) {
      ServiceException se = (ServiceException) thrown;
      LOG.debug("S3ServiceException: {}: {} : {}",
          se.getErrorCode(), se.toString(), se, se);
      result = new S3Exception(se);
    } else if (thrown instanceof IOException) {
      result = (IOException) thrown;
    } else {
      // here there is no exception derived yet.
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.