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

$select does not work with JsonSerializer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • (Java) V4 4.2.0
    • (Java) V4 4.3.0
    • odata4-server
    • None

    Description

      When we fire a Odata request whith $select and requested format as json
      for eg
      /Customer?$select=Type,CustomerName&$format=json
      The OdataSerializer throws a null pointer exception. Alson Note when requesting a xml format there is no issue with the request above and gives back the result correctly

      StackTrace for reference::
      java.lang.NullPointerException
      at org.apache.olingo.server.core.serializer.json.ODataJsonSerializer.writeEntity(ODataJsonSerializer.java:329)
      at org.apache.olingo.server.core.serializer.json.ODataJsonSerializer.writeEntitySet(ODataJsonSerializer.java:273)
      at org.apache.olingo.server.core.serializer.json.ODataJsonSerializer.writeExpandedNavigationProperty(ODataJsonSerializer.java:459)
      at org.apache.olingo.server.core.serializer.json.ODataJsonSerializer.writeNavigationProperties(ODataJsonSerializer.java:420)
      at org.apache.olingo.server.core.serializer.json.ODataJsonSerializer.writeEntity(ODataJsonSerializer.java:332)
      at org.apache.olingo.server.core.serializer.json.ODataJsonSerializer.writeEntitySet(ODataJsonSerializer.java:273)
      at org.apache.olingo.server.core.serializer.json.ODataJsonSerializer.entityCollection(ODataJsonSerializer.java:165)

      Attachments

        Activity

          People

            mirbo mibo
            anirbandas22@gmail.com Anirban Das
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: