Package java.util.logging

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


            localController.setTargetNode(Document.get());          // target node is the document node
           
            renderXML(sourceDoc, styleDoc, body);                   // principle output is to the body element

        } catch (Exception err) {
          logger.log(Level.SEVERE, err.getMessage());
        }
    }
   
    public static Element getBodyElement() {
      Element body = Document.get().getElementsByTagName("BODY").getItem(0);
View Full Code Here


            eventAction.addEvent(newEvent);
            shelfAction.addShelf(newShelf);
        } catch (Exception e) {
            error.fire(new ErrorEvent("Error", Constants.EVENT_SAVING_ERROR + " <br /> " + e.getMessage()));
            logger.log(Level.SEVERE, "exception occured", e);
            return;
        }
        shelfEvent.select(new EventTypeQualifier(Events.EVENT_ADDED_EVENT)).fire(new ShelfEvent(newEvent));
    }
View Full Code Here

    public static void main(String[] args) {
        configureLogging();
        try {
            int port = (args.length > 0) ? Integer.parseInt(args[0]) : 8888;
            final Logger logger = Logger.getLogger(EndpointService.class.getName());
            logger.log(Level.FINE, "Starting on port " + port);
            HttpServer httpd = new NormalHttpServer(port,
                    new EndpointService(new Endpoint() {
                        public boolean acceptSubscriptionChange(String mode, String topic, String token, int leaseSeconds) {
                            System.out.println("Subscription change: "+mode+", "+topic+", "+token+", "+leaseSeconds);
                            return true;
View Full Code Here

        for (int i = 0; i < uris.length; i++) {
            try {
                threads[i].join();
            } catch (java.lang.InterruptedException excp) {
                logger.log(Level.WARNING, "Thread is interrupted", excp);
            }
        }
    }

    public static void main(String[] args) throws URISyntaxException {
View Full Code Here

                }
                //everything worked okay. send response message
                sender.send(clientID, new CellCreatedMessage(editMessage.getMessageID(), cellMO.getCellID()));

            } catch (ClassCastException cce) {
                logger.log(Level.WARNING, "Error setting up new cell " +
                        cellMO.getName() + " of type " +
                        cellMO.getClass() + ", it does not implement " +
                        "BeanSetupMO.", cce);
                sender.send(clientID,
                        new ErrorMessage(editMessage.getMessageID(),cce));
View Full Code Here

                        "BeanSetupMO.", cce);
                sender.send(clientID,
                        new ErrorMessage(editMessage.getMessageID(),cce));
                return;
            } catch (MultipleParentException excp) {
                logger.log(Level.WARNING, "Error adding new cell " + cellMO.getName()
                        + " of type " + cellMO.getClass() + ", has multiple parents", excp);
                sender.send(clientID,
                        new ErrorMessage(editMessage.getMessageID(), excp));
                return;
            }
View Full Code Here

                else {
                    parentCellMO.addChild(newCellMO);
                }
                sender.send(clientID, new CellCreatedMessage(editMessage.getMessageID(), newCellMO.getCellID()));
            } catch (MultipleParentException excp) {
                logger.log(Level.WARNING, "Error duplicating cell " +
                        newCellMO.getName() + " of type " + newCellMO.getClass() +
                        ", has multiple parents", excp);
                sender.send(clientID, new ErrorMessage(editMessage.getMessageID(),
                        excp));
                return;
View Full Code Here

                for (String file : files) {
                    if (file.endsWith(".jar") == true) {
                        try {
                            jarURIs.add(this.getPluginJarURI(asset.moduleName, file, asset.assetType));
                        } catch (URISyntaxException excp) {
                            logger.log(Level.WARNING, "[MODULES] GET PLUGINS Invalid JAR URI", excp);
                        }
                    }
                }
            }
        }
View Full Code Here

            mpl.encode(sw);
            ResponseBuilder rb = Response.ok(sw.toString());
            return rb.build();
        } catch (javax.xml.bind.JAXBException excp) {
            /* Log an error and return an error response */
            logger.log(Level.WARNING, "[MODULES] GET PLUGINS Unable to encode", excp);
            ResponseBuilder rb = Response.status(Response.Status.BAD_REQUEST);
            return rb.build();
        }
    }
   
View Full Code Here

                        imageList.add(image);
                    }
                } catch (java.lang.Exception excp) {
                    // Just ignore, but log a message
                    Logger logger = Logger.getLogger(CellPalette.class.getName());
                    logger.log(Level.WARNING, "No Display Name for Cell Factory " +
                            cellFactory, excp);
                }
            }
            componentList.invalidate();
        }
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.