Package org.slf4j

Examples of org.slf4j.Logger.warn()


    @Test
    public void dependency_cycle()
    {
        Logger logger = mockLogger();

        logger.warn("Unable to add 'barney' as a dependency of 'betty', as that forms a "
                + "dependency cycle ('betty' depends on itself via 'barney'). "
                + "The dependency has been ignored.");

        replay();
View Full Code Here


        try {
            Cipher.getInstance("AES/CBC/ISO10126Padding");
        } catch (NoSuchAlgorithmException e) {
            // IBM JCE returns this as the top-level exception even for the unsupported padding case. :-(
            // Otherwise would be nice to make the error msg more specific.
            log.warn(errorMsgAESPadding);
            ret = false;
        } catch (NoSuchPaddingException e) {
            log.warn(errorMsgAESPadding);
            ret = false;
        }
View Full Code Here

            // IBM JCE returns this as the top-level exception even for the unsupported padding case. :-(
            // Otherwise would be nice to make the error msg more specific.
            log.warn(errorMsgAESPadding);
            ret = false;
        } catch (NoSuchPaddingException e) {
            log.warn(errorMsgAESPadding);
            ret = false;
        }

        // Could do more tests here as needed.
View Full Code Here

            // these have no defined representation, just return a DER-encoded byte[]
            return ((DERObject) nameValue).getDEREncoded();
        }

        log.warn("Encountered unknown alt name type '{}', adding as-is", nameType);
        return nameValue;
    }
   
    /**
     * Get an SLF4J Logger.
View Full Code Here

            try {
                int keyLength = JCEMapper.getKeyLengthFromURI(algorithmURI);
                return new Integer(keyLength);
            } catch (NumberFormatException e) {
                log.warn("XML Security config contained invalid key length value for algorithm URI: " + algorithmURI);
            }
        }

        log.info("Mapping from algorithm URI {} to key length not available", algorithmURI);
        return null;
View Full Code Here

    @Test
    public void missing_constraint_type()
    {
        Logger logger = mockLogger();

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

        replay();

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

    @Test
    public void unknown_constraint_type()
    {
        Logger logger = mockLogger();

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

        replay();

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

        o.add("barney", "BARNEY");
        o.add("wilma", "WILMA");

        verify();

        logger.warn(UtilMessages.duplicateOrderer("fred"));

        replay();

        o.add("fred", "FRED2");
View Full Code Here

    @Test
    public void dependency_cycle()
    {
        Logger logger = mockLogger();

        logger.warn("Unable to add 'barney' as a dependency of 'betty', as that forms a "
                + "dependency cycle ('betty' depends on itself via 'barney'). "
                + "The dependency has been ignored.");

        replay();
View Full Code Here

        train_getContainer(valueResources, containerResources);

        train_getCompleteId(valueResources, PAGE_NAME + ":child");

        logger
                .warn("Component Zoop:child was returned from an event handler method, but is not a page component. The page containing the component will render the client response.");

        train_getPageName(valueResources, PAGE_NAME);
        train_get(cache, PAGE_NAME, page);
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.