Package edu.indiana.extreme.xbaya

Examples of edu.indiana.extreme.xbaya.XBayaException


        String message = "Error in a service: ";
        // An implementation of WSIFMessage,
        // WSIFMessageElement, implements toString(), which
        // serialize the message XML.
        message += faultMessage.toString();
        throw new XBayaException(message);
      }
      logger.exiting();
    } catch (InterruptedException e) {
      logger.caught(e);
    } catch (ExecutionException e) {
      // The service-failed notification should have been sent already.
      logger.caught(e);
      String message = "Error in invoking a service: "
          + this.serviceInformation;
      throw new XBayaException(message, e);
    } catch (RuntimeException e) {
      logger.caught(e);
      String message = "Error while waiting for a service to finish: "
          + this.serviceInformation;
      this.notifier.invocationFailed(message, e);
      throw new XBayaException(message, e);
    } catch (Error e) {
      logger.caught(e);
      String message = "Unexpected error: " + this.serviceInformation;
      this.notifier.invocationFailed(message, e);
      throw new XBayaException(message, e);
    }
  }
View Full Code Here


      throw e;
    } catch (RuntimeException e) {
      logger.caught(e);
      String message = "Error while waiting for a output: " + name;
      this.notifier.invocationFailed(message, e);
      throw new XBayaException(message, e);
    } catch (Error e) {
      logger.caught(e);
      String message = "Unexpected error: " + this.serviceInformation;
      this.notifier.invocationFailed(message, e);
      throw new XBayaException(message, e);
    }
  }
View Full Code Here

            WSIFPort port = service.getPort();
            this.client = WSIFRuntime.getDefault().newClientFor(port);
            return this.definitions;
        } catch (RuntimeException e) {
            String message = "The WSDL is in the wrong format";
            throw new XBayaException(message, e);
        }
    }
View Full Code Here

            this.inputMessage = this.operation.createInputMessage();
            this.outputMessage = this.operation.createOutputMessage();
            this.faultMessage = this.operation.createFaultMessage();
        } catch (RuntimeException e) {
            String message = "The WSDL does not conform to the invoking service.";
            throw new XBayaException(message, e);
        }
    }
View Full Code Here

            }
            this.inputMessage.setObjectPart(name, value);
        } catch (RuntimeException e) {
            String message = "Error in setting an input. name: " + name
                    + " value: " + value;
            throw new XBayaException(message, e);
        }
    }
View Full Code Here

            boolean success = this.operation.executeRequestResponseOperation(
                    this.inputMessage, this.outputMessage, this.faultMessage);
            return success;
        } catch (RuntimeException e) {
            String message = "Error in invoking a service.";
            throw new XBayaException(message, e);
        }
    }
View Full Code Here

            // Value is a complex type. Return the whole XmlElement so that we
            // can set it to the next service as it is.
            return valueElement;
        } catch (RuntimeException e) {
            String message = "Error in getting output. name: " + name;
            throw new XBayaException(message, e);
        }
    }
View Full Code Here

              wsdlLoc = WSDLUtil.appendWSDLQuary(this.gfacURL);
          }

          if (wsdlLoc == null) {
              String message = "The location of the Generic Factory is not specified.";
              throw new XBayaException(message);
          }
          if(!wsdlLoc.startsWith("https")){
            throw new XBayaException("The GFac url is expected to support https but got:"+wsdlLoc);
          }

          try {
              this.creator = new SecureGFacCreator(wsdlLoc, this.secureInvoker);
          } catch (URISyntaxException e) {
              String message = "The location of the Generic Factory is in a wrong format";
              this.notifier.invocationFailed(message, e);
              throw new XBayaException(message, e);
          }
          if (this.creator == null) {
              String message = "Cannot find the location of the Generic Factory in the WSDL";
              throw new XBayaException(message);
          }

          if (this.portTypeQName == null) {
              try {
                  Iterable portTypes = this.abstractDefinitions.getPortTypes();
                  WsdlPortType portType = (WsdlPortType) portTypes.iterator()
                          .next();
                  String portTypeName = portType.getPortTypeName();
                  String targetNamespace = this.abstractDefinitions
                          .getTargetNamespace();
                  this.portTypeQName = new QName(targetNamespace, portTypeName);
              } catch (RuntimeException e) {
                  String message = "Error in finding QName of the service in the WSDL";
                  this.notifier.invocationFailed(message, e);
                  throw new XBayaException(message, e);
              }
          }
          invokableWSDL = this.creator
                  .createService(this.portTypeQName);
         
View Full Code Here

            throw e;
        } catch (RuntimeException e) {
            logger.caught(e);
            String message = "Error while waiting for a output: " + name;
            this.notifier.invocationFailed(message, e);
            throw new XBayaException(message, e);
        } catch (Error e) {
            logger.caught(e);
            String message = "Unexpected error: " + this.serviceInformation;
            this.notifier.invocationFailed(message, e);
            throw new XBayaException(message, e);
        }
    }
View Full Code Here

        } catch (RuntimeException e) {
            logger.caught(e);
            String message = "Error in invoking a service: "
                    + this.serviceInformation;
            this.notifier.invocationFailed(message, e);
            throw new XBayaException(message, e);
        } catch (Error e) {
            logger.caught(e);
            String message = "Unexpected error: " + this.serviceInformation;
            this.notifier.invocationFailed(message, e);
            throw new XBayaException(message, e);
        }
  }
View Full Code Here

TOP

Related Classes of edu.indiana.extreme.xbaya.XBayaException

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.