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

Julian Thiel commented on CAMEL-6124:
-------------------------------------

I've tried it with 0.8.0 and also 0.9.0 beta and i got no problems. For 
chemistry the url for the connection looked a bit diffrent:

{code}http://ip:port/_vti_bin/cmis/rest/REPOOSITORYID?getRepositoryInfo{code}

But this one is also not working with camel.

Here the stack trace:
{code}
Exception in thread "main" org.apache.camel.FailedToCreateRouteException: 
Failed to create route route1 at: >>> 
To[cmis://http://ls-sp2013/_vti_bin/cmis/rest?repositoryId=B1E077F6-2439-4BD0-BED2-D946DCF3435C&username=testuser&password=test1234]
 <<< in route: Route[[From[file:/testfolder/?noop=true]] -> [process[com.le... 
because of Failed to resolve endpoint: 
cmis://http://ls-sp2013/_vti_bin/cmis/rest?password=test1234&repositoryId=B1E077F6-2439-4BD0-BED2-D946DCF3435C&username=testuser
 due to: The service method invoked requires an optional capability not 
supported by the repository.
        at 
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:879)
        at 
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:172)
        at 
org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:742)
        at 
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1821)
        at 
org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1601)
        at 
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1470)
        at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)
        at 
org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1438)
        at 
com.legodo.camel.cmis.CamelSharePoint.transfer(CamelSharePoint.java:40)
        at com.legodo.camel.cmis.CamelSharePoint.main(CamelSharePoint.java:16)
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve 
endpoint: 
cmis://http://ls-sp2013/_vti_bin/cmis/rest?password=test1234&repositoryId=B1E077F6-2439-4BD0-BED2-D946DCF3435C&username=testuser
 due to: The service method invoked requires an optional capability not 
supported by the repository.
        at 
org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:492)
        at 
org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:61)
        at 
org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:187)
        at 
org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:108)
        at 
org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:114)
        at 
org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java:61)
        at 
org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:55)
        at 
org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:459)
        at 
org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:177)
        at 
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:876)
        ... 9 more
Caused by: 
org.apache.chemistry.opencmis.commons.exceptions.CmisNotSupportedException: The 
service method invoked requires an optional capability not supported by the 
repository.
        at 
org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:444)
        at 
org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.read(AbstractAtomPubService.java:564)
        at 
org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getRepositoriesInternal(AbstractAtomPubService.java:727)
        at 
org.apache.chemistry.opencmis.client.bindings.spi.atompub.RepositoryServiceImpl.getRepositoryInfo(RepositoryServiceImpl.java:64)
        at 
org.apache.chemistry.opencmis.client.bindings.impl.RepositoryServiceImpl.getRepositoryInfo(RepositoryServiceImpl.java:69)
        at 
org.apache.chemistry.opencmis.client.runtime.SessionImpl.connect(SessionImpl.java:717)
        at 
org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.createSession(SessionFactoryImpl.java:90)
        at 
org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.createSession(SessionFactoryImpl.java:64)
        at 
org.apache.camel.component.cmis.CMISSessionFacade.initSession(CMISSessionFacade.java:66)
        at 
org.apache.camel.component.cmis.CMISComponent.createEndpoint(CMISComponent.java:35)
        at 
org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:93)
        at 
org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:473)
        ... 18 more
{code} 
                
> MS SharePoint 2013 and CMIS
> ---------------------------
>
>                 Key: CAMEL-6124
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6124
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.11.0
>         Environment: - Windows Server 2012
> - Mircosoft SharePoint 2013 Server
> - Eclipse Juno
> - Camel 2.11 Snapshot
>            Reporter: Julian Thiel
>             Fix For: 2.11.0
>
>
> Hi,
> I'm trying to create an SharePoint 2013 CMIS Endpoint with the following URI:
> "cmis://http://ip:port/_vti_bin/cmis/rest?repositoryId=ID&username=USER&password=PW";
> When I call "context.getEndpoint(URI)" i'm getting the Exception:
> Exception in thread "main" org.apache.camel.ResolveEndpointFailedException: 
> Failed to resolve endpoint: URI due to: The service method invoked requires 
> an optional capability not supported by the repository.
> Before I tried Camel I was using the Apache Chemistry API to connect to the 
> SharePoint Repository and it worked well! If Camel is using the same API why 
> is it not working?
> Hope you can fix it!
> Kind regards,
> Julian Thiel

--
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

Reply via email to