Package javax.activity

Examples of javax.activity.InvalidActivityException


    }
    // reset the denial counter - we got a permit in time!
    cascClient.resetSemaphorePermitDenialCounter();
    if (cascClient.isDestroyed() == true) {
      // cascaded client got destroyed in the meantime, stop operation
      callback.receive(new InvalidActivityException("cascaded client got destroyed in the meantime, stop operation service="
          + cascClient.getServiceName()));
      // release permit
      cascClientSemaphore.release();
      LOGGER.warn("cascaded client got destroyed in the meantime, stop operation service=" + cascClient.getServiceName());
      return false;
View Full Code Here


   */
  public synchronized void handleMessage(String remoteJID, String localJID, ActivityEntry activity) throws InvalidActivityException, AccessDeniedException {

    // Validate the activity
    if (activity == null || !activity.hasId()) {
      throw new InvalidActivityException();
    }
   
    // Create a message for the recipient
    ActivityMessage message = new PersistentActivityMessage();
    message.setSender(remoteJID);
View Full Code Here

   * @throws InvalidActivityException
   * @throws XPathExpressionException
   */
  public String extractValue(String xPathString) throws InvalidActivityException, XPathExpressionException {
    if (xmlDocument == null) {
      throw new InvalidActivityException("No xml document set to parse.");
    }
   
    // Query the xml document by several XPath queries
    XPathFactory xPathFactory = XPathFactory.newInstance();
    XPath xPath = xPathFactory.newXPath();
View Full Code Here

TOP

Related Classes of javax.activity.InvalidActivityException

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.