Package org.apache.sandesha2

Examples of org.apache.sandesha2.SandeshaException


    while (iterator.hasNext()) {
      ackRequested = (AckRequested) iterator.next();
    }
   
    if (iterator.hasNext()) {
      throw new SandeshaException (SandeshaMessageHelper.getMessage(SandeshaMessageKeys.ackRequestMultipleParts));
    }
   
    if (ackRequested==null) {
      throw new SandeshaException (SandeshaMessageHelper.getMessage(SandeshaMessageKeys.noAckRequestPartFound));
    }
   
    ackRequestRMMsg.setWSAAction(SpecSpecificConstants.getAckRequestAction (getRMVersion()));
    ackRequestRMMsg.setSOAPAction(SpecSpecificConstants.getAckRequestSOAPAction (getRMVersion()));
View Full Code Here


    MessageContext referenceMsg = referenceRMMessage.getMessageContext();

    EndpointReference acksTo = new EndpointReference(rmdBean.getAcksToEPR());

    if (acksTo.getAddress() == null)
      throw new SandeshaException(SandeshaMessageHelper.getMessage(SandeshaMessageKeys.acksToStrNotSet));

    AxisOperation ackOperation = SpecSpecificConstants.getWSRMOperation(
        Sandesha2Constants.MessageTypes.ACK,
        rmdBean.getRMVersion(),
        referenceMsg.getAxisService());
View Full Code Here

    SOAPEnvelope env = factory.getDefaultFaultEnvelope();

    try {
      faultMsgContext.setEnvelope(env);
    } catch (AxisFault e) {
      throw new SandeshaException(e.getMessage());
    }

    if (SOAPVersion == Sandesha2Constants.SOAPVersion.v1_1)
      doSOAP11Encoding(faultMsgContext, faultData, rmNamespaceValue);
    else
View Full Code Here

  private static void doSOAP11Encoding(MessageContext faultMsgContext,
      FaultData data, String rmNamespaceValue) throws SandeshaException {

    SOAPEnvelope faultMsgEnvelope = faultMsgContext.getEnvelope();
    if (faultMsgEnvelope == null)
      throw new SandeshaException(SandeshaMessageHelper.getMessage(
          SandeshaMessageKeys.soapEnvNotSet));

    SOAPFactory factory = SOAPAbstractFactory.getSOAPFactory(SandeshaUtil
        .getSOAPVersion(faultMsgEnvelope));
View Full Code Here

  private static void doSOAP12Encoding(MessageContext faultMsgContext,
      FaultData data, String rmNamespaceValue) throws SandeshaException {

    SOAPEnvelope faultEnvelope = faultMsgContext.getEnvelope();
    if (faultEnvelope == null)
      throw new SandeshaException(SandeshaMessageHelper.getMessage(
          SandeshaMessageKeys.soapEnvNotSet));

    SOAPFactory factory = SOAPAbstractFactory.getSOAPFactory(SandeshaUtil
        .getSOAPVersion(faultEnvelope));

    SOAPFault fault = faultEnvelope.getBody().getFault();
    if (fault == null)
      throw new SandeshaException(SandeshaMessageHelper.getMessage(
          SandeshaMessageKeys.noFaultCode,
          faultEnvelope.toString()));

    SOAPFaultCode faultCode = fault.getCode();
    SOAPFaultValue codeValue = faultCode.getValue();
View Full Code Here

    TransportOutDescription transportOut = pollMessage.getMessageContext().getTransportOut();
    if (transportOut==null) {
      String message = SandeshaMessageHelper.getMessage(
          SandeshaMessageKeys.cantSendMakeConnectionNoTransportOut);
      if(log.isDebugEnabled()) log.debug(message);
      throw new SandeshaException (message);
    }
     
    String messageStorageKey = matchingMessage.getMessageContextRefKey();
    MessageContext returnMessage = storageManager.retrieveMessageContext(messageStorageKey,pollMessage.getConfigurationContext());
    if (returnMessage==null) {
View Full Code Here

    if (Sandesha2Constants.SPEC_2005_02.NS_URI.equals(namespaceValue))
      return Sandesha2Constants.SPEC_VERSIONS.v1_0;
    else if (Sandesha2Constants.SPEC_2007_02.NS_URI.equals(namespaceValue))
      return Sandesha2Constants.SPEC_VERSIONS.v1_1;
    else
      throw new SandeshaException (SandeshaMessageHelper.getMessage(
          SandeshaMessageKeys.unknownSpec,
          namespaceValue));
  }
View Full Code Here

    if (Sandesha2Constants.SPEC_VERSIONS.v1_0.equals(specVersion))
      return Sandesha2Constants.SPEC_2005_02.NS_URI;
    else if (Sandesha2Constants.SPEC_VERSIONS.v1_1.equals(specVersion))
      return Sandesha2Constants.SPEC_2007_02.NS_URI;
    else
      throw new SandeshaException (SandeshaMessageHelper.getMessage(
          SandeshaMessageKeys.unknownSpec,
          specVersion));
  }
View Full Code Here

    if (Sandesha2Constants.SPEC_VERSIONS.v1_0.equals(specVersion))
      return Sandesha2Constants.SPEC_2005_02.Actions.ACTION_CREATE_SEQUENCE;
    else if (Sandesha2Constants.SPEC_VERSIONS.v1_1.equals(specVersion))
      return Sandesha2Constants.SPEC_2007_02.Actions.ACTION_CREATE_SEQUENCE;
    else
      throw new SandeshaException (SandeshaMessageHelper.getMessage(
          SandeshaMessageKeys.unknownSpec,
          specVersion));
  }
View Full Code Here

    if (Sandesha2Constants.SPEC_VERSIONS.v1_0.equals(specVersion))
      return Sandesha2Constants.SPEC_2005_02.Actions.ACTION_CREATE_SEQUENCE_RESPONSE;
    else if (Sandesha2Constants.SPEC_VERSIONS.v1_1.equals(specVersion))
      return Sandesha2Constants.SPEC_2007_02.Actions.ACTION_CREATE_SEQUENCE_RESPONSE;
    else
      throw new SandeshaException (SandeshaMessageHelper.getMessage(
          SandeshaMessageKeys.unknownSpec,
          specVersion));
  }
View Full Code Here

TOP

Related Classes of org.apache.sandesha2.SandeshaException

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.