Package org.apache.log4j

Examples of org.apache.log4j.Logger.warn()


    /** {@inheritDoc} **/
    public Object noComponentFound(final MutablePicoContainer container, final Object componentKey) {
        Logger logger = this.logger != null ? this.logger : LogManager.getLogger(ComponentMonitor.class);
        if (logger.isEnabledFor(Priority.WARN)) {
            logger.warn(format(ComponentMonitorHelper.NO_COMPONENT, componentKey));
        }
        return delegate.noComponentFound(container, componentKey);

    }

View Full Code Here


          SBMLDocument sbmlDoc = (SBMLDocument) sbmlElements.firstElement();
          String sbmlNamespace = sbmlDoc.getSBMLDocumentNamespaces().get("xmlns");

          if (currentNode.getNamespaceURI().equals(sbmlNamespace)) {
            if (isInsideAnnotation) {
              logger.warn("Starting to read a new annotation element while the previous annotation element is not finished.");
            }
            isInsideAnnotation = true;
            annotationDeepness++;
          }
         
View Full Code Here

          } else {
            parser.processCharactersOf(null, characters.getData(),
                sbmlElements.peek());
          }
        } else if (isText) {
          logger.warn(MessageFormat.format("Some characters cannot be read: {0}", characters.getData()));
          if (logger.isDebugEnabled()) {
            logger.debug("Parser = " + parser);
            if (sbmlElements.isEmpty()) {
              logger.debug("The Object Stack is empty!");
            } else {
View Full Code Here

          // Process the attributes
          processAttributes(att, currentNode, sbmlElements, parser, hasAttributes, isInsideNotes,
              annotationDeepness, isRDFSBMLspecificAnnotation);

        } else {
          logger.warn(MessageFormat.format("Cannot find a parser for the {0} namespace", elementNamespace));       
        }
      } else {
        logger.warn(MessageFormat.format("Cannot find a parser for the {0} namespace", elementNamespace));     
      }
    }
View Full Code Here

        } else {
          logger.warn(MessageFormat.format("Cannot find a parser for the {0} namespace", elementNamespace));       
        }
      } else {
        logger.warn(MessageFormat.format("Cannot find a parser for the {0} namespace", elementNamespace));     
      }
    }
   
    return parser;
  }
View Full Code Here

            namespace.getName().getPrefix(),
            namespace.getName().getLocalPart(),
            hasAttributes, isLastNamespace,
            sbmlElements.peek());
      } else if (namespaceParser == null) {
        logger.warn(MessageFormat.format("Cannot find a parser for the {0} namespace", namespace.getNamespaceURI()));
      }
    }

  }
 
View Full Code Here

            currentNode.getLocalPart(),
            attributeName.getLocalPart(),
            attribute.getValue(), attributeName.getPrefix(),
            isLastAttribute, sbmlElements.peek());
      } else {
        logger.warn("Cannot find a parser for the " + attribute.getName().getNamespaceURI() + " namespace");
      }
    }
  }
 
 
View Full Code Here

            // At the end of a sbml node, the
            // SBMLElements stack must contain only a
            // SBMLDocument instance.
            // Otherwise, there is a syntax error in the
            // SBML document
            logger.warn("!!! event.isEndElement: there is a problem in your SBML file !!!!");
            logger.warn("Found an element '" + sbmlElements.peek().getClass().getCanonicalName() +
                "', expected " + SBMLDocument.class.getCanonicalName());
          }
        }
      } else {
View Full Code Here

            // SBMLElements stack must contain only a
            // SBMLDocument instance.
            // Otherwise, there is a syntax error in the
            // SBML document
            logger.warn("!!! event.isEndElement: there is a problem in your SBML file !!!!");
            logger.warn("Found an element '" + sbmlElements.peek().getClass().getCanonicalName() +
                "', expected " + SBMLDocument.class.getCanonicalName());
          }
        }
      } else {
        // If SBMLElements.isEmpty => there is a syntax
View Full Code Here

      } else {
        // If SBMLElements.isEmpty => there is a syntax
        // error in the SBMLDocument
        // If parser == null => there is no parser for
        // the namespace of this element
        logger.warn("!!! event.isEndElement: there is a problem in your SBML file !!!!");
        logger.warn("This should never happen, there is probably a problem with the parsers used." +
            "\n Try to check if one needed parser is missing or if you are using a parser in development.");
      }
    } else {
      // The initialized parsers map should be
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.