Examples of warning()


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

        sql = "DROP TABLE " + tableName;
        stmt.execute(sql);
      }
    } catch (SQLException se) {
      msg = "SQL error: " + se.getMessage();
      log.warning(msg);
    } finally {
      try {
        DbUtils.close(rsetTables);
        DbUtils.close(rsetImportedKeys);
        DbUtils.close(conn);
View Full Code Here

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

        DbUtils.close(rsetTables);
        DbUtils.close(rsetImportedKeys);
        DbUtils.close(conn);
      } catch (SQLException se) {
        msg = "SQL error: " + se.getMessage();
        log.warning(msg);
      }
    }
  }
}
View Full Code Here

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

     
      tableMetaDataMap.put(tableName, tableList);
      return tableList;
    } catch (SQLException se) {
      msg = "SQL error: " + se.getMessage();
      log.warning(msg);
      throw new SQLException(msg);
    } finally {
      if (stmt != null) {
        stmt.close();
      }
View Full Code Here

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

            String className = setup.getServerClassName();
            logger.fine("Attempting to load cell mo: " + className);
            CellMO cellMO = CellMOFactory.loadCellMO(className);
            if (cellMO == null) {
                /* Log a warning and move onto the next cell */
                logger.warning("Unable to load cell MO: " + className );
                sender.send(clientID, new ErrorMessage(editMessage.getMessageID(),
                        "Unable to load cell MO: " + className));
                return;
            }

View Full Code Here

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 = ((CellDeleteMessage)editMessage).getCellID();
            CellMO cellMO = CellManagerMO.getCell(cellID);
            if (cellMO == null) {
                logger.warning("No cell found to delete with cell id " + cellID);
                return;
            }

            // Find out the parent of the cell. This may be null if the cell is
            // at the world root. This determines from where to remove the cell
View Full Code Here

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

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

            // 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

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

            // 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

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

    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

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

        /* 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
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.