Package org.apache.commons.logging

Examples of org.apache.commons.logging.Log.warn()


    if (isValidHandler(globalValue))
    {
      this.tagData.put(new TagDefinitionKey(null, null), new TagDefinitionValue(globalValue, true));
      if (warnedLegacyConfig == false)
      {
        legacyWarningLog.warn("Configured configuration-properties based override for global read-hander. " +
                "Change your code to use proper module-initializers instead. " +
                "This method of configuring the parser will go away in the next major version.");
        warnedLegacyConfig = true;
      }
    }
View Full Code Here


      }
      if (isValidHandler(tagData))
      {
        if (warnedLegacyConfig == false)
        {
          legacyWarningLog.warn("Configured configuration-properties based override for global read-hander. " +
                  "Change your code to use proper module-initializers instead. " +
                  "This method of configuring the parser will go away in the next major version.");
          warnedLegacyConfig = true;
        }
        this.tagData.put(new TagDefinitionKey(nsUri, null), new TagDefinitionValue(tagData, true));
View Full Code Here

        continue;
      }

      if (warnedLegacyConfig == false)
      {
        legacyWarningLog.warn("Configured configuration-properties based override for global read-hander. " +
                "Change your code to use proper module-initializers instead. " +
                "This method of configuring the parser will go away in the next major version.");
        warnedLegacyConfig = true;
      }
View Full Code Here

          (TaskTracker) context.getAttribute("task.tracker");
        Log log = (Log) context.getAttribute("log");
        String errorMsg = ("getMapOutput(" + mapId + "," + reduceId +
                           ") failed :\n"+
                           StringUtils.stringifyException(ie));
        log.warn(errorMsg);
        if (isInputException) {
          tracker.mapOutputLost(mapId, errorMsg);
        }
        response.sendError(HttpServletResponse.SC_GONE, errorMsg);
        shuffleMetrics.failedOutput();
View Full Code Here

        } finally {
            if (jis != null) {
                try {
                    jis.close();
                } catch (Exception e) {
                    logger.warn("Cannot close jar stream [" + pluginJarFileUrl + "]. Cause: " + e);
                }
            }
        }
    }
View Full Code Here

        } finally {
            if (jis != null) {
                try {
                    jis.close();
                } catch (Exception e) {
                    logger.warn("Cannot close jar stream [" + pluginJarFileUrl + "]. Cause: " + e);
                }
            }

            logValidationEvents(pluginJarFileUrl, validationEventCollector, logger);
        }
View Full Code Here

        } finally {
            if (jis != null) {
                try {
                    jis.close();
                } catch (Exception e) {
                    logger.warn("Cannot close jar stream [" + pluginJarFileUrl + "]. Cause: " + e);
                }
            }
        }
    }
View Full Code Here

                Long fileSize = null;
                if (sizeString != null) {
                    try {
                        fileSize = Long.parseLong(sizeString);
                    } catch (NumberFormatException e) {
                        log.warn("Could not parse file size: " + sizeString);
                    }
                }

                Long installTime = null;
                if (installTimeString != null) {
View Full Code Here

  public void waitForRetry() {
    EnumQueryResult result = getQueryResult();
    if (result != null) {
      final Log log = LogFactory.getLog(MediaWikiAPI.class);
      if (log != null) {
        log.warn("Waiting after error '" + code + "'");
      }
      result.waitForRetry();
    }
  }
}
View Full Code Here

    Problem problem = new Problem("VGER", new Location(new DescriptiveResource("here")),
        null, new IllegalArgumentException());

    MockControl mockLog = MockControl.createControl(Log.class);
    Log log = (Log) mockLog.getMock();
    log.warn(null, rootCause);
    mockLog.setMatcher(new AbstractMatcher() {
      public boolean matches(Object[] expected, Object[] actual) {
        Assert.assertEquals(2, actual.length);
        Assert.assertTrue(actual[1] instanceof IllegalArgumentException);
        return true;
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.