Package org.apache.commons.logging

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


        Resource r = new ClasspathResource(new DefaultClassResolver(), "/foo/bar/Baz.module");
        Location l = new LocationImpl(r, 13);

        Throwable ex = new IllegalArgumentException();

        log.error("Error at classpath:/foo/bar/Baz.module, line 13: Bad frob value.", ex);

        replayControls();

        ErrorHandler eh = new DefaultErrorHandler();
View Full Code Here


    {
        Log log = (Log) newMock(Log.class);

        Throwable ex = new IllegalArgumentException();

        log.error("Error: Bad frob value.", ex);

        replayControls();

        ErrorHandler eh = new DefaultErrorHandler();
View Full Code Here

                }
            } catch (Exception e) {
                if (log == null)
                    log = LogFactory.getLog(DojoUtils.class);
                // this should not happen but can
                log.error("getAttributeMap", e);
            }
        }
        return returnMap;
    }
View Full Code Here

    public void testExtraServiceMethod()
    {
        Module module = setupModule();
        Log log = (Log) newMock(Log.class);

        log.error(
            "Service interface method void extraServiceMethod() has no match in filter interface java.io.Serializable.");

        replayControls();

        BridgeBuilder bb =
View Full Code Here

    public void testExtraFilterMethod()
    {
        Module module = setupModule();
        Log log = (Log) newMock(Log.class);

        log.error(
            "Method void extraFilterMethod() of filter interface "
                + "org.apache.hivemind.lib.pipeline.ExtraFilterMethod does not have a matching service "
                + "interface method (in interface java.io.Serializable, service foo.bar).");

        replayControls();
View Full Code Here

     */
    public static Node dataNode(final Map namespaces, final Object data,
            final String path) {
        if (data == null || !(data instanceof Node)) {
            Log log = LogFactory.getLog(Builtin.class);
            log.error("Data(): Cannot evaluate an XPath expression"
                + " in the absence of a context Node, null returned");
            return null;
        }
        Node dataNode = (Node) data;
        NodeList result = null;
View Full Code Here

                result = xpath.execute(xpathSupport, ctxtNode,
                    prefixResolver).nodelist();
            }
        } catch (TransformerException te) {
            Log log = LogFactory.getLog(Builtin.class);
            log.error(te.getMessage(), te);
            return null;
        }
        int length = result.getLength();
        if (length == 0) {
            Log log = LogFactory.getLog(Builtin.class);
View Full Code Here

     * @deprecated Use {@link #dataNode(Map,Object,String)} instead
     */
    public static Node dataNode(final Object data, final String path) {
        if (data == null || !(data instanceof Node)) {
            Log log = LogFactory.getLog(Builtin.class);
            log.error("Data(): Cannot evaluate an XPath expression"
                + " in the absence of a context Node, null returned");
            return null;
        }
        Node dataNode = (Node) data;
        NodeList result = null;
View Full Code Here

        NodeList result = null;
        try {
            result = XPathAPI.selectNodeList(dataNode, path);
        } catch (TransformerException te) {
            Log log = LogFactory.getLog(Builtin.class);
            log.error(te.getMessage(), te);
            return null;
        }
        int length = result.getLength();
        if (length == 0) {
            Log log = LogFactory.getLog(Builtin.class);
View Full Code Here

                } catch (SCXMLExpressionException see) {
                    if (log != null) {
                        log.error(see.getMessage(), see);
                    } else {
                        Log defaultLog = LogFactory.getLog(SCXMLHelper.class);
                        defaultLog.error(see.getMessage(), see);
                    }
                }
                ctx.setLocal(datum.getId(), value);
            } else {
                ctx.setLocal(datum.getId(), valueNode);
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.