chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tetsunori Inada (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CMIS-672) Cannot connect to repositories using Web Services any longer
Date Thu, 13 Jun 2013 18:33:20 GMT

    [ https://issues.apache.org/jira/browse/CMIS-672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13682525#comment-13682525
] 

Tetsunori Inada commented on CMIS-672:
--------------------------------------

Thank you for the quick response.
Following four lines represent what I could get from the exception methods:
{panel}
CmisConnectionException: 
	getMessage(): Cannot initalize Web Services service object [RepositoryService]: null
	getErrorContent(): null
	exp.getStackTrace(): [Ljava.lang.StackTraceElement;@130c35c
{panel}

The parameters used (and code used, additionally) are as foolows:
{code}
private void getRepositories() {
	final SessionFactory factory = SessionFactoryImpl.newInstance();
	final Map<String, String> parameter = fixParameters();
	final List<Repository> repositories = factory.getRepositories(parameter);
	...
}

private Map<String, String> fixParameters() {
	final Map<String, String> parameter = new HashMap<String, String>();
	parameter.put(SessionParameter.USER, username);
	parameter.put(SessionParameter.PASSWORD, password);
	parameter.put(SessionParameter.AUTHENTICATION_PROVIDER_CLASS,
				CmisBindingFactory.STANDARD_AUTHENTICATION_PROVIDER);
	parameter.put(SessionParameter.BINDING_TYPE, BindingType.WEBSERVICES.value());			
	parameter.put(SessionParameter.WEBSERVICES_ACL_SERVICE, url + "/ACLService?wsdl");
	parameter.put(SessionParameter.WEBSERVICES_DISCOVERY_SERVICE, url + "/DiscoveryService?wsdl");
	parameter.put(SessionParameter.WEBSERVICES_MULTIFILING_SERVICE, url + "/MultiFilingService?wsdl");
	parameter.put(SessionParameter.WEBSERVICES_NAVIGATION_SERVICE, url + "/NavigationService?wsdl");
	parameter.put(SessionParameter.WEBSERVICES_OBJECT_SERVICE, url + "/ObjectService?wsdl");
	parameter.put(SessionParameter.WEBSERVICES_POLICY_SERVICE, url + "/PolicyService?wsdl");
	parameter.put(SessionParameter.WEBSERVICES_RELATIONSHIP_SERVICE, url + "/RelationshipService?wsdl");
	parameter.put(SessionParameter.WEBSERVICES_REPOSITORY_SERVICE, url + "/RepositoryService?wsdl");
	parameter.put(SessionParameter.WEBSERVICES_VERSIONING_SERVICE, url + "/VersioningService?wsdl");
	return parameter;
}
{code}

                
> Cannot connect to repositories using Web Services any longer
> ------------------------------------------------------------
>
>                 Key: CMIS-672
>                 URL: https://issues.apache.org/jira/browse/CMIS-672
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-client
>    Affects Versions: OpenCMIS 0.9.0
>         Environment: Windows 7 x64
> Java (eclipse) application
> SharePoint 2013
> Alfresco Enterprise v4.0.0
>            Reporter: Tetsunori Inada
>
> After updating to v0.9.0, I can no longer connect to the repositories I'm using (Alfresco
and SharePoint 2013) using Web Services (AtomPub works).
> When executing org.apache.chemistry.opencmis.client.api.SessionFactory.getRepositories()
method, CmisConnectionException is caughtand the error message shows "Cannot initalize Web
Services service object [RepositoryService]".
> The same code was working with v0.7.0 and v0.8.0.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message