[
https://issues.apache.org/jira/browse/OLINGO-1175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16152288#comment-16152288
]
Gayathri Ramachandran commented on OLINGO-1175:
-----------------------------------------------
In Addition, after that now I get the below error. It is quite strange there is
no change in the source file and also in the ODATA, how come all these
exceptions.
INFO: createUri :
https://my326642.crm.ondemand.com/sap/c4c/odata/cust/v1/mstr_bp/BusinessPartnerCollection?$format=json&$filter=CategoryCode%20eq%20%271%27&$expand=BusinessPartnerCommon
Exception in thread "main"
org.apache.olingo.odata2.api.ep.EntityProviderException: An exception of type
'MalformedJsonException' occurred.
at
org.apache.olingo.odata2.core.ep.consumer.JsonFeedConsumer.readFeedStandalone(JsonFeedConsumer.java:72)
at
org.apache.olingo.odata2.core.ep.consumer.JsonEntityConsumer.readDeltaFeed(JsonEntityConsumer.java:95)
at
org.apache.olingo.odata2.core.ep.consumer.JsonEntityConsumer.readFeed(JsonEntityConsumer.java:81)
at
org.apache.olingo.odata2.core.ep.JsonEntityProvider.readFeed(JsonEntityProvider.java:309)
at
org.apache.olingo.odata2.core.ep.ProviderFacadeImpl.readFeed(ProviderFacadeImpl.java:166)
at
org.apache.olingo.odata2.api.ep.EntityProvider.readFeed(EntityProvider.java:708)
at
main.java.gaya3.odata.consumer.BusinessPartnerConsumer.readFeed(BusinessPartnerConsumer.java:160)
at
main.java.gaya3.odata.consumer.BusinessPartnerConsumer.loadBPNameToMap(BusinessPartnerConsumer.java:233)
at
main.java.gaya3.partyApp.Sample_HeaderWithParty_CSV.main(Sample_HeaderWithParty_CSV.java:83)
Caused by: com.google.gson.stream.MalformedJsonException: Use
JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $
at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1573)
at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1423)
at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:587)
at com.google.gson.stream.JsonReader.peek(JsonReader.java:429)
at
org.apache.olingo.odata2.core.ep.consumer.JsonFeedConsumer.readFeed(JsonFeedConsumer.java:85)
at
org.apache.olingo.odata2.core.ep.consumer.JsonFeedConsumer.readFeedStandalone(JsonFeedConsumer.java:63)
> Unable to Read metadata
> -----------------------
>
> Key: OLINGO-1175
> URL: https://issues.apache.org/jira/browse/OLINGO-1175
> Project: Olingo
> Issue Type: Bug
> Components: odata2-core
> Affects Versions: V2 2.0.9
> Environment: WINDOWS 7
> Reporter: Gayathri Ramachandran
> Priority: Blocker
> Labels: V2, olingo
> Attachments: metadata.xml, V2_XML_Parse_Exception.jpg
>
>
> Hi All ,
> The description of issue is as below :
> Component : Olingo-odata2-api-2.0.9-SNAPSHOT.jar
> Operation: Read (de-serialize) data from metadata i.e inputStream and provide
> Edm
> Issue: Unable to read metadata.
> I'm consuming a C4C Odata using Olingo-odata2-api-2.0.9. The client was
> developed by me on May 2017 and was well tested and in use for almost 3
> months. For some business reasons, we have not been running the java client
> since August 2017.
> Today, while I tried to tun the JAR file I encountered the below exception:
> Exception in thread "main"
> org.apache.olingo.odata2.api.ep.EntityProviderException: An exception of type
> 'XMLStreamException' occurred.
> at
> org.apache.olingo.odata2.core.ep.consumer.XmlMetadataConsumer.readMetadata(XmlMetadataConsumer.java:122)
> I'm unable to figure out what has gone wrong. I checked the metaData in a
> browser and it slloks fine (the URI is password protected) I can guide you
> when we proceed further.
> https://my326642.crm.ondemand.com/sap/c4c/odata/cust/v1/mstr_bp/$metadata
> Having met the business functionality, I just don't want to try again from
> scratch using other API's. Hence I request you kindly to support on this as
> this is really critical,
> Thanks
> Gayathri
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)