[ 
https://issues.apache.org/jira/browse/OLINGO-931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15240690#comment-15240690
 ] 

Michael Bolz commented on OLINGO-931:
-------------------------------------

As mentioned before I changed the exception with this [commit: Replace NPE with 
correct 
exception|https://git1-us-west.apache.org/repos/asf?p=olingo-odata4.git;a=commit;h=824c174d75bb28a29d177bc48376225c093439e8].

Based on that I will set the issue to "resolved".
However if there is more need for clarification feel free to ask and discuss 
here  ;o)

Best Regards, Michael

> $select does not work with JsonSerializer
> -----------------------------------------
>
>                 Key: OLINGO-931
>                 URL: https://issues.apache.org/jira/browse/OLINGO-931
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata4-server
>    Affects Versions: (Java) V4 4.2.0
>            Reporter: Anirban Das
>            Assignee: Michael Bolz
>             Fix For: (Java) V4 4.3.0
>
>
> 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)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to