Examples of ErrorLogEntry


Examples of com.xmultra.log.ErrorLogEntry

        // Insert DTD into xml get message configuration file
        this.getMessageConfDocumentStr = insertDTD(imh, this.getMessageConfDocumentStr);

        Logger logger = (Logger)imh.getEntry(InitMapHolder.LOGGER);
        ErrorLogEntry errEntry = new ErrorLogEntry(this, VERSION);

        if (this.getMessageConfDocumentStr != null) {
            try    {
                this.getMessageConfDocumentStr = replaceProperties(this.getMessageConfDocumentStr);
                this.getMessageConfDocumentStr = XmultraConfig.replaceSymbols(this.getMessageConfDocumentStr);
            }
            catch (InvalidConfigFileFormatException e) {
                errEntry.setThrowable(e);
                errEntry.setAppContext("GetMessage()");
                errEntry.setAppMessage("Error while parsing properties in GetMessage file: " +
                                       this.getMessageFile.getPath() );
                logger.logError(errEntry);
            }
            // Write the file back with insertion of DTD and properties replaced.
            //// fileUtils.writeFile(this.getMessageFile, getMessageConfDocumentStr);
        }

        // Can throw SAXException
        Document getMessageConfDocument = null;
        try {
            getMessageConfDocument =
                xmlParseUtils.convertStringToXmlDocument(getMessageConfDocumentStr, validate);
        }
        catch (SAXException e) {
            errEntry.setThrowable(e);
            errEntry.setAppContext("insertDTD()");
            errEntry.setAppMessage(
                    "Error while parsing config file: "
                    + this.getMessageFile.getName());
            logger.logError(errEntry);
            return;
        }
View Full Code Here

Examples of com.xmultra.log.ErrorLogEntry

            return false;
        }

        Node aProcessorNode = n;
        msgEntry = new MessageLogEntry(this, VERSION);
        errEntry = new ErrorLogEntry(this, VERSION);

        // Make a Strings instance.
        strings = new Strings();
        dateUtils = new DateUtils(strings);
View Full Code Here

Examples of com.xmultra.log.ErrorLogEntry

        managerNode = mgrNode;
        startingManagersSyncFlag = mgrsStartingSyncFlag;
        initSuccess = false;
        noProcessorStop = false;
        msgEntry = new MessageLogEntry(this, VERSION);
        errEntry = new ErrorLogEntry(this, VERSION);

        // Create a new InitMapHolder.
        initMapHolder = new InitMapHolder();

        // Create new Logger object.
View Full Code Here

Examples of com.xmultra.log.ErrorLogEntry

     */
    public boolean init (Node n, InitMapHolder imh, SyncFlag sf, SyncFlag stopFlag) {

        if (!super.init(n, imh, sf, stopFlag)) return false;
        msgEntry = new MessageLogEntry(this, VERSION);
        errEntry = new ErrorLogEntry(this, VERSION);

        // Get the Mode value from the CopyProcessor element.
        String mode = super.xmlParseUtils.getAttributeValueFromNode(
                aProcessorNode, XmultraConfig.MODE);
        if (mode.equals(XmultraConfig.MODE_ROUND_ROBIN)) {
View Full Code Here

Examples of com.xmultra.log.ErrorLogEntry

        if (!super.init(n, imh, sf, stopFlag)) return false;

        Node aProcessorNode = n;

        msgEntry = new MessageLogEntry(this, VERSION);
        errEntry = new ErrorLogEntry(this, VERSION);

        // Make a Strings instance.
        strings = new Strings();

        fileUtils = (FileUtils)initMapHolder.getEntry(InitMapHolder.FILE_UTILS);
View Full Code Here

Examples of com.xmultra.log.ErrorLogEntry

    public XmlParseUtils(Logger log, FileUtils fUtils) {

        // Get the ErrorLog reference.
        logger = log;

        errEntry = new ErrorLogEntry(this, VERSION);

        msgEntry = new MessageLogEntry(this, VERSION);

        domParser = new DOMParser();
View Full Code Here

Examples of com.xmultra.log.ErrorLogEntry

        if (!super.init(n, imh, sf, stopFlag)) return false;

        Node aProcessorNode = n;

        msgEntry = new MessageLogEntry(this, VERSION);
        errEntry = new ErrorLogEntry(this, VERSION);

        // Make a Strings instance.
        strings = new Strings();

        fileUtils = (FileUtils)initMapHolder.getEntry(InitMapHolder.FILE_UTILS);
View Full Code Here

Examples of com.xmultra.log.ErrorLogEntry

                         SyncFlag sf, SyncFlag stopFlag) {

        if (!super.init(n, imh, sf, stopFlag)) return false;

        msgEntry = new MessageLogEntry(this, VERSION);
        errEntry = new ErrorLogEntry(this, VERSION);

        // Successful init.
        return true;
    }
View Full Code Here

Examples of com.xmultra.log.ErrorLogEntry

        // Get the Logger reference.
        logger = (Logger)initMapHolder.getEntry(InitMapHolder.LOGGER);

        // Create the log entry objects.
        msgEntry = new MessageLogEntry(this, VERSION);
        errEntry = new ErrorLogEntry(this, VERSION);

        // Get the XmlParseUtils reference.
        xmlParseUtils = (XmlParseUtils)initMapHolder.getEntry(
                            InitMapHolder.XML_PARSE_UTILS);
View Full Code Here

Examples of com.xmultra.log.ErrorLogEntry

     *                              of output files.
     */
    boolean init(InitMapHolder imh, Node watchedProceduresNode){

        this.logger = (Logger)imh.getEntry(InitMapHolder.LOGGER);
        this.errEntry = new ErrorLogEntry(this, DbUtils.VERSION);
        this.msgEntry = new MessageLogEntry(this, DbUtils.VERSION);

        this.xmlParseUtils =
            (XmlParseUtils)imh.getEntry(InitMapHolder.XML_PARSE_UTILS);

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.