[
https://issues.apache.org/jira/browse/OLINGO-132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Anurag Pandey updated OLINGO-132:
---------------------------------
Comment: was deleted
(was: Thanks Stephan. Got below Stack trace as response:
{
"body": "<?xml version='1.0' encoding='utf-8'?><error
xmlns=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"><code><\/code><message
xml:lang=\"en\"><\/message><\/error>",
"request": {
"method": "GET",
"uri":
"https://localhost:29071/olingo-context/Instrument.svc/Listings?$expand=IssueDetails&$select=AssetCode,IssueDetails&$inlinecount=allpages&$filter=BbTicker%20eq%20'ABAABY'%20and%20CsIssueid%20eq%20481012783&consumerName=PRIMO®ionName=AMERICAS&odata-debug=json",
"headers": {
"accept-encoding": "gzip,deflate",
"Content-Type": null,
"Host": "localhost:29071",
"User-Agent": "Jakarta Commons-HttpClient/3.1"
}
},
"response": {
"status": {
"code": 500,
"info": "Internal Server Error"
},
"headers": {
"DataServiceVersion": "1.0",
"Content-Type": "application/xml"
}
},
"uri": {
"filter": {
"nodeType": "BINARY",
"operator": "and",
"type": "Edm.Boolean",
"left": {
"nodeType": "BINARY",
"operator": "eq",
"type": "Edm.Boolean",
"left": {
"nodeType": "PROPERTY",
"name": "BbTicker",
"type": "Edm.String"
},
"right": {
"nodeType": "LITERAL",
"type": "Edm.String",
"value": "ABAABY"
}
},
"right": {
"nodeType": "BINARY",
"operator": "eq",
"type": "Edm.Boolean",
"left": {
"nodeType": "PROPERTY",
"name": "CsIssueid",
"type": "Edm.Decimal"
},
"right": {
"nodeType": "LITERAL",
"type": "Edm.Int32",
"value": "481012783"
}
}
},
"expand/select": {
"all": false,
"properties": ["AssetCode"],
"links": [{"IssueDetails": {
"all": true,
"properties": [],
"links": []
}}]
}
},
"runtime": [ {
"method": "handle",
"duration": 427593,
"memory": 917,
"children": [ {
"method": "parse",
"duration": 5423,
"memory": 917,
"children": [ {
"method": "dispatch",
"duration": null,
"memory": null,
"children": []
}]
}]
}],
"stacktrace": {
"exceptions": [ {
"message": null,
"invocation": {
"method": "buildSelectItemList",
"line": 575
}
}],
"stacktrace": [
{
"method": "buildSelectItemList",
"line": 575
},
{
"method": "build",
"line": 90
},
{
"method": "readEntitySet",
"line": 55
},
{
"method": "getOdataResponse",
"line": 166
},
{
"method": "readEntitySet",
"line": 87
},
{
"method": "dispatch",
"line": 77
},
{
"method": "handle",
"line": 129
},
{
"method": "handle",
"line": 153
},
{
"method": "handleGet",
"line": 56
},
{
"method": "invoke0",
"line": -2
},
{
"method": "invoke",
"line": 39
},
{
"method": "invoke",
"line": 25
},
{
"method": "invoke",
"line": 597
},
{
"method": "performInvocation",
"line": 180
},
{
"method": "invoke",
"line": 96
},
{
"method": "invoke",
"line": 198
},
{
"method": "invoke",
"line": 261
},
{
"method": "invoke",
"line": 100
},
{
"method": "run",
"line": 58
},
{
"method": "handleMessage",
"line": 94
},
{
"method": "doIntercept",
"line": 271
},
{
"method": "onMessage",
"line": 121
},
{
"method": "invoke",
"line": 239
},
{
"method": "invokeDestination",
"line": 223
},
{
"method": "invoke",
"line": 203
},
{
"method": "invoke",
"line": 137
},
{
"method": "invoke",
"line": 158
},
{
"method": "handleRequest",
"line": 243
},
{
"method": "doGet",
"line": 168
},
{
"method": "service",
"line": 707
},
{
"method": "service",
"line": 219
},
{
"method": "run",
"line": 227
},
{
"method": "invokeServlet",
"line": 125
},
{
"method": "execute",
"line": 300
},
{
"method": "doFilter",
"line": 26
},
{
"method": "doFilter",
"line": 56
},
{
"method": "doFilter",
"line": 25
},
{
"method": "doFilter",
"line": 56
},
{
"method": "call",
"line": 130
},
{
"method": "call",
"line": 117
},
{
"method": "runInContext",
"line": 1252
},
{
"method": "runInContext",
"line": 214
},
{
"method": "doFilter",
"line": 117
},
{
"method": "doFilter",
"line": 56
},
{
"method": "wrapRun",
"line": 3715
},
{
"method": "run",
"line": 3681
},
{
"method": "doAs",
"line": 321
},
{
"method": "runAs",
"line": 120
},
{
"method": "securedExecute",
"line": 2277
},
{
"method": "execute",
"line": 2183
},
{
"method": "run",
"line": 1454
},
{
"method": "execute",
"line": 209
},
{
"method": "run",
"line": 178
}
]
}
})
> How to get selected properties from entity A and dependent entity B.
> --------------------------------------------------------------------
>
> Key: OLINGO-132
> URL: https://issues.apache.org/jira/browse/OLINGO-132
> Project: Olingo
> Issue Type: Question
> Reporter: dhaval gupta
> Assignee: Chandan V.A
>
> Suppose we have entity A and some entity B is included in entity A. i.e. one
> to one or one to many relationship , how can we have the end result wherein
> we can have some properties of entity A and some attributes of entity B .
> Using expand we get all the properties of entity A and all the properties of
> entities B. If I do select some attributes of entity A , I only get the
> selected attributes of entity A and do not get entity B.
> Thanks,
> Dhaval
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)