您好我正在查询sharepoint,下面是查询和连接详情。
<sharepoint:online-connection-config name="Microsoft_SharePoint_2013__Online_Connection" username="${Sharepoint.Username}" password="${Sharepoint.Password}" siteUrl="${Sharepoint.SiteUrl}" disableCnCheck="true" doc:name="Microsoft SharePoint 2013: Online Connection">
<reconnect frequency="10000" count="5"/>
</sharepoint:online-connection-config>
<sharepoint:file-query config-ref="Microsoft_SharePoint_2013__Online_Connection" query="dsql:SELECT Author,CheckInComment,CheckOutType,CheckedOutByUser,ContentTag,CustomizedPageStatus,ETag,Exists,Length,Level,LinkingUrl,ListItemAllFields,LockedByUser,MajorVersion,MinorVersion,ModifiedBy,Name,ServerRelativeUrl,TimeCreated,TimeLastModified,Title,UIVersion,UIVersionLabel,UniqueId,Versions FROM 'Sell sheetsBrochures' ORDER BY TimeLastModified DESC LIMIT ${sharepoint.file.fetch.number}" doc:name="Modified File query "/>
查询sharepoint时会抛出以下错误。
********************************************************************************
Message : Failed to invoke fileQuery. Message payload is of type: String
Type : org.mule.api.MessagingException
Code : MULE_ERROR-29999
JavaDoc : http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html
Payload :
********************************************************************************
Exception stack is:
1. 500 Internal Server Error (org.springframework.web.4.1.6.RELEASE.shaded.client.HttpServerErrorException)
org.springframework.web.4.1.6.RELEASE.shaded.client.DefaultResponseErrorHandler:94 (null)
2. Code: 500 Message: {"error":{"code":"-2146232832, Microsoft.SharePoint.SPException","message":{"lang":"en-US","value":"User cannot be found."}}} (org.mule.module.sharepoint.exception.SharepointException)
org.mule.module.sharepoint.rest.AbstractSharepointClientImpl:148 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/module/sharepoint/exception/SharepointException.html)
3. Failed to invoke fileQuery. Message payload is of type: String (org.mule.api.MessagingException)
org.mule.devkit.processor.DevkitBasedMessageProcessor:133 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html)
********************************************************************************
Root Exception stack trace:
org.springframework.web.4.1.6.RELEASE.shaded.client.HttpServerErrorException: 500 Internal Server Error
at org.springframework.web.4.1.6.RELEASE.shaded.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:94)
at org.springframework.web.4.1.6.RELEASE.shaded.client.RestTemplate.handleResponse(RestTemplate.java:614)
at org.springframework.web.4.1.6.RELEASE.shaded.client.RestTemplate.doExecute(RestTemplate.java:570)
at org.springframework.web.4.1.6.RELEASE.shaded.client.RestTemplate.execute(RestTemplate.java:545)
at org.springframework.web.4.1.6.RELEASE.shaded.client.RestTemplate.exchange(RestTemplate.java:466)
at org.mule.module.sharepoint.rest.AbstractSharepointClientImpl.exchangeForObject(AbstractSharepointClientImpl.java:144)
答案 0 :(得分:1)
您有User cannot be found.
,表示您要查询的服务器出现问题。错误消息为Microsoft_SharePoint_2013__Online_Connection
,您在{{1}}配置上配置的用户可能在SharePoint服务器上不再存在,或者存在一些配置问题。
编辑:根据您提供的详细信息,您配置的用户似乎在服务器端造成了一些错误。如果您有权访问服务器,则应检查日志并确保正确配置和访问此用户。