[ https://issues.apache.org/jira/browse/OLINGO-762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dmitry Volodin closed OLINGO-762. --------------------------------- Problem with OData V3 which is not supported by Olingio V4.0.0 library > Cannot find type with name: Edm.DateTime > ---------------------------------------- > > Key: OLINGO-762 > URL: https://issues.apache.org/jira/browse/OLINGO-762 > Project: Olingo > Issue Type: Bug > Components: odata4-client > Affects Versions: (Java) V4 4.0.0-beta-03 > Environment: Following code fails when getting entity based on XML > data with DateTime property > URI customersUri = > client.newURIBuilder().appendEntitySetSegment("Document_АвансовыйОтчет").build(); > ODataEntitySetIteratorRequest<ClientEntitySet, ClientEntity> req = > client.getRetrieveRequestFactory().getEntitySetIteratorRequest(customersUri); > req.setContentType("application/xml"); > req.setAccept("application/xml"); > ODataRetrieveResponse<ClientEntitySetIterator<ClientEntitySet, > ClientEntity>> rsp = req.execute(); > ClientEntitySetIterator<ClientEntitySet, ClientEntity> iterator = > rsp.getBody(); > > while (iterator.hasNext()) { > ClientEntity customer = iterator.next(); > List<ClientProperty> properties = customer.getProperties(); > for (ClientProperty property : properties) { > String name = property.getName(); > ClientValue value = property.getValue(); > String valueType = value.getTypeName(); > } > } > Reporter: Dmitry Volodin > Priority: Critical > > Exception in thread "main" org.apache.olingo.commons.api.edm.EdmException: > Cannot find type with name: Edm.DateTime > at > org.apache.olingo.commons.core.edm.EdmPropertyImpl.getType(EdmPropertyImpl.java:51) > at > org.apache.olingo.client.core.serialization.ODataBinderImpl.getODataEntity(ODataBinderImpl.java:659) > at > org.apache.olingo.client.api.domain.ClientEntitySetIterator.next(ClientEntitySetIterator.java:141) > at > ru.oracle.com.demo.odins.odata.ODataClientTest.listEntityData(ODataClientTest.java:90) > at > ru.oracle.com.demo.odins.odata.ODataClientTest.main(ODataClientTest.java:104) > Process exited. -- This message was sent by Atlassian JIRA (v6.3.4#6332)