Package java.util.logging

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


            // Find the cell object given the ID of the cell. If the ID is
            // invalid, we just log an error and return.
            CellID cellID = ((CellDuplicateMessage)editMessage).getCellID();
            CellMO cellMO = CellManagerMO.getCell(cellID);
            if (cellMO == null) {
                logger.warning("No cell found to duplicate with cell id " + cellID);
                sender.send(clientID, new ErrorMessage(editMessage.getMessageID(),
                        "No cell found to duplicate with cell id " + cellID));
                return;
            }
            CellMO parentCellMO = cellMO.getParent();
View Full Code Here


            // Attempt to create the cell using the cell factory and the class
            // name of the server-side cell.
            CellMO newCellMO = CellMOFactory.loadCellMO(className);
            if (newCellMO == null) {
                /* Log a warning and move onto the next cell */
                logger.warning("Unable to duplicate cell MO: " + className);
                sender.send(clientID, new ErrorMessage(editMessage.getMessageID(),
                        "Unable to duplicate cell MO: " + className));
                return;
            }

View Full Code Here

            // We want to modify the position of the new cell slight, so we
            // offset the position by (1, 1, 1).
            PositionComponentServerState position = (PositionComponentServerState)state.getComponentServerState(PositionComponentServerState.class);
            if (position == null) {
                logger.warning("Unable to determine the position of the cell " +
                        "to duplicate with id " + cellID);
                sender.send(clientID, new ErrorMessage(editMessage.getMessageID(),
                        "Unable to determine the position of the cell " +
                        "to duplicate with id " + cellID));
                return;
View Full Code Here

    public boolean messageRejected(WonderlandClientSender sender,
                                   WonderlandClientID clientID, Message message,
                                   Set<Action> requested, Set<Action> granted)
    {
        Logger logger = Logger.getLogger(CellEditConnectionHandler.class.getName());
        logger.warning("Message " + message + " rejected from " + clientID);

        return true;
    }

    /**
 
View Full Code Here

        /* Fetch the module from the module manager */
        ModuleManager manager = ModuleManager.getModuleManager();
        Module module = manager.getInstalledModules().get(moduleName);
        if (module == null) {
            /* Log an error and return an error response */
            logger.warning("ModuleManager: unable to locate module " + moduleName);
            ResponseBuilder rb = Response.status(Response.Status.BAD_REQUEST);
            return rb.build();
        }

        // For the base URL of assets within a module, use the server URL and
View Full Code Here

                newRepository.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.warning("ModuleManager: unable to serialize repository for " + moduleName);
                ResponseBuilder rb = Response.status(Response.Status.BAD_REQUEST);
                return rb.build();
            }
        }
       
View Full Code Here

            newRepository.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.warning("ModuleManager: unable to serialize repository for " + moduleName);
            ResponseBuilder rb = Response.status(Response.Status.BAD_REQUEST);
            return rb.build();
        }
    }
}
View Full Code Here

        @Override
        public void commitEvent(Event event) {
            Logger logger = Logger.getLogger(MySelectionListener.class.getName());
            SceneEvent se = (SceneEvent)event;
            if (event instanceof ActivatedEvent) {
                logger.warning("SELECTION: ACTIVATED EVENT " +
                        se.getEntityList().get(0));
            }
            else if (event instanceof SelectionEvent) {
                List<Entity> selected = SceneManager.getSceneManager().getSelectedEntities();
                ListIterator<Entity> it = selected.listIterator();
View Full Code Here

                        se.getEntityList().get(0));
            }
            else if (event instanceof SelectionEvent) {
                List<Entity> selected = SceneManager.getSceneManager().getSelectedEntities();
                ListIterator<Entity> it = selected.listIterator();
                logger.warning("SELECTION: SELECTION EVENT " + selected.size());
                while (it.hasNext() == true) {
                    Entity entity = it.next();
                    logger.warning("SELECTION: SELETION EVENT " +
                            entity.getName());
                }
View Full Code Here

                List<Entity> selected = SceneManager.getSceneManager().getSelectedEntities();
                ListIterator<Entity> it = selected.listIterator();
                logger.warning("SELECTION: SELECTION EVENT " + selected.size());
                while (it.hasNext() == true) {
                    Entity entity = it.next();
                    logger.warning("SELECTION: SELETION EVENT " +
                            entity.getName());
                }
            }
            else if (event instanceof ContextEvent) {
                logger.warning("SELECTION: CONTEXT EVENT " +
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.