Examples of logWarn()


Examples of org.springframework.amqp.rabbit.log4j.service.AbstractService.logWarn()

        service.logDebug(randomMessage);
        countDebug++;
        break;
      case 2:
        // WARN
        service.logWarn(randomMessage);
        countWarn++;
        break;
      case 3:
        // ERROR
        service.logError(randomMessage);
View Full Code Here

Examples of rabbit.util.Logger.logWarn()

      tl.read (read);
      buffer.position (startParseAt);
      buffer.limit (read + pos);
      parseBuffer ();
  } catch (IOException e) {
      logger.logWarn ("Failed to handle connection: " + e);
      reader.failed (e);
  }
    }
   
    private void parseBuffer () throws IOException {
View Full Code Here

Examples of rabbit.util.Logger.logWarn()

     */
    private boolean verifyResponse () throws IOException
  // some broken web servers (apache/2.0.4x) send multiple last-chunks
  if (buffer.remaining () > 4 && matchBuffer (EXTRA_LAST_CHUNK)) {
      Logger log = getLogger ();
      log.logWarn ("Found a last-chunk, trying to ignore it.");
      buffer.position (buffer.position () + EXTRA_LAST_CHUNK.capacity ());
      return verifyResponse ();
  }

  if (buffer.remaining () > 4 && !matchBuffer (HTTP_IDENTIFIER)) {
View Full Code Here

Examples of rabbit.util.Logger.logWarn()

      return verifyResponse ();
  }

  if (buffer.remaining () > 4 && !matchBuffer (HTTP_IDENTIFIER)) {
      Logger log = getLogger ();
      log.logWarn ("http response header with odd start:" +
       getBufferStartString (5));
      header = new HttpHeader ();
      header.setStatusLine ("HTTP/1.1 200 OK");
      header.setHeader ("Connection", "close");
      return true;
View Full Code Here

Examples of rabbit.util.Logger.logWarn()

  String rpwd = null;
  try {
      rpwd = getBackendPassword (con.getProxy ().getLogger (), username);
  } catch (SQLException e) {
      Logger log = con.getProxy ().getLogger ();
      log.logWarn ("Exception when trying to get user: " + e);
      closeDB (con);
  }
  if (rpwd == null || !rpwd.equals (pwd))
      return getError (con, header);
  return null;
View Full Code Here

Examples of rabbit.util.Logger.logWarn()

      return;
  try {
      db.close ();
  } catch (SQLException e) {
      Logger log = con.getProxy ().getLogger ();
      log.logWarn ("failed to close database: " + e);
  }
  db = null;
    }

    private String getBackendPassword (Logger logger, String username)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.