Examples of error()


Examples of org.apache.hadoop.hive.ql.metadata.formatting.MetaDataFormatter.error()

     * out canonical error code if it can.  Exclude stack trace from output when
     * the error is a specific/expected one.
     * It's written to stdout for backward compatibility (WebHCat consumes it).*/
    try {
      if(downstreamError == null) {
        mdf.error(ss.out, errorMessage, cpr.getResponseCode(), SQLState);
        return cpr;
      }
      ErrorMsg canonicalErr = ErrorMsg.getErrorMsg(cpr.getResponseCode());
      if(canonicalErr != null && canonicalErr != ErrorMsg.GENERIC_ERROR) {
        /*Some HiveExceptions (e.g. SemanticException) don't set
View Full Code Here

Examples of org.apache.hivemind.ErrorHandler.error()

        MockControl c = newControl(ErrorHandler.class);
        ErrorHandler eh = (ErrorHandler) c.getMock();

        Log log = getLog();

        eh.error(
            log,
            "Terminator ss2 for pipeline service foo.bar conflicts with "
                + "previous terminator (ss1, at unknown location) and has been ignored.",
            null,
            null);
View Full Code Here

Examples of org.apache.hivemind.ErrorLog.error()

        MockControl errorLogControl = newControl(ErrorLog.class);
        ErrorLog errorLog = (ErrorLog) errorLogControl.getMock();

        log.info("Executing task Failure.");

        errorLog.error(
                "Exception while executing task Failure: Failure!",
                null,
                new ApplicationRuntimeException(""));
        errorLogControl.setMatcher(new AggregateArgumentsMatcher(new ArgumentMatcher[]
        { null, null, new TypeMatcher() }));
View Full Code Here

Examples of org.apache.jackrabbit.core.state.ChangeLog.error()

            if (log.hasUpdates()) {
                pMgr.store(log);
            }
            return true;
        } catch (ItemStateException e) {
            log.error("Error while setting references: " + e.toString());
            return false;
        }
    }

    protected void checkReferentialIntegrity(ChangeLog changes)
View Full Code Here

Examples of org.apache.jetspeed.logger.JetspeedLogger.error()

                startPortletApplication(context, paDir, Thread.currentThread().getContextClassLoader());
            }
            catch (Exception e)
            {
                String message = INIT_FAILED_MSG + contextName;
                jsLogger.error(message, e);
                context.log(message, e);
                System.err.println(message);
                throw new ServletException(message, e);
            }
           
View Full Code Here

Examples of org.apache.juli.logging.Log.error()

            }
        }
        Log log = LogFactory.getLog(MyEntityResolver.class);
        if (log.isDebugEnabled())
            log.debug("Resolve entity failed" + publicId + " " + systemId);
        log.error(Localizer.getMessage("jsp.error.parse.xml.invalidPublicId",
                publicId));
        return null;
    }
}
View Full Code Here

Examples of org.apache.log.ErrorHandler.error()

                configurator.doConfigure(is, LogManager.getLoggerRepository());
            }

            ContainerUtil.initialize(loggerManager);
        } catch (Exception e) {
            errorHandler.error("Could not set up Cocoon Logger, will use screen instead", e, null);
        }

        this.log = this.loggerManager.getLoggerForCategory(accesslogger);
       
        final String deprecationLevel = getInitParameter("forbidden-deprecation-level", "ERROR");
View Full Code Here

Examples of org.apache.log.Logger.error()

            res.flushBuffer();
            if (log.isDebugEnabled()) {
                log.debug("ConfirmCodeAction : image generator is finished");
            }
        } catch (Exception e) {
            log.error(" error in ConfirmCodeAction :", e);
            throw new SystemException(e);
        }
        return null;
    }
}
View Full Code Here

Examples of org.apache.log.util.DefaultErrorHandler.error()

                configurator.doConfigure(is, LogManager.getLoggerRepository());
            }

            ContainerUtil.initialize(loggerManager);
        } catch (Exception e) {
            errorHandler.error("Could not set up Cocoon Logger, will use screen instead", e, null);
        }

        this.log = this.loggerManager.getLoggerForCategory(accesslogger);
       
        final String deprecationLevel = getInitParameter("forbidden-deprecation-level", "ERROR");
View Full Code Here

Examples of org.apache.log4j.Category.error()

    log4jLogger.fatal("msg" +(n++));
   
    log4jCategory.debug("msg" +(n++));
    log4jCategory.info("msg" +(n++));
    log4jCategory.warn("msg" +(n++));
    log4jCategory.error("msg" +(n++));
    log4jCategory.fatal("msg" +(n++));
    assertEquals(n, listHandler.list.size());
   
    for(int i = 0; i < n; i++) {
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.