Package edu.indiana.extreme.xbaya

Examples of edu.indiana.extreme.xbaya.XBayaException


        node.getOutputPort(0).setName(newStreamName);
        node.setStreamName(newStreamName);
        node.setQuery(this.eplStatement.getText());

      } else {
        throw new XBayaException(
            "length mismatch in xpaths, property names and types");
      }
    } catch (Exception e) {

    }
View Full Code Here


        }
        if (exception != null) {
            if (exception instanceof XBayaException) {
                throw (XBayaException) exception;
            } else {
                throw new XBayaException(exception);
            }
        }
    }
View Full Code Here

          targetMethod = method;
          break;
        }
      }
      if(targetMethod == null){
        throw new XBayaException("Could not find the method using reflection: "+this.operationName);
      }
     
      targetMethod.setAccessible(true);
      this.result = targetMethod.invoke(obj, inputs);
     
     
    } catch (Exception e) {
      throw new XBayaException(e);
    }
  }
View Full Code Here

                 Method method = sysclass.getDeclaredMethod("addURL",parameters);
                 method.setAccessible(true);
                 method.invoke(sysloader,new Object[]{ this.jarUrl });
         } catch (Throwable t) {
                 t.printStackTrace();
                 throw new XBayaException("Error, could not add URL to system classloader");
         }
  }
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);
    }

    try {
      this.creator = new GFacServiceCreator(wsdlLoc);
    } catch (URISyntaxException e) {
      String message = "The location of the Generic Factory is in a wrong format";
      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";
        throw new XBayaException(message, e);
      }
    }

    WsdlDefinitions definitions = this.creator
        .createService(this.portTypeQName);
View Full Code Here

      // 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);
    }

    logger.exiting();
  } 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);
  }

    boolean success = this.invoker.invoke();
    if(!success){
      try {
View Full Code Here

                            return null;
                        }
                    });
        } catch (PrivilegedActionException e) {
            logger.caught(e);
            throw new XBayaException(e.getCause());
        }

    }
View Full Code Here

    } catch (URISyntaxException e) {
      logger.caught(e);
      String message = "The location of the WSDL has to be a valid URL or file path: "
          + this.serviceInformation;
      this.notifier.invocationFailed(message, e);
      throw new XBayaException(message, e);
    } catch (WsdlException e) {
      logger.caught(e);
      String message = "Error in processing the WSDL: "
          + this.serviceInformation;
      this.notifier.invocationFailed(message, e);
      throw new XBayaException(message, e);
    } catch (RuntimeException e) {
      logger.caught(e);
      String message = "Error in processing the WSDL: "
          + 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

    } catch (RuntimeException e) {
      logger.caught(e);
      String message = "The WSDL does not conform to the invoking 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

    } catch (RuntimeException e) {
      logger.caught(e);
      String message = "Error in setting an input. name: " + name
          + " value: " + value;
      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.