Examples of WSIFException


Examples of org.apache.wsif.WSIFException

    Trc.entry(this, input, output, fault);
    close();

    if (!fieldJmsPort.supportsSync())
      throw new WSIFException("synchronous operations not available");

    setAsyncOperation(false);

    boolean operationSucceeded = true;
    try {
      getOperation();

      // send the jms message   
      String correlId = sendJmsMessage(input);

      WSIFJMSDestination jmsDest = fieldJmsPort.getJmsDestination();
      javax.jms.Message response = jmsDest.receive(correlId, syncTimeout);
      operationSucceeded = receiveJmsMessage(response, output, fault);

    } catch (Exception ex) {
      Trc.exception(ex);

      // Log message
      MessageLogger.log(
        "WSIF.0005E",
        "Jms",
        fieldBindingOperation.getName());

      throw new WSIFException(
        this
          + " : Could not invoke '"
          + fieldBindingOperation.getName()
          + "'",
        ex);
View Full Code Here

Examples of org.apache.wsif.WSIFException

    Trc.entry(this, input, handler);
    close();

    if (!fieldJmsPort.supportsAsync())
      throw new WSIFException("asynchronous operations not available");

    setAsyncOperation(true);
    WSIFCorrelationId correlId = null;

    try {

      getOperation();
      this.handler = handler;

      if (inputOnlyOp) {
        sendJmsMessage(input);
      } else {
        if (handler == null) {
          correlId = new WSIFJMSCorrelationId(sendJmsMessage(input));
        } else {
          WSIFCorrelationService cs =
            WSIFCorrelationServiceLocator.getCorrelationService();
          synchronized (cs) {
            correlId =
              new WSIFJMSCorrelationId(sendJmsMessage(input));
            //register it to the correlation service
            cs.put(correlId, this, asyncTimeout);
          }
        }
      }
    } catch (Exception ex) {
      Trc.exception(ex);

      // Log message
      MessageLogger.log(
        "WSIF.0005E",
        "Jms",
        fieldBindingOperation.getName());

      throw new WSIFException(
        this
          + " : Could not invoke '"
          + fieldBindingOperation.getName()
          + "'",
        ex);
View Full Code Here

Examples of org.apache.wsif.WSIFException

      MessageLogger.log(
        "WSIF.0005E",
        "Jms",
        fieldBindingOperation.getName());

      throw new WSIFException(
        this
          + " : Could not invoke '"
          + fieldBindingOperation.getName()
          + "'",
        ex);
View Full Code Here

Examples of org.apache.wsif.WSIFException

        serviceModel = s;
        break;
      }
    }
    if (serviceModel == null) {
      throw new WSIFException("cannot find service for port: " + port);
    }

    formatter = (JMSFormatter) fieldJmsPort.getFormatter();

    WSIFRequest request = new WSIFRequest(serviceModel.getQName());
View Full Code Here

Examples of org.apache.wsif.WSIFException

    WSIFMessage fault)
    throws WSIFException {
    Trc.entry(this, responseObject, output, fault);

    if (!(responseObject instanceof javax.jms.Message))
      throw new WSIFException("Object is not of type javax.jms.Message");

        // The WSIFJMSDestination probably didn't receive this message, so
        // tell it about the message so we can inquire about its JMS properties
        // later.
        fieldJmsPort.getJmsDestination().setLastMessage(
View Full Code Here

Examples of org.apache.wsif.WSIFException

      }
    }

    if (fieldOperation == null) {
      throw new WSIFException(
        "Unable to resolve Jms binding for operation '"
          + fieldBindingOperation.getName()
          + ":"
          + fieldInputMessageName
          + ":"
View Full Code Here

Examples of org.apache.wsif.WSIFException

    }

    if (primitiveType != null)
      return primitiveType;
    else
      throw new WSIFException(
        "Unable to create the java object for XSD Type '"
          + type.toString()
          + "' using value '"
          + value
          + "'");
View Full Code Here

Examples of org.apache.wsif.WSIFException

        try {
            fieldJavaOperationModel =
                (JavaOperation) fieldBindingOperationModel.getExtensibilityElements().get(0);
        } catch (Exception e) {
          Trc.exception(e);
            throw new WSIFException(
                "Unable to resolve Java binding for operation '"
                    + bindingOperationModel.getName()
                    + "'");
        }
View Full Code Here

Examples of org.apache.wsif.WSIFException

      Trc.entry(null,classname);
     
        Class cls = null;

        if (classname == null) {
            throw new WSIFException("Error in getClassForName(): No class name specified!");
        }

        try {
            if (classname.lastIndexOf('.') == -1) {
                // Have to check for built in data types
                if (classname.equals("char")) {
                    cls = char.class;
                } else if (classname.equals("boolean")) {
                    cls = boolean.class;
                } else if (classname.equals("byte")) {
                    cls = byte.class;
                } else if (classname.equals("short")) {
                    cls = short.class;
                } else if (classname.equals("int")) {
                    cls = int.class;
                } else if (classname.equals("long")) {
                    cls = long.class;
                } else if (classname.equals("float")) {
                    cls = float.class;
                } else if (classname.equals("double")) {
                    cls = double.class;
                } else {
                    // Load the class using the Thread context's class loader
                    cls =
                        Class.forName(classname, true, Thread.currentThread().getContextClassLoader());
                }
            } else {
                cls =
                    Class.forName(classname, true, Thread.currentThread().getContextClassLoader());
            }
        } catch (ClassNotFoundException ex) {
          Trc.exception(ex);
            throw new WSIFException("Could not instantiate class '" + classname + "'", ex);
        }
        Trc.exit(cls);
        return cls;
    }
View Full Code Here

Examples of org.apache.wsif.WSIFException

        } catch (WSIFException ex) {
          Trc.exception(ex);
            throw ex;
        } catch (Exception ex) {
          Trc.exception(ex);
            throw new WSIFException(
                "Error while resolving meta information of method "
                    + fieldJavaOperationModel.getMethodName()
                    + " : The meta information is not consistent.",
                ex);
        }
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.