Hi James,


I solved this issue by adding the header "Real-Time: true"


But while searching for named-query, I again face node not found error:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Fault>
    <requestError>
        <serviceException>
            <messageId>SVC3001</messageId>
            <text>Resource not found for %1 using id %2 (msg=%3) (ec=%4)</text>
            <variables>
                <variable>POST Search</variable>
                <variable>getNamedQueryResponse</variable>
                <variable>Node Not Found:Node could not be found for nodeType = 
[named-query], propertyName = [named-query-uuid], propertyValue = 
[0367193e-c785-4d5f-9cb8-7bc89dc9ddb7]
</variable>
                <variable>ERR.5.4.6114</variable>
            </variables>
        </serviceException>
    </requestError>
</Fault>



I ran the query for 
"https://127.0.0.1:8443/aai/v11/service-design-and-creation/named-queries"; and 
I got the expected response as:

<?xml version="1.0" encoding="UTF-8"?>
<named-queries xmlns="http://org.openecomp.aai.inventory/v11";>
    <named-query>
        
<named-query-uuid>0367193e-c785-4d5f-9cb8-7bc89dc9ddb7</named-query-uuid>
        <named-query-name>get-component-list</named-query-name>
        <named-query-version>1.1</named-query-version>
        <description>Named Query - Get Component List</description>
        <resource-version>1516820998664</resource-version>
    </named-query>
</named-queries>


Best Regards

Bharath T

________________________________
From: [email protected] <[email protected]> 
on behalf of bharath thiruveedula <[email protected]>
Sent: Tuesday, January 23, 2018 6:10 AM
To: FORSYTH, JAMES; [email protected]; KAJUR, HARISH V
Subject: Re: [onap-discuss] [AAI] Unable to add "getQueryList" namedquery


Hi Jimmy,


I got the following XML  as output for GET 
"/aai/v11/service-design-and-creation/models/model/80b712fd-0ad3-4180-a99c-8c995cf1cc32"



<?xml version="1.0" encoding="UTF-8"?>
<model xmlns="http://org.openecomp.aai.inventory/v11";>
    
<model-invariant-id>80b712fd-0ad3-4180-a99c-8c995cf1cc32</model-invariant-id>
    <model-type>widget</model-type>
    <resource-version>1516667644133</resource-version>
</model>

Attached the POSTMAN screenshots


Best Regards
Bharath T


________________________________
From: FORSYTH, JAMES <[email protected]>
Sent: Tuesday, January 23, 2018 3:11 AM
To: bharath thiruveedula; [email protected]; KAJUR, HARISH V
Subject: Re: [AAI] Unable to add "getQueryList" namedquery


Hi, Bharath,



If you do a search for 
/aai/v11/service-design-and-creation/models/model/80b712fd-0ad3-4180-a99c-8c995cf1cc32,
 what do you get?



Thanks,

jimmy



From: bharath thiruveedula <[email protected]>
Date: Sunday, January 21, 2018 at 10:54 PM
To: "[email protected]" <[email protected]>, HARISH V KAJUR 
<[email protected]>, "FORSYTH, JAMES" <[email protected]>
Subject: [AAI] Unable to add "getQueryList" namedquery



Hi AAI team,



I am trying to setup development environment of AAI using 
"https://wiki.onap.org/pages/viewpage.action?pageId=10782088<https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__wiki.onap.org_pages_viewpage.action-3FpageId-3D10782088%26d%3DDwMFAw%26c%3DLFYZ-o9_HUMeMTSQicvjIg%26r%3DOej6QUk5p2KdqNEWySpOHA%26m%3DPzIk9jeOPSkmW0vqKe7uqDOVlgLLyZMNSSZxEjvwshI%26s%3DvBT75eIRqTvGIB5BJ1dOYUtKnhf7ZEsO3puP5Fn-VZw%26e%3D&data=02%7C01%7C%7C2ca14eef57274b297b0308d561e0eeb4%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636522541058130344&sdata=dRq%2FlWWZsWOFWYGGk01LLHYEq10ZcqRmTawH0gwU5fo%3D&reserved=0>".
 I ran AddWidgets json in the POSTMAN. But while adding "getQueryList" 
namedquery, i got the following error:



2018-01-22T03:43:22.143+0000|2018-01-22T03:43:22.182+0000|36935cd3-8724-4ff3-9540-a1410be9c511||qtp564413599-33||PUT
 
/aai/v11/service-design-and-creation/named-queries/named-query/0367193e-c785-4d5f-9cb8-7bc89dc9ddb7|jimmy-postman|ERROR|404|Error
 making edge to target node:3003:Not Found:Node of type model. Could not find 
object at: 
/service-design-and-creation/models/model/80b712fd-0ad3-4180-a99c-8c995cf1cc32||WARN||127.0.1.1|0|bharath-hp||org.onap.aai.rest.LegacyMoxyConsumer|||||||co=:Rolling
 back Titan transaction



I have checked the model corresponding to named-query , it exists. Do I missing 
anything here?





Best Regards

Bharath T














_______________________________________________
onap-discuss mailing list
[email protected]
https://lists.onap.org/mailman/listinfo/onap-discuss

Reply via email to