We have a custom class that implements 'PomActionProcessor'. When we access the 'GetContactAttributeValueFromList' method, we get the following error message:
Start - GetContactAttributeValueFromList - Client. Time is java.lang.ClassCastException: org.apache.http.impl.client.InternalHttpClient cannot be cast to org.apache.commons.httpclient.HttpClient
at org.apache.axis2.transport.http.impl.httpclient3.HTTPSenderImpl.getHttpClient(HTTPSenderImpl.java:782)
at org.apache.axis2.transport.http.impl.httpclient3.HTTPSenderImpl.sendViaPost(HTTPSenderImpl.java:176)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:121)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:403)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:234)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:431)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:399)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:150)
at com.avaya.pim.services.agentapi.client.VP_POMAgentAPIServiceStub.getContactAttributeValueFromList(VP_POMAgentAPIServiceStub.java:1659)
at com.avaya.pim.services.agentapi.client.AgentAPIClient.GetContactAttributeValueFromList(AgentAPIClient.java:372)
at encuestaTiempo_XXX.EncuestaTiempo_XXX.processContact(EncuestaTiempo_XXX.java:85)
at com.avaya.pim.cmpmgr.ApplicationCustom.execute(ApplicationCustom.java:155)
at com.avaya.pim.cmpmgr.CustomAction.invoke(CustomAction.java:81)
at com.avaya.pim.cmpmgr.Action.execute(Action.java:2250)
at com.avaya.pim.cmpmgr.StateHandler.processContact(StateHandler.java:168)
at com.avaya.pim.cmpmgr.StateWorkerThread.run(StateWorkerThread.java:240)
org.apache.http.impl.client.InternalHttpClient cannot be cast to org.apache.commons.httpclient.HttpClient
This is our code:
AgentAPIClient obj = new AgentAPIClient("localhost", USER_EPM, PASS_EPM, 120000);
//get Contact Attribute
//Obtener del POM fecha de carga, tiempo restringido, sesion
String FechaImport = obj.GetContactAttributeValueFromList(pomInfo.getContactId(), pomInfo.getContactGroupName(), "Fecha_carga");
What could be the cause of this error message?
Thank you!!
|