Package org.apache.commons.logging

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


        } else {
            double tmpIndex = p.getNumeric().getNumericValue();
            if (tmpIndex - columnIndex > 0.0) {
                columnIndex = (int) Math.round(tmpIndex);
                Log log = LogFactory.getLog(TableFObj.class);
                log.warn("Rounding specified column-number of "
                        + tmpIndex + " to " + columnIndex);
                p = NumberProperty.getInstance(columnIndex);
            }
        }
       
View Full Code Here


        String expectedMethod = InternalUtils.asString(ServiceIdConflictMethodModule.class
                .getMethod("buildFred", Object.class), _classFactory);

        Log log = mockLog();

        log.warn(buildMethodConflict(conflictMethodString, expectedMethod), null);

        replay();

        // BigDecimal is arbitrary, any class would do.
View Full Code Here

    {
        Method m = VoidBuilderMethodModule.class.getMethod("buildNull");

        Log log = mockLog();

        log.warn(IOCMessages.buildMethodWrongReturnType(m), null);

        replay();

        ModuleDef md = new DefaultModuleDefImpl(VoidBuilderMethodModule.class, log, null);
View Full Code Here

    {
        Method m = BuilderMethodModule.class.getMethod("buildStringArray");

        Log log = mockLog();

        log.warn(IOCMessages.buildMethodWrongReturnType(m), null);

        replay();

        ModuleDef md = new DefaultModuleDefImpl(BuilderMethodModule.class, log, null);
View Full Code Here

    {
        Method m = moduleClass.getMethod(methodName, Object.class);

        Log log = mockLog();

        log.warn(IOCMessages.decoratorMethodWrongReturnType(m), null);

        replay();

        ModuleDef md = new DefaultModuleDefImpl(moduleClass, log, null);
View Full Code Here

        Class moduleClass = NoDelegateDecoratorMethodModule.class;
        Method m = moduleClass.getMethod("decorateNoDelegate");

        Log log = mockLog();

        log.warn(IOCMessages.decoratorMethodNeedsDelegateParameter(m), null);

        replay();

        ModuleDef md = new DefaultModuleDefImpl(moduleClass, log, null);
View Full Code Here

    {
        Class moduleClass = TooManyContributionParametersModule.class;
        Method m = findMethod(moduleClass, "contributeTooMany");

        Log log = mockLog();
        log.warn(IOCMessages.tooManyContributionParameters(m));

        replay();

        ModuleDef md = new DefaultModuleDefImpl(moduleClass, log, null);
View Full Code Here

    {
        Class moduleClass = NoUsableContributionParameterModule.class;
        Method m = findMethod(moduleClass, "contributeNoParameter");

        Log log = mockLog();
        log.warn(IOCMessages.noContributionParameter(m));

        replay();

        ModuleDef md = new DefaultModuleDefImpl(moduleClass, log, null);
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

          (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

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.