Package java.util.logging

Examples of java.util.logging.Logger.severe()


                        }  
                        InputStream stream = ectx.getResourceAsStream(systemId);
                        if (stream == null)
                        {
                           
                            log.severe("Faces config resource " + systemId + " not found");
                            continue;
                        }
           
                        if (log.isLoggable(Level.INFO))
                        {
View Full Code Here


                        context.getApplication().publishEvent (context, ExceptionQueuedEvent.class, equecontext);
                       
                        Logger log = Logger.getLogger(ResourceImpl.class.getName());
                        if (log.isLoggable(Level.SEVERE))
                        {
                            log.severe("Cannot evaluate EL expression " + convertToExpression(expressionList)
                                    + " in resource " + (libraryName == null?"":libraryName) + ":" +
                                    (resourceName == null?"":resourceName));
                        }
                       
                        delegate.unread(c3);
View Full Code Here

                        }  
                        InputStream stream = ectx.getResourceAsStream(systemId);
                        if (stream == null)
                        {
                           
                            log.severe("Faces config resource " + systemId + " not found");
                            continue;
                        }
           
                        if (log.isLoggable(Level.INFO))
                        {
View Full Code Here

            // However, if we exceed the limit, we do not select the last one.
            // We redo the selection instead.
        } while (selected >= ScaleFactors.tagCount && loops++ < 10);

        if (loops >= 10)
            logger.severe("Exceeded loop limit. Selected:" +
                            selected + " TagCount: " + ScaleFactors.tagCount);

        // We use the user name mechanism to create the tag names
        return ++selected;
    }
View Full Code Here

                            ExceptionQueuedEventContext equecontext = new ExceptionQueuedEventContext (context, e, null);
                            context.getApplication().publishEvent (context, ExceptionQueuedEvent.class, equecontext);
                           
                            Logger log = Logger.getLogger(ResourceImpl.class.getName());
                            if (log.isLoggable(Level.SEVERE))
                                log.severe("Cannot evaluate EL expression "+convertToExpression(expressionList)+ " in resource " + getLibraryName()+":"+getResourceName());
                           
                            delegate.unread(c3);
                            for (int i = expressionList.size()-1; i >= 0; i--)
                            {
                                delegate.unread(expressionList.get(i));
View Full Code Here

            }
            catch (IOException e)
            {
                Logger log = Logger.getLogger(CAPTCHAResourceHandlerWrapper.class.getName());
                if (log.isLoggable(Level.SEVERE))
                    log.severe("Error trying to load resource " + resourceName
                            + " with library " + libraryName + " :"
                            + e.getMessage());
                httpServletResponse.setStatus(HttpServletResponse.SC_NOT_FOUND);
            }
        }
View Full Code Here

                            ExceptionQueuedEventContext equecontext = new ExceptionQueuedEventContext (context, e, null);
                            context.getApplication().publishEvent (context, ExceptionQueuedEvent.class, equecontext);
                           
                            Logger log = Logger.getLogger(ResourceImpl.class.getName());
                            if (log.isLoggable(Level.SEVERE))
                                log.severe("Cannot evaluate EL expression "+convertToExpression(expressionList)+ " in resource " + getLibraryName()+":"+getResourceName());
                           
                            delegate.unread(c3);
                            for (int i = expressionList.size()-1; i >= 0; i--)
                            {
                                delegate.unread(expressionList.get(i));
View Full Code Here

                // Bummer, the command had an error. Log and save output
                failureOccurred = true;
                failedServerNames.append(iname).append(" ");
                reportResult.failedServerNames.add(iname);
                msg = iname + ": " + instanceReport.getMessage();
                logger.severe(msg);
                output.append(msg).append(NL);
                msg = Strings.get("cluster.command.instancesFailed", command, iname);
                progress.progress(1, msg);
            } else {
                // Command worked. Note that too.
View Full Code Here

                // Bummer, the command had an error. Log and save output
                failureOccurred = true;
                failedServerNames.append(iname).append(" ");
                reportResult.failedServerNames.add(iname);
                msg = iname + ": " + instanceReport.getMessage();
                logger.severe(msg);
                output.append(msg).append(NL);
                msg = Strings.get("cluster.command.instancesFailed", command, iname);
                progress.progress(1, msg);
            } else {
                // Command worked. Note that too.
View Full Code Here

        System.out.println("totalMemory = " + runtime.totalMemory());

        Logger logger = Logger.getLogger(MemorySettingsTest.class.getName());

        logger.severe("maxMemory = " + runtime.maxMemory());

        logger.severe("freeMemory = " + runtime.freeMemory());

        logger.severe("totalMemory = " + runtime.totalMemory());
    }
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.