Package org.jinterop.dcom.common

Examples of org.jinterop.dcom.common.JIException


   * @throws ConfigurationException
   */
  public int connect(PropertiesReader reader, String[] altConfigs) throws ConfigurationException, JIException, IOException {
   
    ConfigurationException ce = null;
    JIException je = null;
    IOException ie = null;
   
    for (String configurationName : altConfigs) {
      try {
        Properties tmp = reader.getPropertiesForInstance(configurationName);
View Full Code Here


    JIVariant[] objects = callMethodA(
        "Get",
        new Object[]{new JIVariant(i)}
        );
    if (objects == null || objects.length < 1) {
      throw new JIException(-1,
          "GET(" + i + ") returns null or zero elements");
    }
    return new OCObject(objects[0]);
  }
View Full Code Here

  protected OCObject find(String paramName) throws JIException {
    JIVariant var = callMethodA("Find", new JIVariant(paramName))[0];
    if (var.getType() != JIVariant.VT_EMPTY) {
      return new OCObject(var);
    } else {
      throw new JIException(-1, "Parameter '" + paramName + "' not found");
    }
  }
View Full Code Here

TOP

Related Classes of org.jinterop.dcom.common.JIException

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.