Package ru.vassaev.core.exception

Examples of ru.vassaev.core.exception.SysException


  private final InterfaceTaskAPI initInterface() throws SysException {
    String lookup;
    synchronized (prms) {
      Map<String, String> values = prms.get(alias);
      if (values == null)
        throw new SysException("Unregistered TaskAPI by alias '" + alias + "'");
      lookup = values.get("lookup");
    }
    InterfaceTaskAPI obj;
    try {
      obj = (InterfaceTaskAPI) Naming.lookup(lookup);
      synchronized (sync) {
        ta = obj.getInterfaceInstance(alias);
      }
      Set<String> s;
      synchronized(classes) {
        for (Map.Entry<Long, Set<String>> entry : classes.entrySet()) {
          s = entry.getValue();
          try {
            ta.registerClasses(entry.getKey(), s);
          } catch (RemoteException e1) {
            throw new SysException(e1);
          }
        }
      }
      return ta;
    } catch (MalformedURLException e) {
      throw new SysException(e);
    } catch (RemoteException e) {
      throw new SysException(e);
    } catch (NotBoundException e) {
      throw new SysException(e);
    }
  }
View Full Code Here


      e.printStackTrace();
      attempt--;
      if (attempt > 0) {
        ta = initInterface();
      } else
        throw new SysException(e);
    }
  }
View Full Code Here

      e.printStackTrace();
      attempt--;
      if (attempt > 0) {
        ta = initInterface();
      } else
        throw new SysException(e);
    }
  }
View Full Code Here

      e.printStackTrace();
      attempt--;
      if (attempt > 0) {
        ta = initInterface();
      } else
        throw new SysException(e);
    }
  }
View Full Code Here

      e.printStackTrace();
      attempt--;
      if (attempt > 0) {
        ta = initInterface();
      } else
        throw new SysException(e);
    }
  }
View Full Code Here

      e.printStackTrace();
      attempt--;
      if (attempt > 0) {
        ta = initInterface();
      } else
        throw new SysException(e);
    }
  }
View Full Code Here

      e.printStackTrace();
      attempt--;
      if (attempt > 0) {
        ta = initInterface();
      } else
        throw new SysException(e);
    }
  }
View Full Code Here

      e.printStackTrace();
      attempt--;
      if (attempt > 0) {
        ta = initInterface();
      } else
        throw new SysException(e);
    }
  }
View Full Code Here

      e.printStackTrace();
      attempt--;
      if (attempt > 0) {
        ta = initInterface();
      } else
        throw new SysException(e);
    }
  }
View Full Code Here

      e.printStackTrace();
      attempt--;
      if (attempt > 0) {
        ta = initInterface();
      } else
        throw new SysException(e);
    }
  }
View Full Code Here

TOP

Related Classes of ru.vassaev.core.exception.SysException

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.