简体   繁体   English

Apache Olingo 4.2 API抛出java.lang.IllegalArgumentException

[英]Apache Olingo 4.2 API throwing java.lang.IllegalArgumentException

I am trying to use apache Olingo 4.2 client API to access Microsoft CRM OData services which supports OData 4.0 . 我正在尝试使用apache Olingo 4.2客户端API来访问支持OData 4.0的Microsoft CRM OData服务。 I am able to authentication api with Microsoft CRM by providing OAuth credentials , but while parsing the response EDMX document , API throws below Exception. 我可以通过提供OAuth凭据来使用Microsoft CRM进行api身份验证,但是在解析响应EDMX文档时,API会在Exception下面抛出。 It tries to match the parent URL with the reference URL which is different. 它尝试将父URL与参考URL匹配。

java.lang.IllegalArgumentException

The referenced EDMX document has the URI http://vocabularies.odata.org/OData.Community.Keys.V1.xml where scheme, host, or port is different from the main metadata document URI ' https://crmonlinebcone.crm8.dynamics.com/api/data/v8.1 所引用的EDMX文档的URI为http://vocabularies.odata.org/OData.Community.Keys.V1.xml ,其中方案,主机或端口与主元数据文档URI'https://crmonlinebcone.crm8不同。 dynamics.com/api/data/v8.1

Please suggest on this , if someone faced same issue. 如果有人遇到相同的问题,请对此提出建议。

This issue will be fixed in Olingo 4.4.0 release. 此问题将在Olingo 4.4.0版本中修复。 See also: https://issues.apache.org/jira/browse/OLINGO-1008 另请参阅: https : //issues.apache.org/jira/browse/OLINGO-1008

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM