Package java.util.logging

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


      try {
        SocketBufferHandler sbh=new SocketBufferHandler("localhost",4321);
        lr=Logger.getLogger("TEST");
        lr.addHandler(sbh);
        lr.setUseParentHandlers(false);
        lr.warning("Start");
      } catch (IOException e) {
        e.printStackTrace();
        System.exit(0);
      }
      f.addWindowListener( new WindowAdapter() {
View Full Code Here


                if (location != null)
                    plugins.add(location);
            }

            if (plugins.size() <= 0) {
                log
                    .warning(Globals
                        .lang("No plugins were found in the following folders:") +
                        "\n  " +
                        Util.join(directoriesToSearch
                            .toArray(new String[directoriesToSearch.size()]),
View Full Code Here

          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

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

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

            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!");
        }

        Class<? extends Plugin> next = primaryInterfaces.iterator().next();

        return next.getCanonicalName();
View Full Code Here

        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

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

     
      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

            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

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

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.