Package java.util.logging

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


                }
                log.info(sb.toString());
            }

        } catch (Exception e) {
            log
                .severe(Globals
                    .lang("Error in starting plug-in system. Starting without, but some functionality may be missing.") +
                    "\n" + e.getLocalizedMessage());
        }
        return result;
View Full Code Here


            //err.printStackTrace();
            String msg = err.getMessage() + ". Variable reference $" + getDisplayName() +
                     (getSystemId() == null ? "" : " of " + getSystemId());
            // log here in case this is not handled properly
            Logger logger = Logger.getLogger("VariableReference");
            logger.severe("internal null reference error: " + msg);
            throw new XPathException(msg);
        }
    }

    public Item evaluateItem(XPathContext c) throws XPathException {
View Full Code Here

            } catch (RuntimeException e) {
                StringWriter sw = new StringWriter();
                PrintWriter pw = new PrintWriter(sw);
                e.printStackTrace(pw);
                pw.flush();
                logger.severe("Runtime error in converter " + conv.getClassname());
                logger.severe(sw.getBuffer().toString());
                throw new BuildException("converter " + conv.getClassname() + " failed: " + e.getMessage(), e);
            }
        }
    }
View Full Code Here

                StringWriter sw = new StringWriter();
                PrintWriter pw = new PrintWriter(sw);
                e.printStackTrace(pw);
                pw.flush();
                logger.severe("Runtime error in converter " + conv.getClassname());
                logger.severe(sw.getBuffer().toString());
                throw new BuildException("converter " + conv.getClassname() + " failed: " + e.getMessage(), e);
            }
        }
    }
View Full Code Here

    public static String getExportName(Plugin plugin) {
        final Collection<Class<? extends Plugin>> primaryInterfaces = new PluginUtil(plugin).getPrimaryInterfaces();
        final Logger logger = Logger.getLogger(PluginExport.class.getName());

        if (primaryInterfaces.size() < 1) {
            logger.severe("CRITICAL ERROR: UNABLE TO GET ANY INTERFACE NAME FOR " + plugin);
            return "ERROR";
        }

        if (primaryInterfaces.size() > 1) {
            logger.warning("Multiple plugin names found ... that is very bad and means your export names will be unstable!");
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

            int rint = r.random(0, list.size()-1);
            return list.get(rint);
           
        } catch (JSONException ex) {
            Logger logger = Logger.getLogger(RandomUtil.class.getName());
            logger.severe("Could not create JSON Object - str = " + jsonStr.toString());
        }
        return null;
    }
    /**
     * Randomly selects an event from the events page.
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 " + getLibraryName() + ":" + getResourceName());
                            }
                           
                            delegate.unread(c3);
                            for (int i = expressionList.size()-1; i >= 0; i--)
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

            int rint = r.random(0, list.size()-1);
            return list.get(rint);
           
        } catch (JSONException ex) {
            Logger logger = Logger.getLogger(RandomUtil.class.getName());
            logger.severe("Could not create JSON Object - str = " + jsonStr.toString());
        }
        return null;
    }
    /**
     * Randomly selects an event from the events 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.