cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2115
Views
5
Helpful
2
Replies

Prime 3.5 API error

mabarone
Cisco Employee
Cisco Employee

Hi all,

customer is requesting info from Prime (version 3.5) with API /webacs/api/v4/data/ClientDetails
After several good responses they get error with a record with Enum value

Error reported in logs:

"Caused by: com.cisco.xmp.web.query.PersistenceException: errorId=12,componentName=CRUD Error Exception while invoking valueOf method 'getEnum' of enumeration class 'class com.cisco.ncs.nbi.client.ClientApModeEnum'"

Could you help to solve this type of error?
Thanks

Maria

1 Accepted Solution

Accepted Solutions

Alexander Onnikov
Cisco Employee
Cisco Employee
Hi Maria,

This is a known issue that has been fixed in 3.5.1.
Here is our internal defect id for this: CSCvn63394

Thanks,
Alexander

View solution in original post

2 Replies 2

Alexander Onnikov
Cisco Employee
Cisco Employee
Hi Maria,

This is a known issue that has been fixed in 3.5.1.
Here is our internal defect id for this: CSCvn63394

Thanks,
Alexander

I'm having the same issue in cisco 3.8.0. Is this a known issue?

As you can see, in this case as well the query only fails after a few successful queries (we have a pagination in place), it seems it always fails on the same page (when we query the first result 18000). Could this be a single problematic client?

This is the full error:

<ClientResponse(https://156.72.162.11:443/webacs/api/v4/data/ClientDetails.json?.full=true&.maxResults=250&.firstResult=18000) [500 ]>
<CIMultiDictProxy('Cache-Control': 'private', 'Expires': 'Thu, 01 Jan 1970 00:00:00 GMT', 'Set-Cookie': 'JSESSIONID=FE96CB742C5C8DFA1EDE4F83432B04DF; Path=/webacs; Secure; HttpOnly', 'Strict-Transport-Security': 'max-age=31622400; includeSubDomains', 'X-XSS-Protection': '1; mode=block', 'X-Content-Type-Options': 'nosniff', 'Content-Security-Policy': "default-src 'self' wss: https: data: 'unsafe-inline' 'unsafe-eval'", 'X-NBI-TIME': '359', 'X-Frame-Options': 'SAMEORIGIN', 'Date': 'Sun, 04 Apr 2021 10:27:48 GMT', 'Server-Timing': 'filters;dur=4;desc="Servlet filters"', 'Server-Timing': 'security;dur=924;desc="Authentication and authorization"', 'Server-Timing': 'cxf;dur=2;desc="CXF"', 'Server-Timing': 'nbi;dur=7;desc="NBI framework"', 'Server-Timing': 'db;dur=352;desc="Database access"', 'Server-Timing': 'marshalling;dur=0;desc="Response marshalling"', 'Server-Timing': 'total;dur=1289;desc="Total time"', 'Content-Type': 'application/json', 'Content-Length': '577', 'Connection': 'close', 'Server': 'Prime')>
{"errorDocument":{"httpResponseCode":500,"httpMethod":"GET","message":"errorId=12,componentName=CRUD Error Exception while invoking valueOf method 'getEnum' of enumeration class 'class com.cisco.ncs.nbi.client.SecurityPolicyEnum'","exception":"com.cisco.xmp.web.query.PersistenceException: errorId=12,componentName=CRUD Error Exception while invoking valueOf method 'getEnum' of enumeration class 'class com.cisco.ncs.nbi.client.SecurityPolicyEnum'","uriPath":"data/ClientDetails","queryParams":"{.full=[true], .maxResults=[250], .firstResult=[18000]}","domain":"ROOT-DOMAIN"}}