Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何解决sharepoint错误-500内部服务器错误?_Sharepoint_Mule - Fatal编程技术网

如何解决sharepoint错误-500内部服务器错误?

如何解决sharepoint错误-500内部服务器错误?,sharepoint,mule,Sharepoint,Mule,您好,我正在查询sharepoint,下面是查询和连接详细信息 <sharepoint:online-connection-config name="Microsoft_SharePoint_2013__Online_Connection" username="${Sharepoint.Username}" password="${Sharepoint.Password}" siteUrl="${Sharepoint.SiteUrl}" disableCnCheck="true" d

您好,我正在查询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 "/>

您有一个
500内部服务器错误
,这意味着您正在查询的服务器出现了问题。错误消息是找不到
用户。
,您在
Microsoft\u SharePoint\u 2013\u\u联机\u连接上配置的用户在SharePoint服务器上可能已不存在,或者存在某些配置问题


编辑:根据您提供的详细信息,您配置的用户似乎在服务器端造成了一些错误。如果您有权访问服务器,则应检查日志,并确保此用户已正确配置和可访问。

您将在何处添加此查询?你也可以添加一段代码吗?更新了问题,在查询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)