Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-1175

Unable to Read metadata

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • V2 2.0.9
    • None
    • odata2-core
    • WINDOWS 7
    • Important

    Description

      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

      Attachments

        1. Authorization.png
          7 kB
          Gayathri Ramachandran
        2. NotJSON.jpg
          281 kB
          Gayathri Ramachandran
        3. ApplicationError.png
          68 kB
          Gayathri Ramachandran
        4. ApplicationError.png
          68 kB
          Gayathri Ramachandran
        5. ErrorInMonitor.png
          38 kB
          Gayathri Ramachandran
        6. TestPass_CollectionRunner.png
          11 kB
          Gayathri Ramachandran
        7. IndividualRun_TestPass.png
          12 kB
          Gayathri Ramachandran
        8. ErrorRunningInAPI.png
          80 kB
          Gayathri Ramachandran
        9. Tried running in Postman.png
          71 kB
          Gayathri Ramachandran
        10. metadata.xml
          5 kB
          Gayathri Ramachandran
        11. V2_XML_Parse_Exception.jpg
          374 kB
          Gayathri Ramachandran

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gramachandran Gayathri Ramachandran
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: