cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
280
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: Dmitry Silin on 17-07-2013 09:30:41 AM
Hello Developers Team,

We are facing the following issue:

Our environment - 2 Finesse servers (pub and sub)

1. Login into finesse PUB webform with agent login/pass. Using firefox.

2. Install and open Poster plugin in Firefox.

3. Agent in NOT_READY3. In Poster we made PUT

<User><state>READY</state></User>
to http://<PUB_ip_address>/finesse/api/User/7000

User Auth  - Finesse admin credentials.

all other option like on Web Services Guide, page 8.

4. Result - accepted.
5. Next we made PUT request
<User><state>READY</state></User>
to http://<SUB_ip_address>/finesse/api/User/7000
User Auth  - Finesse admin credentials.all other option like on Web Services Guide, page 8.

6. Result - error.

7. If we login agent to SUB and make PUT request to SUB API address with admin credential , all is OK.
If we login agent to SUB and make PUT request to PUB API address with admin credential , ERROR.
Brief: we get an error if make PUT request with admin credentials to another server, than agent is logged in.

Question: Is this normal behavior of Finesse? Or we should get 'Accepted' in all cases?

Thanks in advance.

***********************************************************************
The Error:


<!-- custom Cisco error page --><html> <head> <title> Cisco System - Error report </title> <style type="text/css"> a { color: #316984; text-decoration:none; } a:hover { color: #316984; text-decoration: underline; } a:visted { color: #316984; text-decoration: none; } body { background-attachment: fixed; background-color: #ffffff; background-repeat: no-repeat; color: #316984; font-family:arial,helvetica,sans-serif; } #content { border: 1px solid #d6d7d6; font-size: 93.5%; margin: 0px 10% 30px 10%; } #content-header { background-color: #eeeeee; border-bottom: 1pxsolid #666666; color: #666666; font-size:124.5%; padding: 5px 15px 5px 15px; } #copyright { font-size: 75%; margin: 0px 10%0px 10%; padding: 3px 0px 0px 0px; text-align:right; } img { display: block; margin: 0px 0px 20px 0px; } #logo { margin: 30px 10% 0px 10%; } p { padding:5px 15px 5px 15px; } pre { padding: 5px15px 5px 30px; } </style> </head> <body> <divid="logo"> <img src="/ciscologo.gif" alt="Cisco Systems, Inc." /> </div> <div id="content"> <divid="content-header">HTTP Status 500 - </div> <p> <b> type: </b> Exception report </p> <p> <b>message: </b> </p> <p> <b>description: </b>The server encountered an internal error () that prevented it from fulfillingthis request. </p> <p> <b>exception: </b> <pre>java.lang.ClassCastException:com.cisco.platform.realm.Principal cannot be cast tocom.cisco.ccbu.finesse.realms.FinessePrincipal
com.cisco.ccbu.finesse.cti.service.user.UserValidator.validateValidState(UserValidator.java:80)

com.cisco.ccbu.finesse.cti.service.user.UserValidator.validateUserObject(UserValidator.java:65)

com.cisco.ccbu.finesse.cti.service.user.UserCtiService.validate(UserCtiService.java:71)

com.cisco.ccbu.finesse.api.queuemanager.QueueManager.handleRequestImpl(QueueManager.java:215)

com.cisco.ccbu.finesse.api.queuemanager.QueueManager.handleRequest(QueueManager.java:68)
com.cisco.ccbu.finesse.api.user.UserService.update(UserService.java:135)sun.reflect.GeneratedMethodAccessor642.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutI
nvoker._dispatch(AbstractResourceMethodDispatchProvider.java:184)
com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaM
ethodDispatcher.java:67)
com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:276)

com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:133)

com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:83)

com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:133)

com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:71)


com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:117
1)
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:110
3)
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1053
)
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1043
)
com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:406)

com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:477)

com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:662)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)sun.reflect.GeneratedMethodAccessor329.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:269)java.security.AccessController.doPrivileged(Native Method)javax.security.auth.Subject.doAsPrivileged(Subject.java:517)org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:301)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
java.security.AccessController.doPrivileged(Native Method)
com.cisco.ccbu.finesse.servlet.ElapsedTimeFilter.doFilter(ElapsedTimeFilter.java:117)

com.cisco.ccbu.finesse.servlet.ElapsedTimeFilter.doFilter(ElapsedTimeFilter.java:82)
sun.reflect.GeneratedMethodAccessor604.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:269)java.security.AccessController.doPrivileged(Native Method)javax.security.auth.Subject.doAsPrivileged(Subject.java:517)org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:301)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:243)
</pre> </p> <p> <b>note:</b> The full stack trace of the root cause is available in thelogs. </p> </div> </body></html>

Subject: RE: About PUT request.
Replied by: Dmitry Silin on 17-07-2013 09:40:37 AM
...and one rectification: of cource before any PUT request to READY we shift agent to NOT_READY (with web_form).
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links