Package org.apache.commons.logging

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


      } catch (IOException ie) {
        Log log = (Log) context.getAttribute("log");
        String errorMsg = ("getMapOutput(" + mapId + "," + reduceId +
                           ") failed :\n"+
                           StringUtils.stringifyException(ie));
        log.warn(errorMsg);
        if (isInputException) {
          tracker.mapOutputLost(TaskAttemptID.forName(mapId), errorMsg);
        }
        response.sendError(HttpServletResponse.SC_GONE, errorMsg);
        shuffleMetrics.failedOutput();
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(TaskAttemptID.forName(mapId), errorMsg);
        }
        response.sendError(HttpServletResponse.SC_GONE, errorMsg);
        shuffleMetrics.failedOutput();
View Full Code Here

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

                else if (EhCacheFacade.this.createMissingCaches) {
                    cacheManager.addCache(name);
                    cache = cacheManager.getCache(name);
                   
                    if (logger.isWarnEnabled()) {
                        logger.warn("Created new default EhCache for '" + name + "'");
                    }
                }
                else {
                    cache = null;
                   
View Full Code Here

                if (log.isInfoEnabled()) {
                    log.info("found explicit getter " + getterMethod.getName());
                }
                if (isPossiblePropertyAccessor(method, propertyType)
                    && (getterMethod != method)) {
                    log.warn("explicit getter " + getterMethod.getName() + " (should be passed method)");
                }
            }
            else {
                //they gave an explicit method name but it could not be found
                log.warn("no explicit getter " + explicitMethodName);
View Full Code Here

                    log.warn("explicit getter " + getterMethod.getName() + " (should be passed method)");
                }
            }
            else {
                //they gave an explicit method name but it could not be found
                log.warn("no explicit getter " + explicitMethodName);
            }
        }
        else if (isPossiblePropertyAccessor(method, propertyType)) {
            //this was put on the an accessor assume it was what they wanted
            getterMethod = method;
View Full Code Here

                if (log.isInfoEnabled()) {
                    log.info("found standard getter " + getterMethod.getName());
                }
            }
            else {
                log.warn("no standard getter");
            }
        }
        return getterMethod;
    }
View Full Code Here

                if (log.isInfoEnabled()) {
                    log.info("found explicit setter " + setterMethod.getName());
                }
                if (isPossiblePropertyMutator(method, propertyType)
                    && (setterMethod != method)) {
                    log.warn("explicit setter " + setterMethod.getName() + " (should be passed method)");
                }
            }
            else {
                //they gave an explicit method name but it could not be found
                log.warn("no explicit setter " + explicitMethodName);
View Full Code Here

                    log.warn("explicit setter " + setterMethod.getName() + " (should be passed method)");
                }
            }
            else {
                //they gave an explicit method name but it could not be found
                log.warn("no explicit setter " + explicitMethodName);
            }
        }
        else if (isPossiblePropertyMutator(method, propertyType)) {
            //this was put on a mutator assume it was what they wanted?
            setterMethod = method;
View Full Code Here

                    currentTag.getAttributeValue("ejb-name") + "\" view-type=\"" +
                    currentTag.getAttributeValue("view-type") + "\"");
                throw new XDocletException("Duplicate @ejb.ejb-ref with different parameters");
            }
            else {
                log.warn("Duplicated @ejb.ejb-ref found, ref-name=\"" + refName + "\"");
            }
        }

        referringClassId = null;
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.