Return-Path: X-Original-To: apmail-incubator-connectors-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-connectors-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 03122716F for ; Tue, 29 Nov 2011 17:20:32 +0000 (UTC) Received: (qmail 48369 invoked by uid 500); 29 Nov 2011 17:20:31 -0000 Delivered-To: apmail-incubator-connectors-commits-archive@incubator.apache.org Received: (qmail 48335 invoked by uid 500); 29 Nov 2011 17:20:31 -0000 Mailing-List: contact connectors-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: connectors-dev@incubator.apache.org Delivered-To: mailing list connectors-commits@incubator.apache.org Received: (qmail 48328 invoked by uid 99); 29 Nov 2011 17:20:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Nov 2011 17:20:31 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Nov 2011 17:20:29 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 1E6D12388847; Tue, 29 Nov 2011 17:20:08 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1207976 - /incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/AlfrescoRepositoryConnector.java Date: Tue, 29 Nov 2011 17:20:08 -0000 To: connectors-commits@incubator.apache.org From: piergiorgio@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20111129172008.1E6D12388847@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: piergiorgio Date: Tue Nov 29 17:20:07 2011 New Revision: 1207976 URL: http://svn.apache.org/viewvc?rev=1207976&view=rev Log: added the exception handling for the WebServiceException thrown by the Afresco Web Services API Modified: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/AlfrescoRepositoryConnector.java Modified: incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/AlfrescoRepositoryConnector.java URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/AlfrescoRepositoryConnector.java?rev=1207976&r1=1207975&r2=1207976&view=diff ============================================================================== --- incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/AlfrescoRepositoryConnector.java (original) +++ incubator/lcf/branches/CONNECTORS-287/connectors/alfresco/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/alfresco/AlfrescoRepositoryConnector.java Tue Nov 29 17:20:07 2011 @@ -20,6 +20,7 @@ import org.alfresco.webservice.types.Res import org.alfresco.webservice.types.ResultSetRow; import org.alfresco.webservice.util.AuthenticationDetails; import org.alfresco.webservice.util.AuthenticationUtils; +import org.alfresco.webservice.util.WebServiceException; import org.alfresco.webservice.util.WebServiceFactory; import org.apache.commons.io.IOUtils; import org.apache.commons.lang.StringUtils; @@ -152,6 +153,14 @@ public class AlfrescoRepositoryConnector + e.getMessage(), e); throw new ManifoldCFException("Alfresco: Error during authentication. Username: "+username + ", endpoint: "+endpoint + e.getMessage(), e); + } catch (WebServiceException e){ + Logging.connectors.warn( + "Alfresco: Error during trying to authenticate the user. Username: "+username + ", endpoint: "+endpoint + +". Please check the connector parameters. " + + e.getMessage(), e); + throw new ManifoldCFException("Alfresco: Error during trying to authenticate the user. Username: "+username + ", endpoint: "+endpoint + +". Please check the connector parameters. " + + e.getMessage(), e); } lastSessionFetch = System.currentTimeMillis();