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

Getting WstxUnexpectedCharException while initializing Edm for the metadatas where we have "P&L" in the metadata files

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • V2 2.0.11
    • None
    • odata2-core
    • None

    Description

      Getting WstxUnexpectedCharException while initializing Edm for the metadatas where we have "P&L" in the metadata files.

      Snippet from metadata

       
      <Property Name="ProfitLossAccountType" Type="Edm.String" MaxLength="2" sap:display-format="UpperCase" sap:label="P&L state. acct" sap:quickinfo="P&L statement account type"/>
      It fails with the exception (see stack trace)

      [26385] at wm.cloudstreams.sap.s4hanacloud.odata2.util.CommonUtils.getEdm(CommonUtils.java:589)
      [26384] at org.apache.olingo.odata2.api.ep.EntityProvider.readMetadata(EntityProvider.java:876)
      [26383] at org.apache.olingo.odata2.core.ep.ProviderFacadeImpl.readMetadata(ProviderFacadeImpl.java:231)
      [26382] at org.apache.olingo.odata2.core.edm.provider.EdmxProvider.parse(EdmxProvider.java:51)
      [26381] at org.apache.olingo.odata2.core.ep.consumer.XmlMetadataConsumer.readMetadata(XmlMetadataConsumer.java:102)
      [26380] at org.apache.olingo.odata2.core.ep.consumer.XmlMetadataConsumer.readSchema(XmlMetadataConsumer.java:154)
      [26379] at org.apache.olingo.odata2.core.ep.consumer.XmlMetadataConsumer.readEntityType(XmlMetadataConsumer.java:573)
      [26378] at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1073)
      [26377] at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2839)
      [26376] at com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.java:2963)
      [26375] at com.ctc.wstx.sr.BasicStreamReader.handleNsAttrs(BasicStreamReader.java:3065)
      [26374] at com.ctc.wstx.sr.BasicStreamReader.parseAttrValue(BasicStreamReader.java:1938)
      [26373] at com.ctc.wstx.sr.StreamScanner.fullyResolveEntity(StreamScanner.java:1525)
      [26372] at com.ctc.wstx.sr.StreamScanner.parseEntityName(StreamScanner.java:2066)
      [26371] at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:647)
      [26370] at [row,col \{unknown-source}]: [194,125]

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            Priyanka_Bharti Priyanka Bharti
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: