manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1151075 - /incubator/lcf/branches/CONNECTORS-221/connectors/cmis/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/cmis/CmisRepositoryConnector.java
Date Tue, 26 Jul 2011 12:34:26 GMT
Author: kwright
Date: Tue Jul 26 12:34:26 2011
New Revision: 1151075

URL: http://svn.apache.org/viewvc?rev=1151075&view=rev
Log:
Apply patch-6

Modified:
    incubator/lcf/branches/CONNECTORS-221/connectors/cmis/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/cmis/CmisRepositoryConnector.java

Modified: incubator/lcf/branches/CONNECTORS-221/connectors/cmis/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/cmis/CmisRepositoryConnector.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-221/connectors/cmis/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/cmis/CmisRepositoryConnector.java?rev=1151075&r1=1151074&r2=1151075&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-221/connectors/cmis/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/cmis/CmisRepositoryConnector.java
(original)
+++ incubator/lcf/branches/CONNECTORS-221/connectors/cmis/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/cmis/CmisRepositoryConnector.java
Tue Jul 26 12:34:26 2011
@@ -44,6 +44,7 @@ import org.apache.chemistry.opencmis.com
 import org.apache.chemistry.opencmis.commons.SessionParameter;
 import org.apache.chemistry.opencmis.commons.enums.BindingType;
 import org.apache.chemistry.opencmis.commons.enums.PropertyType;
+import org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException;
 import org.apache.chemistry.opencmis.commons.impl.Constants;
 import org.apache.commons.lang.StringUtils;
 import org.apache.manifoldcf.agents.interfaces.RepositoryDocument;
@@ -187,6 +188,7 @@ public class CmisRepositoryConnector ext
       try {
         session.getRepositoryInfo();
       } catch (Throwable e) {
+        Logging.connectors.warn("CMIS: Error checking repository: "+e.getMessage(),e);
         this.exception = e;
       }
     }
@@ -323,6 +325,8 @@ public class CmisRepositoryConnector ext
             throw (NotBoundException) thr;
           else if (thr instanceof RemoteException)
             throw (RemoteException) thr;
+          else if (thr instanceof CmisConnectionException)
+            throw new ManifoldCFException("CMIS: Error during getting a new session", thr);
           else
             throw (Error) thr;
         }
@@ -414,6 +418,8 @@ public class CmisRepositoryConnector ext
         if (thr != null) {
           if (thr instanceof RemoteException)
             throw (RemoteException) thr;
+          else if (thr instanceof CmisConnectionException)
+            throw new ManifoldCFException("CMIS: Error during checking connection", thr);
           else
             throw (Error) thr;
         }



Mime
View raw message