Hi Jimmy,

 

Following is the request:

 

curl -X PUT \

  
https://159.138.133.80:30233/aai/v13/service-design-and-creation/services/service/a61fef2b-61fa-40b7-bf03-d4db08d11eee
 \

  -H 'Accept: application/json' \

  -H 'Authorization: Basic QUFJOkFBSQ==' \

  -H 'Cache-Control: no-cache' \

  -H 'Content-Type: application/json' \

  -H 'Postman-Token: fa571cde-0440-42ba-b9e0-a0387ea85732' \

  -H 'X-FromAppId: VFC-NFVO-LCM' \

  -H 'X-TransactionId: 9999' \

  -d '{

"service-description":"service-description"

}'

 

 

 

The error log is:

 

root@aai-resources:/opt/app/aai-resources/logs/rest# tail -f 
error.log.2019-09-09

 

2019-09-09T17:52:10.008+0000|32299bbd-0af3-4f79-a97a-11d19821a896|qtp1219402581-198918|PUT
 
/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne|robot-ete|DB|process
 PUT|ERROR|500|Internal Error:3002:Internal Server 
Error:java.lang.IndexOutOfBoundsException: Index: 0, Size: 
0|co=robot-ete:java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 root 
cause=java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 ClassName- 
java.util.ArrayList :LineNumber- 657 :MethodName- rangeCheck ClassName- 
java.util.ArrayList :LineNumber- 433 :MethodName- get ClassName- 
org.onap.aai.rest.LegacyMoxyConsumer :LineNumber- 705 :MethodName- handleWrites 
ClassName- org.onap.aai.rest.LegacyMoxyConsumer :LineNumber- 114 :MethodName- 
update ClassName- sun.reflect.GeneratedMethodAccessor72 :LineNumber- -1 
:MethodName- invoke ClassName- sun.reflect.DelegatingMethodAccessorImpl 
:LineNumber- 43 :MethodName- invoke ClassName- java.lang.reflect.Method 
:LineNumber- 498 :MethodName- invoke ClassName- 
org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1
 :LineNumber- 81 :MethodName- invoke ClassName- 
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1
 :LineNumber- 144 :MethodName- run ClassName- 
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher 
:LineNumber- 161 :MethodName- invoke

 

 

BR,

Yan

发件人: FORSYTH, JAMES [mailto:[email protected]] 
发送时间: 2019年9月10日 20:10
收件人: Yan Yang; [email protected]; 'Keong Lim'
主题: Re: [AAI]When create service in A&AI get the IndexOutOfBoundsException

 

Hi, Yan,

 

Can you provide logs from the aai-resources microservice, and include the 
payload you are sending with the PUT?

 

Thanks,

jimmy

 

From: Yan Yang <[email protected]>
Date: Tuesday, September 10, 2019 at 6:53 AM
To: "[email protected]" <[email protected]>, 'Keong Lim' 
<[email protected]>, "FORSYTH, JAMES" <[email protected]>
Subject: [AAI]When create service in A&AI get the IndexOutOfBoundsException

 

Hi all,

 

When we create service in AAI using the following url, we got the 
IndexOutOfBoundsException error, please help. Thanks.

 

https://159.138.133.80:30233/aai/v13/service-design-and-creation/services/service/a61fef2b-61fa-40b7-bf03-d4db08d11eee
 
<https://urldefense.proofpoint.com/v2/url?u=https-3A__159.138.133.80-3A30233_aai_v13_service-2Ddesign-2Dand-2Dcreation_services_service_a61fef2b-2D61fa-2D40b7-2Dbf03-2Dd4db08d11eee&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=Oej6QUk5p2KdqNEWySpOHA&m=4E_lW5qyb50nHNZV5NBsQ-qXZ-UxEV_ZK_LYVilLljg&s=vl3OiWTCU4SWKOaoKVI3os7DEHtdDvcyP4mfaF5jvQc&e=>
 

 

 

{

    "requestError": {

        "serviceException": {

            "messageId": "SVC3002",

            "text": "Error writing output performing %1 on %2 (msg=%3) (ec=%4)",

            "variables": [

                "PUT",

                
"v13/service-design-and-creation/services/service/a61fef2b-61fa-40b7-bf03-d4db08d11eee",

                "Internal Error:java.lang.IndexOutOfBoundsException: Index: 0, 
Size: 0",

                "ERR.5.4.4000"

            ]

        }

    }

}

 

 

BR,

Yan


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#18884): https://lists.onap.org/g/onap-discuss/message/18884
Mute This Topic: https://lists.onap.org/mt/34092304/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to