You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Chandan V.A (JIRA)" <ji...@apache.org> on 2015/07/04 05:03:04 UTC

[jira] [Assigned] (OLINGO-721) Removing links between the entities throws exception

     [ https://issues.apache.org/jira/browse/OLINGO-721?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chandan V.A reassigned OLINGO-721:
----------------------------------

    Assignee: Chandan V.A

> Removing links between the entities throws exception
> ----------------------------------------------------
>
>                 Key: OLINGO-721
>                 URL: https://issues.apache.org/jira/browse/OLINGO-721
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata2-jpa
>    Affects Versions: V2 2.0.4
>            Reporter: Madhuri Muthyalu
>            Assignee: Chandan V.A
>
> Consider 2 entities A and B, there is a bidirectional association between these entities(A to B and B to A). 
> Created an association between these entities via $links refer the below URI
> <root-url>/B(5001L)/$links/ADetails with the request payload as 
>   {
>           "uri":"A(4901L)"
>         }
> and the association gets created able to retrieve this data via $expand
> Now tried to remove this association via $links with the HTTP DELETE request refer to the following URI
> <root-url>/A(4901L)/$links/BDetails(5001L)
> Get an exception "Object: null is not a known Entity type."
> here is the excerpt stack trace
> stacktrace": [
>                 {
>                     "class": "org.eclipse.persistence.internal.jpa.EntityManagerImpl",
>                     "method": "contains",
>                     "line": 1077
>                 },
>                 {
>                     "class": "org.apache.olingo.odata2.jpa.processor.core.access.data.JPALink",
>                     "method": "save",
>                     "line": 164
>                 },
>                 {
>                     "class": "org.apache.olingo.odata2.jpa.processor.core.access.data.JPAProcessorImpl",
>                     "method": "deleteLink",
>                     "line": 525
>                 },
>                 {
>                     "class": "org.apache.olingo.odata2.jpa.processor.core.access.data.JPAProcessorImpl",
>                     "method": "process",
>                     "line": 336
>                 },
>                 {
>                     "class": "org.apache.olingo.odata2.jpa.processor.core.ODataJPAProcessorDefault",
>                     "method": "deleteEntityLink",
>                     "line": 237
>                 },
>                 {
>                     "class": "org.apache.olingo.odata2.core.Dispatcher",
>                     "method": "dispatch",
>                     "line": 165
>                 },
>                 {
>                     "class": "org.apache.olingo.odata2.core.ODataRequestHandler",
>                     "method": "handle",
>                     "line": 129
>                 },
>                 {
>                     "class": "org.apache.olingo.odata2.core.rest.ODataSubLocator",
>                     "method": "handle",
>                     "line": 167
>                 },
>                 {
>                     "class": "org.apache.olingo.odata2.core.rest.ODataSubLocator",
>                     "method": "handleDelete",
>                     "line": 78
>                 },
>                 {
>                     "class": "sun.reflect.NativeMethodAccessorImpl",
>                     "method": "invoke0",
>                     "line": -2
>                 },
>                 {
>                     "class": "sun.reflect.NativeMethodAccessorImpl",
>                     "method": "invoke",
>                     "line": -1
>                 },
>                 {}.....]



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