You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by kw...@apache.org on 2019/07/16 17:37:20 UTC
svn commit: r1863172 -
/manifoldcf/branches/CONNECTORS-1566/connectors/csws/connector/src/main/java/org/apache/manifoldcf/csws/CswsSession.java
Author: kwright
Date: Tue Jul 16 17:37:19 2019
New Revision: 1863172
URL: http://svn.apache.org/viewvc?rev=1863172&view=rev
Log:
Catch runtime exceptions from setting up services
Modified:
manifoldcf/branches/CONNECTORS-1566/connectors/csws/connector/src/main/java/org/apache/manifoldcf/csws/CswsSession.java
Modified: manifoldcf/branches/CONNECTORS-1566/connectors/csws/connector/src/main/java/org/apache/manifoldcf/csws/CswsSession.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1566/connectors/csws/connector/src/main/java/org/apache/manifoldcf/csws/CswsSession.java?rev=1863172&r1=1863171&r2=1863172&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-1566/connectors/csws/connector/src/main/java/org/apache/manifoldcf/csws/CswsSession.java (original)
+++ manifoldcf/branches/CONNECTORS-1566/connectors/csws/connector/src/main/java/org/apache/manifoldcf/csws/CswsSession.java Tue Jul 16 17:37:19 2019
@@ -123,7 +123,7 @@ public class CswsSession
final String documentManagementServiceURL,
final String contentServiceServiceURL,
final String memberServiceServiceURL,
- final String searchServiceServiceURL) {
+ final String searchServiceServiceURL) throws ManifoldCFException {
// Save username/password
this.userName = userName;
@@ -131,12 +131,15 @@ public class CswsSession
// Save expiration interval
this.sessionExpirationInterval = sessionExpirationInterval;
// Construct service references from the URLs
- this.authService = new Authentication_Service();
- this.documentManagementService = new DocumentManagement_Service();
- this.contentServiceService = new ContentService_Service();
- this.memberServiceService = new MemberService_Service();
- this.searchServiceService = new SearchService_Service();
-
+ try {
+ this.authService = new Authentication_Service();
+ this.documentManagementService = new DocumentManagement_Service();
+ this.contentServiceService = new ContentService_Service();
+ this.memberServiceService = new MemberService_Service();
+ this.searchServiceService = new SearchService_Service();
+ } catch (javax.xml.ws.WebServiceException e) {
+ throw new ManifoldCFException("Error initializing web services: "+e.getMessage(), e);
+ }
// Initialize authclient etc.
this.authClientHandle = authService.getBasicHttpBindingAuthentication();
this.documentManagementHandle = documentManagementService.getBasicHttpBindingDocumentManagement();