jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r349739 - /incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java
Date Tue, 29 Nov 2005 15:48:35 GMT
Author: stefan
Date: Tue Nov 29 07:48:33 2005
New Revision: 349739

URL: http://svn.apache.org/viewcvs?rev=349739&view=rev
Log:
improved error reporting in case of error during repository startup

Modified:
    incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java

Modified: incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java?rev=349739&r1=349738&r2=349739&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java
(original)
+++ incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java
Tue Nov 29 07:48:33 2005
@@ -174,7 +174,7 @@
             }
         } catch (FileSystemException fse) {
             String msg = "failed to create folder for repository meta data";
-            log.debug(msg);
+            log.fatal(msg, fse);
             throw new RepositoryException(msg, fse);
         }
         metaDataStore = new BasedFileSystem(repStore, fsRootPath);
@@ -215,15 +215,17 @@
                 delegatingDispatcher, NODETYPES_NODE_UUID, SYSTEM_ROOT_NODE_UUID);
 
         // initialize workspaces
+        String wspName = "";
         try {
             iter = wspInfos.keySet().iterator();
             while (iter.hasNext()) {
-                String wspName = (String) iter.next();
+                wspName = (String) iter.next();
                 initWorkspace(wspName);
             }
         } catch (RepositoryException e) {
             // if any workspace failed to initialize, shutdown again
-            log.error("Unable to start repository. forcing shutdown.");
+            log.fatal("Failed to initialize workspace '" + wspName + "'", e);
+            log.fatal("Unable to start repository, forcing shutdown...");
             shutdown();
             throw e;
         }
@@ -880,7 +882,6 @@
             return pm;
         } catch (Exception e) {
             String msg = "Cannot instantiate persistence manager " + pmConfig.getClassName();
-            log.error(msg, e);
             throw new RepositoryException(msg, e);
         }
     }



Mime
View raw message