Package org.apache.commons.logging

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


                XMLBeanInfo xmlInfo =
                    context.getXMLIntrospector().introspect(beanClass);
                return xmlInfo.getElementDescriptor();

            } catch (Exception e) {
                log.warn("Could not introspect class: " + beanClass, e);
            }
        }
        // could not find a better descriptor so use the one we've got
        return propertyDescriptor;
    }
View Full Code Here


        String result = "\n";
        try {
            result = System.getProperty( "line.separator", "\n" );
        } catch (SecurityException se) {
            Log log = LogFactory.getLog( BeanWriter.class );
            log.warn("Cannot load line separator property: " + se.getMessage());
            log.trace("Caused by: ", se);
        }
        return result;
    }
   
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

      } 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(mapId, errorMsg);
        }
        response.sendError(HttpServletResponse.SC_GONE, errorMsg);
        shuffleMetrics.failedOutput();
View Full Code Here

        for (ResourceSchema.Order order : orders)
        {
          if (order == ResourceSchema.Order.DESCENDING)
          {
            Log LOG = LogFactory.getLog(TableStorer.class);
            LOG.warn("Sorting in descending order is not supported by Zebra and the table will be unsorted.");
            descending = true;
            break;
          }
        }
        StringBuilder sortColumnNames = new StringBuilder();
View Full Code Here

                throw t;
            }

        };

        log.warn(ServiceMessages.threadCleanupError(listener, t), t);

        replay();

        ThreadCleanupHubImpl hub = new ThreadCleanupHubImpl(log);
View Full Code Here

        ContributionDef def = new ContributionDefImpl("Service", method, getClassFactory());
        Log log = mockLog();
        OrderedConfiguration<Runnable> configuration = mockOrderedConfiguration();

        log.warn(IOCMessages.contributionWrongValueType(
                "Service",
                def,
                String.class,
                Runnable.class));
View Full Code Here

    @Test
    public void missing_constraint_type()
    {
        Log log = mockLog();

        log.warn(UtilMessages.constraintFormat("fred", "barney"));

        replay();

        Orderer<String> o = new Orderer<String>(log);
View Full Code Here

    @Test
    public void unknown_constraint_type()
    {
        Log log = mockLog();

        log.warn(UtilMessages.constraintFormat("nearby:fred", "barney"));

        replay();

        Orderer<String> o = new Orderer<String>(log);
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.