Error opening container with DB_READ_UNCOMMITTED

I am running into an exception condition when I try re-creating the Isolation sample found at [http://www.oracle.com/technology/documentation/berkeley-db/xml/gsg_xml_txn/cxx/isolation.html#dirtyreads] . Everything works fine with all of the settings in that example except when I try to pass the DB_READ_UNCOMMITTED flag to XmlManager.openContainer(); when I try to pass that in I get the following exception:
XmlException: DbSequence::open: Invalid argument
ConfigurationDatabase.cpp line 65
the numeric value of the flags parameter at this stage is 134217857, if that helps...
my sample code:
// BdbXmlWin32Console.cpp : Defines the entry point for the console application.
#include "DbXml.hpp"
#include
#include
#include "stdafx.h"
using namespace DbXml;
int _tmain(int argc, _TCHAR* argv[])
u_int32_t env_flags = DB_CREATE | // If the environment does not
// exist, create it.
DB_INIT_LOCK | // Initialize locking
DB_INIT_LOG | // Initialize logging
DB_INIT_MPOOL | // Initialize the cache
DB_THREAD | // Free-thread env handle
DB_INIT_TXN; // Initialize transactions
std::string envHome("C:\\dev\\db\\samples\\ReadUncommitted");
DbEnv myEnv(0);
XmlManager *myManager = NULL;
try {
myEnv.open(envHome.c_str(), env_flags, 0);
myManager = new XmlManager(&myEnv, 0);
u_int32_t containerFlags =
DB_CREATE | // If the container does not exist,
// create it.
DBXML_TRANSACTIONAL | // Enable transactions.
DB_READ_UNCOMMITTED; // Enable uncommitted reads.
std::string containerName = "myContainer.dbxml";
XmlContainer myContainer =
myManager->openContainer(containerName, containerFlags);
myContainer.close();
} catch(DbException &e) {
std::cerr << "Error opening database environment: "
<< envHome << std::endl;
std::cerr << e.what() << std::endl;
return (EXIT_FAILURE);
} catch(std::exception &e) {
std::cerr << "Error opening database environment: "
<< envHome
<< " or opening XmlManager or XmlContainer." << std::endl;
std::cerr << e.what() << std::endl;
return (EXIT_FAILURE);
// File to open
std::string file1 = "doc1.xml";
// Transaction handle
// Enable uncommitted reads for this transaction.
XmlTransaction txn = myManager->createTransaction(DB_READ_UNCOMMITTED);
// From here, you perform your container reads and writes as normal,
// committing and aborting the transactions as is necessary, as well as
// testing for deadlock exceptions as normal (omitted for brevity).
}Thanks!
Edited by: Lucas Vogel on Jan 11, 2009 7:45 PM

Lucas,
This appears to be a bug. That flag is not legal for one of the internal databases in the system and is not properly being cleared on open. That said, there are few cases where you'd really want to use that flag in BDB XML. What is your intent? Allowing readers to see not-yet-committed data is dangerous. Using MVCC is a better route for concurrent applications.
Regards,
George

Similar Messages

  • "Error opening movie" with QT 7 Pro

    I've followed the sets in how to play a DVD, but I get the following error "Error opening movie, The movie could not be opened." Does QT7P not play DVDs? Please help.

    QuickTime Player doesn't (without third party software) play the contents found on DVD's.
    Use DVD Player or VLC (free) to view them.

  • Internal error opening file with cs3

    Hi all,
    I can't open .png file created with fireworks cs3 :(
    I have error message (internal error...).
    I delete preferences, uninstall and reinstall software, but
    no solution.
    If someone can open it, thank you very much !!
    I spent lot of hours.
    http://img256.imageshack.us/img256/1935/testpagetu2.png

    quote:
    Originally posted by:
    no-repeat
    I've experienced this same issue twice
    FWIW, the error occurred upon save keystroke. Though I was
    drag/dropping .EPS files and pasting raster images into a .PNG at
    times --nothing unusual was going on when the internal error
    occurred --just pushing pixels and saving my work often.

  • Error Opening iTunes with new install

    I just reinstalled iTunes onto my father's Dell laptop running Windows XP SP2. I recieve the following error message when trying to run iTunes for the first time: "The folder 'iTunes' cannot be found or created, and is required. The default location for this folder is inside the 'My Music' folder."
    Any help would be greatly appreciated as i cannot run iTunes on this PC.

    Try holding down the shift key as you start itunes, and create a new library when given the chance.

  • Error opening environment

    Hello,
    I have an application in Java that I deploy in Glassfish 3. The database is Berkeley DB XML.
    The application is used by several clients, so I have one environment for each client.
    When I deploy the application I run this code to each client, to open every environment.
    public class BdbxmlManager {
        //+++++++++++++++++++++++++++MAIN VARS++++++++++++++++++++++++++++++++++++++
        public String ENVIRONMENT_PATH = "";
        public static String LOGS_PATH_NAME = "";
        //public String ENVIRONMENT_LOGS_PATH = "";
        protected EnvironmentConfig ENVIRONMENT_CONFIG = null;
        protected Environment ENVIRONMENT = null;
        protected static XmlContainerConfig xmlContainerConfig = null;
        protected static XmlManagerConfig xmlManagerConfig = null;
        protected static SequenceConfig sequenceConfig = null;
        protected static DatabaseConfig sequenceDatabaseConfig = null;
        //protected static TransactionConfig transactionConfig = null;
        protected XmlContainer XML_CONTAINER = null;
        protected XmlContainer XML_CONTAINER_LOGS = null;
        protected XmlContainer XML_CONTAINER_ERROR_LOGS = null;
        protected XmlContainer XML_CONTAINER_MESSAGE = null;
        protected Database SEQUENCE_DATABASE = null;
        protected XmlManager XML_MANAGER = null;
        //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
        public static String SEQUENCE_DB_NAME = "";
        public static String SEQUENCE_DB_FILE_NAME = "";
        public static String CONTAINER_NAME = "";
        public static String MAIN_DOCUMENT_NAME = "";
        public static String MAIN_DOCUMENT_INITIAL_CONTENT = "";
        public static String CONTAINER_MESSAGE = "";
        public static String CONTAINER_NAME_LOGS = "";
        public static boolean USING_LOGS_DOCUMENT = false;
        public static String LOGS_DOCUMENT_NAME = "";
        public static String LOGS_DOCUMENT_INITIAL_CONTENT = "";
        public static String CONTAINER_NAME_ERROR_LOGS = "";
        public static boolean USING_ERROR_LOGS_DOCUMENT = false;
        public static String ERROR_LOGS_DOCUMENT_NAME = "";
        public static String ERROR_LOGS_DOCUMENT_INITIAL_CONTENT = "";
        public static int MAX_LOG_BUFFER_SIZE = 50 * 1024 * 1024;
        public static int MAX_CACHE_SIZE = 5 * 1024 * 1024;
         * max num of simultaneous active transactions
        public static int MAX_ACTIVE_TXNS = 10000;
        //---------------------DEFAULT ENVIRONMENT CONFIGURATION VALUES---------------------------------
        public static boolean RUN_RECOVERY_BY_DEFAULT = true;
        public static int CACHE_SIZE_BY_DEFAULT = 5 * 1024 * 1024;
        public static int MAX_ACTIVE_TXNS_BY_DEFAULT = 5000;
        public static int LOG_BUFFER_SIZE_BY_DEFAULT = 50 * 1024 * 1024;
        public static boolean ENVIRONMENT_LOG_IN_MEMORY = false;
        public static boolean ENVIRONMENT_LOG_AUTO_REMOVE = true;
        public static int ENVIRONMENT_LOG_REGION_SIZE = 3 * 1024 * 1024;
        public static boolean ENVIRONMENT_TRANSACTIONAL = true;
        public static boolean ENVIRONMENT_THREADED = true;
        public static int ENVIRONMENT_TXN_MAX_ACTIVE = 5000;
        public static int DEFAULT_MAX_LOCKS = 15000;//2000;
        public static int DEFAULT_MAX_LOCKERS = 15000;//2000;
        public static int DEFAULT_MAX_LOCK_OBJECTS = 15000;//2000;
        //--------------------SEQUENCE CONFIGURATION VALUES-------------------
        public static boolean ALLOW_CREATE_SEQUENCE_CONFIG = true;
        public static int SEQUENCE_CACHE_SIZE = 0;
        public static boolean DECREMENT_SEQUENCE_CONFIG = false;
        public static int SEQUENCE_MIN_VALUE = 0;
        public static int SEQUENCE_MAX_VALUE = 99999999;
        public static int SEQUENCE_INITIAL_VALUE = 0;
        public static boolean EXCLUSIVE_CREATE_SEQUENCE_CONFIG = false;
        public static boolean WRAP_SEQUENCE_CONFIG = false;
        //----------------------------------------------------------------------ç
        //--------------------XMLMANAGER CONFIGURATION VALUES-------------------
        public static boolean XML_MANAGER_LOG_ENABLED = false;
        public static int XML_MANAGER_LOG_LEVEL = XmlManager.LEVEL_ERROR;
        public static int XML_MANAGER_LOG_CATEGORY = XmlManager.CATEGORY_MANAGER;
        //--------------------XMLCONTAINER CONFIGURATION VALUES-------------------
        public static boolean XML_CONTAINER_INDEX_NODES_AND_STATISTICS_ENABLED = true;
        public static boolean XML_CONTAINER_ALLOW_VALIDATION = false;
        //--------------------SEQUENCE DATABASE CONFIGURATION VALUES-------------------
        public static boolean ALLOW_CREATE_SEQUENCE_DATABASE_CONFIG = true;
        public static boolean TRANSACTIONAL_SEQUENCE_DATABASE_CONFIG = true;
         *  Constructor
        public BdbxmlManager(String ENVIRONMENT_PATH_NAME) throws DatabaseException, FileNotFoundException, IOException, DbxmlException {
            this.ENVIRONMENT_PATH = ENVIRONMENT_PATH_NAME;
            //this.ENVIRONMENT_LOGS_PATH = ENVIRONMENT_LOGS_PATH_NAME;
            init(ENVIRONMENT_PATH);
            initXmlManager();
            initSequenceDataBase();
            //Container message
            File containerMessage = new File(ENVIRONMENT_PATH, CONTAINER_MESSAGE);
            System.out.println("pruebas");
            System.out.println("check container messsage "+containerMessage.getCanonicalPath());
            try{
                System.out.println("try");
                if (XML_MANAGER.existsContainer(containerMessage.getCanonicalPath()) != 0) {
                    System.out.println("try1");
                    System.out.println("Opening the container message: " + containerMessage + ".....");
                    XML_CONTAINER_MESSAGE = XML_MANAGER.openContainer(containerMessage.getCanonicalPath(), xmlContainerConfig);
                    //System.out.println("Container is transactional: " + XML_CONTAINER.getContainerConfig().getTransactional());
                    XML_CONTAINER_MESSAGE.setAutoIndexing(false);
                    System.out.println("Container message opened!");
                } else {
                    System.out.println("try2");
                    System.out.println("error open container");
                    throw new DbxmlException(DbxmlException.CONTAINER_DOES_NOT_EXIST);
            }catch(Exception e){
                System.out.println("EXCEPCION "+e.toString());
            //Container data
            File containerFile = new File(ENVIRONMENT_PATH, CONTAINER_NAME);
            System.out.println("check container "+containerFile.getCanonicalPath());
            if (XML_MANAGER.existsContainer(containerFile.getCanonicalPath()) != 0) {
                System.out.println("Opening the container: " + containerFile + ".....");
                XML_CONTAINER = XML_MANAGER.openContainer(containerFile.getCanonicalPath(), xmlContainerConfig);
                //System.out.println("Container is transactional: " + XML_CONTAINER.getContainerConfig().getTransactional());
                XML_CONTAINER.setAutoIndexing(false);
                System.out.println("Container opened!");
                try {
                    XmlDocument tempDoc = XML_CONTAINER.getDocument(MAIN_DOCUMENT_NAME);
                    //System.out.println("tempDoc no es nulo: " + tempDoc == null);
                } catch (XmlException e) {
                    if (e.getErrorCode() == XmlException.DOCUMENT_NOT_FOUND) {
                        //System.out.println("El documento " + MAIN_DOCUMENT_NAME + " no existe");
                        //System.out.println("Añadiendo documento....");
                        XML_CONTAINER.putDocument(MAIN_DOCUMENT_NAME, MAIN_DOCUMENT_INITIAL_CONTENT);
            } else {
                throw new DbxmlException(DbxmlException.CONTAINER_DOES_NOT_EXIST);
            //Container logs
            File containerFileLogs = new File(ENVIRONMENT_PATH, CONTAINER_NAME_LOGS);
            System.out.println("check container "+containerFileLogs.getCanonicalPath());
            if (XML_MANAGER.existsContainer(containerFileLogs.getCanonicalPath()) != 0) {
                System.out.println("Opening the container: " + containerFileLogs + ".....");
                XML_CONTAINER_LOGS = XML_MANAGER.openContainer(containerFileLogs.getCanonicalPath(), xmlContainerConfig);
                //System.out.println("Container is transactional: " + XML_CONTAINER.getContainerConfig().getTransactional());
                XML_CONTAINER_LOGS.setAutoIndexing(false);
                System.out.println("Container opened!");
                //---------------------------LOGS DOCUMENT INITIALIZATION----------------------------------
                try {
                    XML_CONTAINER_LOGS.getDocument(LOGS_DOCUMENT_NAME);
                    //System.out.println("logsDoc no es nulo: " + logsDoc == null);
                } catch (XmlException e) {
                    if (e.getErrorCode() == XmlException.DOCUMENT_NOT_FOUND) {
                        //System.out.println("El documento " + LOGS_DOCUMENT_NAME + " no existe");
                        //System.out.println("Añadiendo documento....");
                        XML_CONTAINER_LOGS.putDocument(LOGS_DOCUMENT_NAME, LOGS_DOCUMENT_INITIAL_CONTENT);
            } else {
                throw new DbxmlException(DbxmlException.CONTAINER_DOES_NOT_EXIST);
            //Container error logs
            File containerFileErrorLogs = new File(ENVIRONMENT_PATH, CONTAINER_NAME_ERROR_LOGS);
            System.out.println("check container "+containerFileErrorLogs.getCanonicalPath());
            if (XML_MANAGER.existsContainer(containerFileErrorLogs.getCanonicalPath()) != 0) {
                System.out.println("Opening the container: " + containerFileErrorLogs + ".....");
                XML_CONTAINER_ERROR_LOGS = XML_MANAGER.openContainer(containerFileErrorLogs.getCanonicalPath(), xmlContainerConfig);
                //System.out.println("Container is transactional: " + XML_CONTAINER.getContainerConfig().getTransactional());
                XML_CONTAINER_ERROR_LOGS.setAutoIndexing(false);
                System.out.println("Container opened!");
                //----------------------ERROR LOGS DOCUMENT INITIALIZATION----------------------------------
                try {
                    XML_CONTAINER_ERROR_LOGS.getDocument(ERROR_LOGS_DOCUMENT_NAME);
                    //System.out.println("errorLogsDoc no es nulo: " + errorLogsDoc == null);
                } catch (XmlException e) {
                    if (e.getErrorCode() == XmlException.DOCUMENT_NOT_FOUND) {
                        //System.out.println("El documento " + ERROR_LOGS_DOCUMENT_NAME + " no existe");
                        //System.out.println("Añadiendo documento....");
                        XML_CONTAINER_ERROR_LOGS.putDocument(ERROR_LOGS_DOCUMENT_NAME, ERROR_LOGS_DOCUMENT_INITIAL_CONTENT);
            } else {
                throw new DbxmlException(DbxmlException.CONTAINER_DOES_NOT_EXIST);
         *  Init XmlManager
        protected void initXmlManager() throws XmlException
            if(XML_MANAGER == null){
                //---------XmlManager----------------
                //System.out.println("Creating the XmlManager.....");
                XML_MANAGER = new XmlManager(ENVIRONMENT, xmlManagerConfig);
                XmlManager.setLogLevel(XML_MANAGER_LOG_LEVEL, XML_MANAGER_LOG_ENABLED);
                XmlManager.setLogCategory(XML_MANAGER_LOG_CATEGORY, XML_MANAGER_LOG_ENABLED);
                //System.out.println("XmlManager created!");
         *  Init Database
        protected void initSequenceDataBase() throws DatabaseException, FileNotFoundException
            if(SEQUENCE_DATABASE == null)
                //---------Sequence Database------------------
                //System.out.println("Creating/opening the sequence database....");
                SEQUENCE_DATABASE = ENVIRONMENT.openDatabase(null, SEQUENCE_DB_NAME, SEQUENCE_DB_FILE_NAME, sequenceDatabaseConfig);
                //System.out.println("Sequence database opened/created!!");
         *  Configure BdbxmlManager
        protected synchronized void init(String ENVIRONMENT_PATH_NAME) {
            if (ENVIRONMENT_CONFIG == null) {
                System.out.println("new config en");
                ENVIRONMENT_CONFIG = initEnvironmentConfiguration();
                System.out.println("run "+ENVIRONMENT_CONFIG.getRunRecovery());
            if (ENVIRONMENT == null) {
                System.out.println("nuevo envi");
                ENVIRONMENT = initEnvironment(ENVIRONMENT_PATH_NAME);
            if (xmlContainerConfig == null) {
                xmlContainerConfig = initXmlContainerConfiguration();
            if (xmlManagerConfig == null) {
                xmlManagerConfig = initXmlManagerConfiguration();
            if (sequenceConfig == null) {
                sequenceConfig = initSequenceConfiguration();
            if (sequenceDatabaseConfig == null) {
                sequenceDatabaseConfig = initSequenceDatabaseConfig();
         *  INIT ENVIRONMENT CONFIGURATION
        protected static EnvironmentConfig initEnvironmentConfiguration() {
            //System.out.println("Initializing environment configuration....");
            EnvironmentConfig environmentConfig = new EnvironmentConfig();
            environmentConfig.setErrorStream(System.err);
            // If the environment does not exists, create it
            environmentConfig.setAllowCreate(true);
            // Turn on the shared memory region
            environmentConfig.setInitializeCache(true);
            // Turn on the locking subsystem
            environmentConfig.setInitializeRegions(true);
            environmentConfig.setInitializeLocking(true);
            // Turn on the logging subsystem
            environmentConfig.setInitializeLogging(true);
            //environmentConfig.setThreaded(ENVIRONMENT_THREADED);
            environmentConfig.setMaxMutexes(30000);//1000000);//10000);
            environmentConfig.setMutexIncrement(30000);//1000000);//10000);
            environmentConfig.setMaxLockers(DEFAULT_MAX_LOCKERS);
            environmentConfig.setMaxLocks(DEFAULT_MAX_LOCKS);
            environmentConfig.setMaxLockObjects(DEFAULT_MAX_LOCK_OBJECTS);
            //----------------------Cache configuration--------------------
            //environmentConfig.setCacheCount(1);
            environmentConfig.setCacheMax(MAX_CACHE_SIZE);
            environmentConfig.setCacheSize(CACHE_SIZE_BY_DEFAULT);
            //----------------------Logging configuration--------------------
            environmentConfig.setLogRegionSize(ENVIRONMENT_LOG_REGION_SIZE);
            environmentConfig.setLogBufferSize(LOG_BUFFER_SIZE_BY_DEFAULT);
            environmentConfig.setLogDirectory(new File(LOGS_PATH_NAME));
            environmentConfig.setLogInMemory(ENVIRONMENT_LOG_IN_MEMORY);
            environmentConfig.setLogAutoRemove(ENVIRONMENT_LOG_AUTO_REMOVE);
            //----------------------Transactions configuration--------------------
            //Turn on the transactional subsystem
            environmentConfig.setTransactional(ENVIRONMENT_TRANSACTIONAL);
            environmentConfig.setTxnMaxActive(ENVIRONMENT_TXN_MAX_ACTIVE);
            //environmentConfig.setTxnNoSync(false);
            //environmentConfig.setTxnNotDurable(false);
            //environmentConfig.setTxnSnapshot(true);
            //environmentConfig.setTxnWriteNoSync(false);
            //-------------------Run recovery configuration-------------
            environmentConfig.setRunRecovery(RUN_RECOVERY_BY_DEFAULT);
            System.out.println("EnvironmentConfig initialized! run "+environmentConfig.getRunRecovery());
            return environmentConfig;
         *  INIT ENVIRONMENT
        protected Environment initEnvironment(String ENVIRONMENT_PATH_NAME) {
            Environment env = null;
            //---------Environment--------------
            //System.out.println("Creating the environment....");
            try {
                System.out.println("start ");
                System.out.println("run recovery "+ENVIRONMENT_CONFIG.getRunRecovery());
                //ENVIRONMENT_CONFIG.setRunRecovery(true);
                System.out.println("run recovery "+ENVIRONMENT_CONFIG.getRunRecovery());
                env = new Environment(new File(ENVIRONMENT_PATH_NAME), ENVIRONMENT_CONFIG);
            } catch (DatabaseException ex) {
                Logger.getLogger(BdbxmlManager.class.getName()).log(Level.SEVERE, null, ex);
            } catch (FileNotFoundException ex) {
                Logger.getLogger(BdbxmlManager.class.getName()).log(Level.SEVERE, null, ex);
            } catch (Exception ex) {
                Logger.getLogger(BdbxmlManager.class.getName()).log(Level.SEVERE, null, ex);
            return env;
         *  CONFIGURE CONTAINER
        protected static XmlContainerConfig initXmlContainerConfiguration() {
            //System.out.println("Initializing XmlContainer configuration....");
            XmlContainerConfig config = new XmlContainerConfig();
            config.setContainerType(XmlContainer.NodeContainer);
            config.setTransactional(ENVIRONMENT_TRANSACTIONAL);
            if(XML_CONTAINER_INDEX_NODES_AND_STATISTICS_ENABLED)
                config.setIndexNodes(XmlContainerConfig.On);
                config.setStatisticsEnabled(XmlContainerConfig.On);
            }else
                config.setIndexNodes(XmlContainerConfig.Off);
                config.setStatisticsEnabled(XmlContainerConfig.Off);
            config.setAllowValidation(XML_CONTAINER_ALLOW_VALIDATION);
            //System.out.println("XmlContainer configuration initialized!");
            return config;
         *  INIT XML MANAGER CONFIGURATION
        protected static XmlManagerConfig initXmlManagerConfiguration() {
            //System.out.println("Initializing XmlManager configuration....");
            XmlManagerConfig config = new XmlManagerConfig();
            config.setAdoptEnvironment(false);
            config.setAllowAutoOpen(true);
            config.setAllowExternalAccess(true);
            //System.out.println("XmlManager configuration initialized!");
            return config;
         *  INIT SEQUENCE CONFIGURATION
        protected SequenceConfig initSequenceConfiguration() {
            //System.out.println("Initializing Sequence configuration....");
            SequenceConfig config = new SequenceConfig();
            config.setAllowCreate(ALLOW_CREATE_SEQUENCE_CONFIG);
            config.setCacheSize(SEQUENCE_CACHE_SIZE);
            config.setDecrement(DECREMENT_SEQUENCE_CONFIG);
            config.setRange(SEQUENCE_MIN_VALUE, SEQUENCE_MAX_VALUE);
            config.setInitialValue(SEQUENCE_INITIAL_VALUE);
            config.setExclusiveCreate(EXCLUSIVE_CREATE_SEQUENCE_CONFIG);
            config.setWrap(WRAP_SEQUENCE_CONFIG);
            //System.out.println("Sequence configuration initialized!");
            return config;
         *  INIT SEQUENCE DATABASE CONFIG
        protected DatabaseConfig initSequenceDatabaseConfig() {
            DatabaseConfig config = new DatabaseConfig();
            config.setAllowCreate(ALLOW_CREATE_SEQUENCE_DATABASE_CONFIG);
            config.setTransactional(TRANSACTIONAL_SEQUENCE_DATABASE_CONFIG);
            config.setType(DatabaseType.BTREE);
            return config;
         * Creates a new Xml transaction
         * @return
         * @throws XmlException
        public XmlTransaction createTransaction() throws XmlException {
            XmlTransaction xmlTransaction = XML_MANAGER.createTransaction();
            return xmlTransaction;
        public XmlResults executeQuery(XmlTransaction transaction, DbxmlQuery query,
                boolean commitTransaction) throws XmlException, DbxmlException {
            XmlQueryExpression queryExpression = query.getXmlQueryExpression();
            if (queryExpression.isUpdateExpression()) {
                throw new DbxmlException(DbxmlException.UPDATE_ATTEMPTED_IN_READ_QUERY);
            } else {
                XmlResults results = null;
                try {
                    if (transaction != null) {
                        results = queryExpression.execute(transaction, query.getXmlQueryContext());
                        if (commitTransaction) {
                            transaction.commit();
                    } else {
                        results = queryExpression.execute(query.getXmlQueryContext());
                } catch (Exception e) {
                    e.printStackTrace();
                    //Aborting the transaction since there was an exception and it
                    //could not be committed
                    if (transaction != null) {
                        //System.out.println("Aborting the transaction due to underlying exception... ");
                        transaction.abort();
                        //System.out.println("Transaction aborted :(");
                    if (results != null) {
                        //System.out.println("Deleting the XmlResults due to aborting the transaction...");
                        results.delete();
                        //System.out.println("XmlResults deleted :(");
                    if (queryExpression != null) {
                        //System.out.println("Deleting the QueryExpression due to aborting the transaction...");
                        queryExpression.delete();
                        //System.out.println("Query expression deleted :(");
                return results;
        public XmlResults executeUpdateQuery(XmlTransaction transaction, DbxmlQuery query,
                boolean commitTransaction) throws XmlException, DbxmlException {
            XmlQueryExpression queryExpression = query.getXmlQueryExpression();
            if (!queryExpression.isUpdateExpression()) {
                throw new DbxmlException(DbxmlException.UPDATE_QUERY_EXPECTED);
            } else {
                XmlResults results = null;
                try {
                    BasicMonitor.getMonitor().getLock();
                    if (transaction != null) {
                        results = queryExpression.execute(transaction, query.getXmlQueryContext());
                        if (commitTransaction) {
                            transaction.commit();
                    } else {
                        results = queryExpression.execute(query.getXmlQueryContext());
                } catch (Exception e) {
                    e.printStackTrace();
                    //Aborting the transaction since there was an exception and it
                    //could not be committed
                    if (transaction != null) {
                        //System.out.println("Aborting the transaction due to underlying exception... ");
                        transaction.abort();
                        //System.out.println("Transaction aborted :(");
                    if (results != null) {
                        //System.out.println("Deleting the XmlResults due to aborting the transaction...");
                        results.delete();
                        //System.out.println("XmlResults deleted :(");
                    if (queryExpression != null) {
                        //System.out.println("Deleting the QueryExpression due to aborting the transaction...");
                        queryExpression.delete();
                        //System.out.println("Query expression deleted :(");
                } finally {
                    BasicMonitor.getMonitor().releaseLock();
                return results;
         * Closes all resources associated to this manager
        public synchronized void close() {
            //xmlContainer.close();
            if(XML_MANAGER != null)
            {   try {
                    closeSequenceDataBase();
                    closeXmlContainer();
                    //System.out.println("Closing XML_MANAGER...");
                    XML_MANAGER.close();
                    //System.out.println("XML_MANAGER closed! :)");
                } catch (Exception e) {
                    e.printStackTrace();
         * Get the XmlManager
        public XmlManager getXmlManager() {
            return XML_MANAGER;
         * Get the Database
        public Database getDatabase() {
            return SEQUENCE_DATABASE;
         * Return the SequenceConfig
        public SequenceConfig getSequenceConfig() {
            return sequenceConfig;
         * Close the DataBase
        private synchronized void closeSequenceDataBase() {
            if (SEQUENCE_DATABASE != null) {
                try {
                    //System.out.println("Closing the sequence database...");
                    SEQUENCE_DATABASE.close(false);
                    //System.out.println("Sequence database closed! :)");
                } catch (DatabaseException ex) {
                    //System.out.println("There was a problem closing the sequence database... :(");
                    Logger.getLogger(BdbxmlManager.class.getName()).log(Level.SEVERE, null, ex);
         * Close the XmlContainer
        private synchronized void closeXmlContainer() {
            if (XML_CONTAINER != null) {
                try {
                    System.out.println("Closing the XmlContainer....");
                    XML_CONTAINER.close();
                    //System.out.println("XmlContainer closed! :)");
                } catch (Exception ex) {
                    //System.out.println("There was a problem closing the XmlContainer... :(");
                    Logger.getLogger(BdbxmlManager.class.getName()).log(Level.SEVERE, null, ex);
            if (XML_CONTAINER_LOGS != null) {
                try {
                    System.out.println("Closing the XmlContainer....");
                    XML_CONTAINER_LOGS.close();
                    //System.out.println("XmlContainer closed! :)");
                } catch (Exception ex) {
                    //System.out.println("There was a problem closing the XmlContainer... :(");
                    Logger.getLogger(BdbxmlManager.class.getName()).log(Level.SEVERE, null, ex);
            if (XML_CONTAINER_ERROR_LOGS != null) {
                try {
                    System.out.println("Closing the XmlContainer....");
                    XML_CONTAINER_ERROR_LOGS.close();
                    //System.out.println("XmlContainer closed! :)");
                } catch (Exception ex) {
                    //System.out.println("There was a problem closing the XmlContainer... :(");
                    Logger.getLogger(BdbxmlManager.class.getName()).log(Level.SEVERE, null, ex);
            if (XML_CONTAINER_MESSAGE != null) {
                try {
                    System.out.println("Closing the message XmlContainer....");
                    XML_CONTAINER_MESSAGE.close();
                    //System.out.println("XmlContainer closed! :)");
                } catch (Exception ex) {
                    //System.out.println("There was a problem closing the XmlContainer... :(");
                    Logger.getLogger(BdbxmlManager.class.getName()).log(Level.SEVERE, null, ex);
         * Close the Environment
        public synchronized void closeEnvironment() {
            if (ENVIRONMENT != null) {
                try {
                    System.out.println("Closing the environment....");
                    System.out.println("Closing the environment....");
                    ENVIRONMENT.close();
                    System.out.println("Environment closed! :)");
                    //singleton = null;
                } catch (IllegalArgumentException ex) {
                    System.out.println("There was IllegalArgumentException");
                    System.out.println("There was a problem closing the environment... :( "+ex.toString());
                    Logger.getLogger(BdbxmlManager.class.getName()).log(Level.SEVERE, null, ex);
                } catch (DatabaseException ex) {
                    //System.out.println("There was a problem closing the environment... :(");
                    Logger.getLogger(BdbxmlManager.class.getName()).log(Level.SEVERE, null, ex);
                } catch (Exception ex) {
                    System.out.println("There was general problem "+ex.toString());
                    Logger.getLogger(BdbxmlManager.class.getName()).log(Level.SEVERE, null, ex);
    }

    I continue the message before....
    After using the application for many days, the application failed and it hangs. The glassfish went down.
    So when I deploy the appllication again it stops in the line and I get no exception or error.
    if (XML_MANAGER.existsContainer(containerMessage.getCanonicalPath()) != 0) {Then I started to debug the code and I realize that when I open the environment in this line:
    env = new Environment(new File(ENVIRONMENT_PATH_NAME), ENVIRONMENT_CONFIG);then configuration of ENVIRONMENT_CONFIG.getRunRecovery() was set to false.
    So then I changed the settings and I set ENVIRONMENT_CONFIG.setRunRecovery(true).
    After that I deployed the application again and I got this errors:
    +[#|2011-03-04T15:05:27.900+0000|SEVERE|glassfishv3.0|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=11;_ThreadName=Thread-1;|Log+
    sequence error: page LSN 12 3990397; previous LSN 13 675423
    +|#]+
    +[#|2011-03-04T15:05:27.900+0000|SEVERE|glassfishv3.0|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=11;_ThreadName=Thread-1;|Recovery+
    function for LSN 13 705277 failed on forward pass
    +|#]+
    +[#|2011-03-04T15:05:27.901+0000|SEVERE|glassfishv3.0|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=11;_ThreadName=Thread-1;|PANIC:+
    Invalid argument
    +|#]+
    +[#|2011-03-04T15:05:28.203+0000|SEVERE|glassfishv3.0|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=11;_ThreadName=Thread-1;|unable+
    to join the environment
    +|#]+
    +[#|2011-03-04T15:05:28.258+0000|SEVERE|glassfishv3.0|com.era7.lib.bdbxmlapi.BdbxmlManager|_ThreadID=11;_ThreadName=Thread-1;|The+
    log message is null.
    com.sleepycat.db.RunRecoveryException: DB_RUNRECOVERY: Fatal error,
    run database recovery: PANIC: Invalid argument
    unable to join the environment: DB_RUNRECOVERY: Fatal error, run
    database recovery
    at com.sleepycat.db.internal.db_javaJNI.DbEnv_open(Native Method)
    at com.sleepycat.db.internal.DbEnv.open(DbEnv.java:317)
    at com.sleepycat.db.EnvironmentConfig.openEnvironment(EnvironmentConfig.java:3886)
    at com.sleepycat.db.Environment.<init>(Environment.java:93)
    at com.era7.lib.bdbxmlapi.BdbxmlManager.initEnvironment(BdbxmlManager.java:384)
    at com.era7.lib.bdbxmlapi.BdbxmlManager.init(BdbxmlManager.java:294)
    at com.era7.lib.bdbxmlapi.BdbxmlManager.<init>(BdbxmlManager.java:135)
    at com.era7.doPlanning.appConf.listeners.DoPlanningApplicationListener.createManager(DoPlanningApplicationListener.java:177)
    at com.era7.doPlanning.appConf.listeners.DoPlanningApplicationListener.configureBdbxmlInitializationParams(DoPlanningApplicationListener.java:105)
    at com.era7.lib.slbdbxml.listeners.AbstractApplicationListener.contextInitialized(AbstractApplicationListener.java:51)
    at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:4591)
    at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:535)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:5193)
    at com.sun.enterprise.web.WebModule.start(WebModule.java:499)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694)
    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1933)
    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1605)
    at com.sun.enterprise.web.WebApplication.start(WebApplication.java:90)
    at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)
    at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241)
    at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:339)
    at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:340)
    at com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:163)
    at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:174)
    at com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:87)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:84)
    at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
    at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
    at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
    at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
    at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:236)
    at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:128)
    at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:457)
    at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:401)
    at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:125)
    at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:640)
    at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
    at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:915)
    at org.jvnet.hk2.osgimain.Main.start(Main.java:140)
    at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:640)
    at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
    at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077)
    at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
    at java.lang.Thread.run(Thread.java:619)
    +|#]+
    +[#|2011-03-04T15:05:28.272+0000|SEVERE|glassfishv3.0|com.era7.doPlanning.appConf.listeners.DoPlanningApplicationListener|_ThreadID=11;_ThreadName=Thread-1;|The+
    log message is null.
    com.sleepycat.dbxml.XmlException: Invalid Environment object, may be
    closed., errcode = DATABASE_ERROR
    at com.sleepycat.db.XmlHelper.getDbEnv(XmlHelper.java:29)
    at com.sleepycat.dbxml.XmlManager.<init>(XmlManager.java:55)
    at com.era7.lib.bdbxmlapi.BdbxmlManager.initXmlManager(BdbxmlManager.java:265)
    at com.era7.lib.bdbxmlapi.BdbxmlManager.<init>(BdbxmlManager.java:137)
    at com.era7.doPlanning.appConf.listeners.DoPlanningApplicationListener.createManager(DoPlanningApplicationListener.java:177)
    at com.era7.doPlanning.appConf.listeners.DoPlanningApplicationListener.configureBdbxmlInitializationParams(DoPlanningApplicationListener.java:105)
    at com.era7.lib.slbdbxml.listeners.AbstractApplicationListener.contextInitialized(AbstractApplicationListener.java:51)
    at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:4591)
    at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:535)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:5193)
    at com.sun.enterprise.web.WebModule.start(WebModule.java:499)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694)
    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1933)
    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1605)
    at com.sun.enterprise.web.WebApplication.start(WebApplication.java:90)
    at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)
    at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241)
    at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:339)
    at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:340)
    at com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:163)
    at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:174)
    at com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:87)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:84)
    at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
    at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
    at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
    at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
    at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:236)
    at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:128)
    at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:457)
    at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:401)
    at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:125)
    at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:640)
    at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
    at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:915)
    at org.jvnet.hk2.osgimain.Main.start(Main.java:140)
    at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:640)
    at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)
    at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077)
    at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
    at java.lang.Thread.run(Thread.java:619)
    +|#]+
    For more information, when I run db_recover I got this errors
    BXML.2.5/bin/db_recover -c
    db_recover: Log sequence error: page LSN 12 3990397; previous LSN 13 675423
    db_recover: Recovery function for LSN 13 705277 failed on forward pass
    db_recover: PANIC: Invalid argument
    db_recover: PANIC: fatal region error detected; run recovery
    db_recover: /DBPool/DoPlanning/DoPlanningDB/era7/doPlanning.dbxml:
    write failed for page 764
    db_recover: /DBPool/DoPlanning/DoPlanningDB/era7/doPlanning.dbxml:
    unable to flush page: 764
    db_recover: process-private: unable to find environment
    db_recover: DB_ENV->open: DB_RUNRECOVERY: Fatal error, run database recovery
    BXML.2.5/bin/db_recover -c -v
    Finding last valid log LSN: file: 34 offset 10311907
    Recovery starting from [1][28]
    db_recover: Log sequence error: page LSN 12 3990397; previous LSN 13 675423
    db_recover: Recovery function for LSN 13 705277 failed on forward pass
    db_recover: PANIC: Invalid argument
    db_recover: PANIC: fatal region error detected; run recovery
    db_recover: /DBPool/DoPlanning/DoPlanningDB/era7/doPlanning.dbxml:
    write failed for page 764
    db_recover: /DBPool/DoPlanning/DoPlanningDB/era7/doPlanning.dbxml:
    unable to flush page: 764
    db_recover: process-private: unable to find environment
    db_recover: DB_ENV->open: DB_RUNRECOVERY: Fatal error, run database recovery
    When I run db_stat -e:
    Mon Mar  7 09:22:23 2011        Local time
    +0x120897 Magic number+
    +0 Panic value+
    +4.8.24 Environment version+
    +9 Btree version+
    +9 Hash version+
    +1 Lock version+
    +15 Log version+
    +4 Queue version+
    +2 Sequence version+
    +1 Txn version+
    Fri Mar  4 15:34:36 2011        Creation time
    +0xcf201e5f Environment ID+
    +2 Primary region allocation and reference count mutex [0/4 0% !Own]+
    +3 References+
    +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
    +0x40988 Log magic number+
    +15 Log version number+
    +50MB Log record cache size+
    +0 Log file mode+
    +10Mb Current log file size+
    +9777 Records entered into the log+
    +895KB 899B Log bytes written+
    +895KB 899B Log bytes written since last checkpoint+
    +123 Total log file I/O writes+
    +0 Total log file I/O writes due to overflow+
    +123 Total log file flushes+
    +24737 Total log file I/O reads+
    +34 Current log file number+
    +10435138 Current log file offset+
    +34 On-disk log file number+
    +10435138 On-disk log file offset+
    +1 Maximum commits in a log flush+
    +1 Minimum commits in a log flush+
    +50MB 256KB Log region size+
    +0 The number of region locks that required waiting (0%)+
    +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
    +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
    +2123 Last allocated locker ID+
    +0x7fffffff Current maximum unused locker ID+
    +9 Number of lock modes+
    +15000 Maximum number of locks possible+
    +15000 Maximum number of lockers possible+
    +15000 Maximum number of lock objects possible+
    +1 Number of lock object partitions+
    +176 Number of current locks+
    +182 Maximum number of locks at any one time+
    +20 Maximum number of locks in any one bucket+
    +0 Maximum number of locks stolen by for an empty partition+
    +0 Maximum number of locks stolen for any one partition+
    +346 Number of current lockers+
    +361 Maximum number of lockers at any one time+
    +44 Number of current lock objects+
    +70 Maximum number of lock objects at any one time+
    +2 Maximum number of lock objects in any one bucket+
    +0 Maximum number of objects stolen by for an empty partition+
    +0 Maximum number of objects stolen for any one partition+
    +158M Total number of locks requested (158999583)+
    +158M Total number of locks released (158999340)+
    +0 Total number of locks upgraded+
    +727 Total number of locks downgraded+
    +19 Lock requests not available due to conflicts, for which we waited+
    +11 Lock requests not available due to conflicts, for which we did not wait+
    +0 Number of deadlocks+
    +0 Lock timeout value+
    +0 Number of locks that have timed out+
    +0 Transaction timeout value+
    +0 Number of transactions that have timed out+
    +7MB 840KB The size of the lock region+
    +0 The number of partition locks that required waiting (0%)+
    +0 The maximum number of times any partition lock was waited for (0%)+
    +0 The number of object queue operations that required waiting (0%)+
    +0 The number of locker allocations that required waiting (0%)+
    +115 The number of region locks that required waiting (0%)+
    +2 Maximum hash bucket length+
    +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
    +6MB 257KB 604B Total cache size+
    +1 Number of caches+
    +1 Maximum number of caches+
    +6MB 264KB Pool individual cache size+
    +0 Maximum memory-mapped file size+
    +0 Maximum open file descriptors+
    +0 Maximum sequential buffer writes+
    +0 Sleep after writing maximum sequential buffers+
    +10 Requested pages mapped into the process' address space+
    +344M Requested pages found in the cache (99%)+
    +1282817 Requested pages not found in the cache+
    +3319 Pages created in the cache+
    +1282817 Pages read into the cache+
    +7780 Pages written from the cache to the backing file+
    +1277963 Clean pages forced from the cache+
    +7779 Dirty pages forced from the cache+
    +0 Dirty pages written by trickle-sync thread+
    +395 Current total page count+
    +389 Current clean page count+
    +6 Current dirty page count+
    +1031 Number of hash buckets used for page location+
    +4096 Assumed page size used+
    +346M Total number of times hash chains searched for a page (346931510)+
    +4 The longest hash chain searched for a page+
    +389M Total number of hash chain entries checked for page (389374869)+
    +0 The number of hash bucket locks that required waiting (0%)+
    +0 The maximum number of times any hash bucket lock was waited for (0%)+
    +0 The number of region locks that required waiting (0%)+
    +0 The number of buffers frozen+
    +0 The number of buffers thawed+
    +0 The number of frozen buffers freed+
    +1286173 The number of page allocations+
    +5923486 The number of hash buckets examined during allocations+
    +29 The maximum number of hash buckets examined for an allocation+
    +1285743 The number of pages examined during allocations+
    +2 The max number of pages examined for an allocation+
    +0 Threads waited on page I/O+
    +0 The number of times a sync is interrupted+
    Pool File: /DBPool/DoPlanning/DoPlanningDB/era7/doPlanningLogs.dbxml
    +16384 Page size+
    +0 Requested pages mapped into the process' address space+
    +766861 Requested pages found in the cache (99%)+
    +3408 Requested pages not found in the cache+
    +9 Pages created in the cache+
    +3408 Pages read into the cache+
    +595 Pages written from the cache to the backing file+
    Pool File: /DBPool/DoPlanning/DoPlanningDB/era7/doPlanning.dbxml
    +16384 Page size+
    +0 Requested pages mapped into the process' address space+
    +344M Requested pages found in the cache (99%)+
    +1278423 Requested pages not found in the cache+
    +3309 Pages created in the cache+
    +1278423 Pages read into the cache+
    +7117 Pages written from the cache to the backing file+
    Pool File: sequenceDb
    +16384 Page size+
    +0 Requested pages mapped into the process' address space+
    +2 Requested pages found in the cache (25%)+
    +6 Requested pages not found in the cache+
    +0 Pages created in the cache+
    +6 Pages read into the cache+
    +1 Pages written from the cache to the backing file+
    Pool File: /DBPool/DoPlanning/DoPlanningDB/era7/doPlanningMessages.dbxml
    +16384 Page size+
    +0 Requested pages mapped into the process' address space+
    +7111 Requested pages found in the cache (88%)+
    +926 Requested pages not found in the cache+
    +1 Pages created in the cache+
    +926 Pages read into the cache+
    +58 Pages written from the cache to the backing file+
    Pool File: /DBPool/DoPlanning/DoPlanningDB/era7/doPlanningErrorLogs.dbxml
    +16384 Page size+
    +0 Requested pages mapped into the process' address space+
    +1322 Requested pages found in the cache (96%)+
    +54 Requested pages not found in the cache+
    +0 Pages created in the cache+
    +54 Pages read into the cache+
    +9 Pages written from the cache to the backing file+
    +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
    +0/0 No checkpoint LSN+
    Fri Mar  4 15:34:47 2011        Checkpoint timestamp
    +0x80000b22 Last transaction ID allocated+
    +5000 Maximum number of active transactions configured+
    +18 Active transactions+
    +22 Maximum active transactions+
    +2850 Number of transactions begun+
    +12 Number of transactions aborted+
    +2820 Number of transactions committed+
    +0 Snapshot transactions+
    +0 Maximum snapshot transactions+
    +0 Number of transactions restored+
    +1MB 456KB Transaction region size+
    +0 The number of region locks that required waiting (0%)+
    Active transactions:
    +800009c2: running; pid/thread 29365/1322; begin LSN: file/offset 0/0+
    +800009d2: running; pid/thread 29365/1323; begin LSN: file/offset 0/0+
    +800009e0: running; pid/thread 29365/1332; begin LSN: file/offset 0/0+
    +800009ec: running; pid/thread 29365/1333; begin LSN: file/offset 0/0+
    +800009f8: running; pid/thread 29365/1334; begin LSN: file/offset 0/0+
    +80000a04: running; pid/thread 29365/1335; begin LSN: file/offset 0/0+
    +80000a10: running; pid/thread 29365/1336; begin LSN: file/offset 0/0+
    +80000a17: running; pid/thread 29365/1337; begin LSN: file/offset 0/0+
    +80000a23: running; pid/thread 29365/1338; begin LSN: file/offset 0/0+
    +80000a35: running; pid/thread 29365/1339; begin LSN: file/offset 0/0+
    +80000a58: running; pid/thread 29365/1341; begin LSN: file/offset 0/0+
    +80000a62: running; pid/thread 29365/1349; begin LSN: file/offset 0/0+
    +80000a74: running; pid/thread 29365/1350; begin LSN: file/offset 0/0+
    +80000a80: running; pid/thread 29365/1351; begin LSN: file/offset 0/0+
    +80000a8c: running; pid/thread 29365/1352; begin LSN: file/offset 0/0+
    +80000a98: running; pid/thread 29365/1353; begin LSN: file/offset 0/0+
    +80000aa6: running; pid/thread 29365/1354; begin LSN: file/offset 0/0+
    +80000ad1: running; pid/thread 29365/134; begin LSN: file/offset 0/0+
    +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
    +3MB 448KB Mutex region size+
    +0 The number of region locks that required waiting (0%)+
    +4 Mutex alignment+
    +1 Mutex test-and-set spins+
    +30000 Mutex total count+
    +28206 Mutex free count+
    +1794 Mutex in-use count+
    +1819 Mutex maximum in-use count+
    Mutex counts
    +28206 Unallocated+
    +116 db handle+
    +2 env dblist+
    +4 env handle+
    +1 env region+
    +4 lock region+
    +182 logical lock+
    +1 log filename+
    +1 log flush+
    +3 log region+
    +5 mpoolfile handle+
    +395 mpool buffer+
    +10 mpool filehandle+
    +17 mpool file bucket+
    +2 mpool handle+
    +1031 mpool hash bucket+
    +1 mpool region+
    +1 mutex region+
    +12 sequence+
    +2 twister+
    +2 txn active list+
    +1 transaction checkpoint+
    +1 txn region+
    I try to run db_verify but I don't know the right way and I get:
    +db_verify [-NoqV] [-h home] [-P password] db_file ...+
    Thank you for everything

  • I have re-installed Adobe Reader on to my Windows 7 PC. When I open a PDF I was getting an error message containing  . . . .Acrord32.exe application error . . . . I now cannot open any PDF's. Adobe seems to be unresponsive.

    I have re-installed Adobe Reader on to my Windows 7 PC. When I open a PDF I was getting an error message containing  . . . .Acrord32.exe
    I now cannot open any PDF's and Adobe seems unresponsive. I have tried to follow a step by step guide on how to fix this but Adobe won't stay open long enough for me to complete the steps. When I open Adobe it stays open for a matter of seconds then minimises to the task bar and when I click on it again I can't do anything with it and have to close it via task manager
    Please help!?

    Disabling Protected Mode should fix the problem.  But since you cannot even open Adobe Reader by itself, you need to do it via the Windows registry.  If you tell me your installed Reader version, I can give you a registry script to do that.

  • With OSX10.7.5 and Adobe Reader 11.0.02 when I try to open a PDF downloaded from the web I get 'There was an error opening this document. This file is damaged and could not be repaired. Preview will not open either. Older PDFs OK.

    I am running OS X 10.7.5 and Adobe Reader 11.0.02. In the last few days I have been unable to open PDF's downloaded from the web. Reader gives the error message 'There was an error opening this document. The file is damaged and could not be repaired'. Removing Reader and trying to use Preview to open these files give the error 'Preview cannot open this file. It may be damaged or use a file format that Preview doesn't recognise' (or something like that). Downloading the same files with Reader removed from my Mac Preview opens the files OK.
    I was recently prompted to update Adobe software but did not note exactly what the update was nor when it was done.
    Reader and Preview will both open PDFs I downloaded a week ago. Reader will also open files downloaded on another Mac running OS X 10.0.0 and copied to my Mac. Any ideas?

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • With Reader XI There was an error opening this document. Access denied

    Hi there, It looks like I have a simular problem. I also get the error "There was an error opening this document. Access denied." This when I tried to open the file by clicling on the file. When I try to open the file from out Adobe reader it gives me the error "You don't have permission to open the file" I use Adobe XI. My OS is W8.1 By clearing protected mode doesn't help. This is what I found sofar: Only the PDF files in the documents and subfolders are giving me this error. PDF files in other folders are fine. When I copy PDF files from the documents folder to Desktop they open without any problem. First I thought I might be a permission problem with the Documents folder, but I have full access. Other files in the Documents folder like Word and Excel files open fine with MS Office. My laptop has WinXP and is shared with my PC when I open PDF files on my laptop by using the network share they open without problems. So it looks like only the PDF files in my Documents folder. I'm not sure but before upgrading to W8.1 from W8.0 I can't remember if I had this problem, but I think I did not have it. To make it even more interested is that I have also Adobe Acrobat Writer on my PC what I use for my buisiness. When I open the PDF files with this program they open without any problem. Therefore I believe it is not a permission problem, I still believe it is a problem with Reader XI, but than only after upgrading to W8.1, but as I already mentioned I'm not sure for 100% only that sofar I know it never happened under W8. Has anyone out there simular problems? And hopefully with a fix.

    This is what I did sofar: Deleted reader XI and reinstalled same problem.
    Because I think the problem is with reader XI I deleted again XI and installed reader X.
    With this version I can open PDF files located in the documents folder without any problem.
    For now I keep using version X until they fixed version XI
    This proves that reader XI will not work under W8.1 when opening PDF files in de documents folder.
    Bennie

  • Error opening PDF files from search results webpart on anonymous SharePoint 2013SP1 site with IE

    Clicking search results, in the strict sense pdf files, using IE on an anonymous SharePint 2013SP1 site, I received the error: There was an error opening this document. The filename, directory name, or volume label syntax is incorrect.
    I would like to solve this problem on the server side.
    Starting position:
    SharePoint 2013 SP1
    Web Application:
    based on template 'Publishing Portal'
    Anonymous Access enabled
    Claims based authentication: Integrated Windows Authentication NTLM
    Client Integration disabled
    Site Collection:
    Anonymous Access enabled for 'Entire Web site' => group 'Anonymous Users' was created
    added permission to open items: $Web.AnonymousPermMask64 = "ViewListItems, ViewVersions, ViewFormPages, Open, ViewPages, UseClientIntegration, OpenItems"
    Client side solutions:
    c1) Open Link with “Open in new tab” or “Open in new window” => OK
    c2) Disable IE Add-on “Adobe Acrobat Sharepoint OpenDocuments Component” => OK
    c3) Set bDisableSharePointFeatures to 1 in regetit => OK
    Server side solutions:
    S1) Turn off Client Integration => didn't work, still same error
    S2) Modify DOCICON.XML => didn't work, still same error
    I gave these two options a chance:
    first: <Mapping Key="pdf" Value="icpdf.png" OpenControl="SharePoint.OpenDocuments"/>
    then: <Mapping Key="pdf" Value="icpdf.png" OpenControl="AdobeAcrobat.OpenDocuments"/>
    I modified DOCICON.XML on both hives 14 and 15.
    Remarks:
    - After changingparameters I allways did an IISreset.
    - As far as I understood I can only change bDisableSharePointFeatures on Client Side.
    Any help, suggestion, idea wellcome!
    Thanks!

    Hi folks, here's the reason for my problem. I used the oob search result web part. The result items (PDF items) are rendered by the template Item_PDF.html/Item_PDF.js. This template holds a code snippet that assigns a certain OpenControl to the PDF item - that's hard coded. So, no matter what you configure in DOCICON.XML, the PDF item will be opened with the control "PdfFile.OpenDocuments". Solution is e.g. just to leave the OpenControl blank.   
    template:
    /_catalogs/masterpage/Display Templates/Search/Item_PDF.html
    /_catalogs/masterpage/Display Templates/Search/Item_PDF.js
    code before:
    ctx.CurrentItem.csr_OpenControl = "PdfFile.OpenDocuments";
    code after:
    ctx.CurrentItem.csr_OpenControl = "";
    Enjoy
    Harry

  • Error opening PDF files on anonymous SharePoint 2013SP1 site with IE

    Clicking search results, in the strict sense pdf files, using IE on an anonymous SharePint 2013SP1 site, I received the error:
    There was an error opening this document. The filename, directory name, or volume label syntax is incorrect.
    I would like to solve this problem on the server side.
    Starting position:
    - SharePoint 2013 SP1
    - Web Application:
      - based on template 'Publishing Portal'
      - Anonymous Access enabled
      - Claims based authentication: Integrated Windows Authentication NTLM
      - Client Integration disabled
    - Site Collection:
      - Anonymous Access enabled for 'Entire Web site' => group 'Anonymous Users' was created
      - added permission to open items: $Web.AnonymousPermMask64 = "ViewListItems, ViewVersions, ViewFormPages, Open, ViewPages, UseClientIntegration, OpenItems"
      - SC-Feature 'Limited-access user permission lockdown mode' disabled
    Client side solutions:
    c1) Open Link with “Open in new tab” or “Open in new window” => OK
    c2) Disable IE Add-on “Adobe Acrobat Sharepoint OpenDocuments Component” => OK
    c3) Set bDisableSharePointFeatures to 1 in regetit => OK
    Server side solutions:
    S1) Turn off Client Integration => didn't work, still same error
    S2) Modify DOCICON.XML => didn't work, still same error
    I gave these two options a chance:
    first: <Mapping Key="pdf" Value="icpdf.png" OpenControl="SharePoint.OpenDocuments"/>
    then: <Mapping Key="pdf" Value="icpdf.png" OpenControl="AdobeAcrobat.OpenDocuments"/>
    I modified DOCICON.XML on both hives 14 and 15.
    Remarks:
    - After changingparameters I allways did an IISreset.
    - As far as I understood I can only change bDisableSharePointFeatures on Client Side.
    Any help, suggestion, idea wellcome!
    Thanks!

    Hi Harry,
    From your description, I understand you encountered the issue when open PDF documents from search result page.
    Here is a similar thread, please try the piece of code in the page layout for the search results page from Mitch B_83:
    https://social.technet.microsoft.com/Forums/appvirtualization/en-US/545efcc6-b748-4df8-aee0-7f57f778ad1e/sharepoint-2010-opening-pdfs-in-search-results-the-filename-directory-name-or-volume-label?forum=sharepointgeneralprevious
    You could refer to this for search result page layout: Site settings > Web Designer Galleries > Master pages and page layouts > SearchResults.apsx .
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • Error when opening document with ECL control: INVALID_DATA

    Hi Gurus,
    I've tried to search the net for this problem but could not find anything and I'm stuck now.
    Description:
    we're using ECL to view attached documents (to POs etc.) which are stored through ArchiveLink on the content repository.
    when we try to open this document, time-to-time we get following error:
    Error when opening document with ECL control: INVALID_DATA
    Message no. SDV004
    by time-to-time I mean that when we try to open same attachment again it opens successfully (sometimes we need to re-open it 3-4 times to get it)
    what we've tried is to enlarge timeout for HTTP protocol (tx SMICM, from former 30 to actual 60) but only effect we got is that we're waiting for the error longer time
    It will be really great if anybody of you guys can give me an advice where the problem can be or where should I look and what to check
    Thanks,
    David

    Hi Christoph,
    thanks for tip, unfortunately this was already flagged, currently settings are:
    for Display Settings:
    yes - include ECL control
    use HTML control
    empty - maximum viewer wait time
    (do you think that setting some value for this could help)
    yes - deactivate generic object services in viewer
    no - doc display as dialog box
    yes - deactivate data provider cache
    Storage Settings:
    yes - always copy document class from document type
    yes - permit multiple assignment
    Thanks,
    David

  • How to deal with "There was an error opening this document, the file is damaged and could not be"

    Hello, everyone:
    I open one pdf document with Adobe Reader 9.3, but it appeared that "There was an error opening this document, the file is damaged and could not be repaired".. and I found that another several pdf document in the same folder that I have not opened for a long time is also "damaged and could not be repaired".
    But in the same folder, other documents of different types are ok, does that mean there is something wrong with my hard drive?
    Has anyone else run into this issue or have any suggestions?
    Thank you very much

    It could be that the directory is damaged. It could be that at one time you had a virus that did damage, it is hard to say. Do you have a good backup?

  • My PDFs with form fields get "There was an error opening this document. The file is damaged and could not be repaired." on anothers computer, PC and MAC

    Im creating PDFs through InDesign and using Acrobat Pro 9 to add fields.  I save them to allow ADobe Reader people to use them.  Everything works fine on Pro and Reader on my end with a PC as well as someone elses PC.  But one person using Mac said some forms work and some dont.  Those that dont get the error "There was an error opening this document. The file is damaged and could not be repaired."  Ive resaved them and made sure they work and same problem.  There is nothing overly coplex about the PDFs either, a date field at the most.  They are using Reader 9.1.
    I found out the other day that one person who can open them adds info to them saves them and send over to that other person and cannot open any of them after they have been edited, same error.  He even tried on a PC and still gets it.
    I dont know what to do.  I know it has to be on his end and not mine.  What else can I suggest to him??

    It sounds like they are using an earlier version of Acrobat or Reader, though you said Reader 9.1. If you add some features in AA9 that are new, it appears that earlier versions see the new features as damaged files. At least that is my guess. Try using Reduce File Size or PDF Optimize to save to an earlier version and see if that helps. The other option is that you are getting them messed up in e-mail because many client look at PDF files as ascii and do not encrypt them. In that case force the encryption. You can also send them in ZIP form.

  • Error with Adobe Acrobat X "error opening the document. The file is damaged and could not recover"

    Good morning,
    I have a problem when generating PDF files with Adobe Acrobat X.
    When I give print a Word document 2003 ... 2007 ... 2010 ... and select a network drive to save the PDF file, I get the following error "error opening the document. Thefile is damaged and not could recover."
    The file is saved on your drive well ... but I always get this error.
    Any ideas???
    Thank you.

    First of all thanks for responding.
    The installed version of Adobe's Adobe OS X and Windows XP machines is thelatest patch level.
    The local system .... works well ... Open Office 2010 ... create a new Word document and save it locally ... and all good.
    The problem is though that same machine ... it enters network (not Windows network. OES2 is a network with Novell network client) ... and to open and create a new document to WORD .... when printing the PDF printer ... select a network drive... and when the document is saved well ... but it shows the error.
    I have an amount of hours lost with this ... I hope you can help me find a solution.
    Thank you very much.

  • I am not able to open iCloud from pc, error is "problem with the server". what should I do?

    I am not able to open iCloud from pc, error is "problem with the server". what should I do?

    Go to Settings>General>Restrictions>Accounts (near the bottom) and set this to Allow Changes.  You will then be able to access Settings>iCloud again.

Maybe you are looking for

  • Visited iPad 3 search links don't change color in Safari

    The iPad 3 (iOS 5.1) Safari search links returned from a Yahoo or a Google search don't change color after visiting them like they do on the iMac. Is this a known behavior?

  • Rebate functionalliy is not working properly

    Transaction to use VBO2, VBO3, VBOF I cannot make the rebates updates properly 1.The agreement  was already created by me, originally with an accrual condition of 1% of accrual. 2. I have changed the rebate with transaction VBO2. I have increase the

  • How to correct an invalid BDC Field Name in FEBEP table

    Hi, In FEBAN processing, I am unable to re-process a failed transaction because of an invalid value in "BDC Field Name" field.  This entry has not generated any document so far. Is there any way I can fix this error? Thanks.

  • Xilisoft dvd creator

    I've downloaded xilisoft dvd creator 7 for mac to burn my iMovies since my mac book doesn't have idvd.  I can get it to burn the movie, but the music is totally out of sync with the pictures.  It's just fine when we watch the iMovie directly from my

  • Media Go Problem

    Hi, I have installed media go recently on a windows 7 64 bit machine. The problem I have is that it has picked up and included in the library all my photographs and videos DESPITE the folder they are in not being in the list of included folders for t