Package speculoos.spi

Examples of speculoos.spi.MapperTechnicalException


      } catch (EmptyStackException e) {
        /* stack is empty. Create new connection */
        try {
          ctx = factory.connect();
        } catch (Exception e1) {
          throw new MapperTechnicalException(
              "Error in creating connection from factory", e1);
        }
      } catch (NullPointerException e) {
        /* pool is disabled */
        throw new MapperTechnicalException(
            "Pool closed while trying to connect");
      }
      /* done ? */
      if (ctx != null)
        break;
View Full Code Here


      log.warn("Error in disconnecting for destroy" + ctxToDestroy, e);
    }
    try {
      return factory.connect();
    } catch (Exception e) {
      throw new MapperTechnicalException(
          "Error in creating connection from factory", e);
    }
  }
View Full Code Here

   */
  protected JNDIConnection connect() throws MapperTechnicalException {
    try {
      return new SimpleJNDIConnectionImpl(new InitialDirContext(new Hashtable(current)));
    } catch (NamingException e) {
      throw new MapperTechnicalException(
          "Error while trying to connect to source ", e);
    }
  }
View Full Code Here

      log.info("[" + name + "] creating mapper " + m);
    try {
      dirc = connect();
      jm.setDirectory(dirc);
    } catch (NamingException e) {
      throw new MapperTechnicalException(
          "Cannot instantiate mapper " + m, e);
    }
    /* sets the environment */
    Map env = new HashMap(environment);
    env.putAll(current);
View Full Code Here

    try {
      _root = nameParser.parse(rs);
      vars.put("root", _root);
      vars.put("__ROOT__", rs);
    } catch (NamingException e1) {
      throw new MapperTechnicalException(
          "Cannot resolve name for root context " + root);
    }
  }
View Full Code Here

          "The new relative name is not set");
    Name _nrdn;
    try {
      _nrdn = nameParser.parse(newRDN);
    } catch (NamingException e1) {
      throw new MapperTechnicalException(
          "Cannot resolve name for new RDN context " + newRDN);
    }
    /* do query */
    try {
      if (log.isDebugEnabled())
View Full Code Here

TOP

Related Classes of speculoos.spi.MapperTechnicalException

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.