Author Topic: wombat dialer agent page  (Read 6706 times)

Drazyck

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
    • Email
wombat dialer agent page
« on: August 18, 2015, 17:56:18 »
Hola, estoy intentando usar la pagina de agente de wombat dialer tal y como dice en la documentación :

ip_servidro:8080/wombat/agents/rd_pop.jsp?agent=SIP/826

Pero me da error de tomcat:

HTTP Status 500 - An exception occurred processing JSP page /agents/rd_pop.jsp at line 55 52: parms.put("op", "reserve"); 53: parms.put("agent", agent); 54: 55: String[] resLines = AgentsPopupHelper.httpPostToLines(apiReserve, parms); 56: 57: String code = resLines[0]; 58: if (code.equalsIgnoreCase("OK: OK")) { Stacktrace:

Saludos

Loway Espanol

  • Loway
  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
    • Email
Re: wombat dialer agent page
« Reply #1 on: August 19, 2015, 14:46:42 »
Hola Drazick,
  al parecer el mensaje no es completo; podrías por favor postarlo nuevamente en su totalidad ?
Muchas gracias.

Drazyck

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
    • Email
Re: wombat dialer agent page
« Reply #2 on: August 20, 2015, 10:23:52 »
Ésto es lo que sigue al error:

type Exception report

message An exception occurred processing JSP page /agents/rd_pop.jsp at line 55 52: parms.put("op", "reserve"); 53: parms.put("agent", agent); 54: 55: String[] resLines = AgentsPopupHelper.httpPostToLines(apiReserve, parms); 56: 57: String code = resLines[0]; 58: if (code.equalsIgnoreCase("OK: OK")) { Stacktrace:

description The server encountered an internal error (An exception occurred processing JSP page /agents/rd_pop.jsp at line 55 52: parms.put("op", "reserve"); 53: parms.put("agent", agent); 54: 55: String[] resLines = AgentsPopupHelper.httpPostToLines(apiReserve, parms); 56: 57: String code = resLines[0]; 58: if (code.equalsIgnoreCase("OK: OK")) { Stacktrace:) that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: An exception occurred processing JSP page /agents/rd_pop.jsp at line 55

52:                 parms.put("op", "reserve");
53:                 parms.put("agent", agent);
54:
55:                 String[] resLines = AgentsPopupHelper.httpPostToLines(apiReserve, parms);
56:
57:                 String code = resLines[0];
58:                 if (code.equalsIgnoreCase("OK: OK")) {


Stacktrace:
   org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:455)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
root cause

javax.servlet.ServletException: java.net.ConnectException: Connection timed out
   org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:911)
   org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:840)
   org.apache.jsp.agents.rd_005fpop_jsp._jspService(rd_005fpop_jsp.java:439)
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
root cause

java.net.ConnectException: Connection timed out
   ch.loway.app.wombat.web.agents.AgentsPopupHelper.httpConnector(AgentsPopupHelper.java:106)
   ch.loway.app.wombat.web.agents.AgentsPopupHelper.httpPostToLines(AgentsPopupHelper.java:116)
   org.apache.jsp.agents.rd_005fpop_jsp._jspService(rd_005fpop_jsp.java:112)
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.28 logs.


QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: wombat dialer agent page
« Reply #3 on: August 21, 2015, 10:38:40 »
Hello there,
try doing this cahnge to the page:

Before you see
Code: [Select]
String[] resLines = AgentsPopupHelper.httpPostToLines(apiReserve, parms);
Change it to:
Code: [Select]
System.out.println( "API RESERVE:" + apiReserve);
String[] resLines = AgentsPopupHelper.httpPostToLines(apiReserve, parms);

This will write a line to stdout (catalina.out) with the URL it is trying to access.
Can you post it here?

Loway Espanol

  • Loway
  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
    • Email
Re: wombat dialer agent page
« Reply #4 on: August 21, 2015, 14:21:42 »
Hola nuevamente,
como indicado en la respuesta anterior te pedimos que cambie en la pagina:

Antes: [Select]

String[] resLines = AgentsPopupHelper.httpPostToLines(apiReserve, parms);


Cambiar a: [Select]

System.out.println( "API RESERVE:" + apiReserve);
String[] resLines = AgentsPopupHelper.httpPostToLines(apiReserve, parms);


Esto va a mostrar una nueva linea en el stdout (catalina.out) con la URL que está intentando acceder.
Podrías postear la salida aquí ?

Gracias.

Drazyck

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
    • Email
Re: wombat dialer agent page
« Reply #5 on: August 24, 2015, 10:20:08 »
Hola nuevamente,
como indicado en la respuesta anterior te pedimos que cambie en la pagina:

Antes: [Select]

String[] resLines = AgentsPopupHelper.httpPostToLines(apiReserve, parms);


Cambiar a: [Select]

Aquí tenéis los logs:
Mode:reserve withExtSt
API RESERVE:http://83.170.83.216:8080/wombat/api/reserve/
Aug 24, 2015 10:16:34 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [jsp] in context with path [/wombat] threw exception [An exception occurred processing JSP page /agents/rd_pop.jsp at line 55

52:                 parms.put("op", "reserve");
53:                 parms.put("agent", agent);
54:                 System.out.println( "API RESERVE:" + apiReserve);
55:                 String[] resLines = AgentsPopupHelper.httpPostToLines(apiReserve, parms);
56:
57:                 String code = resLines[0];
58:                 if (code.equalsIgnoreCase("OK: OK")) {


Stacktrace:] with root cause
java.net.ConnectException: Connection timed out
        at ch.loway.app.wombat.web.agents.AgentsPopupHelper.httpConnector(AgentsPopupHelper.java:106)
        at ch.loway.app.wombat.web.agents.AgentsPopupHelper.httpPostToLines(AgentsPopupHelper.java:116)
        at org.apache.jsp.agents.rd_005fpop_jsp._jspService(rd_005fpop_jsp.java:112)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
(END)






System.out.println( "API RESERVE:" + apiReserve);
String[] resLines = AgentsPopupHelper.httpPostToLines(apiReserve, parms);


Esto va a mostrar una nueva linea en el stdout (catalina.out) con la URL que está intentando acceder.
Podrías postear la salida aquí ?

Gracias.

Drazyck

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
    • Email
Re: wombat dialer agent page
« Reply #6 on: September 08, 2015, 16:57:33 »
any updated please???

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: wombat dialer agent page
« Reply #7 on: September 28, 2015, 14:05:16 »
How was WombatDialer installed? because it works fine in our RPMs. Maybe you are using Tomcat 8?

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: wombat dialer agent page
« Reply #8 on: December 04, 2015, 18:49:53 »
I was able to reproduce the issue.


Thanks that helped.
The problem seems to be that Wombat itself tries to connect to itself using the supplied URL, but that does not really work on your box.

What I did was that I edited the file agents/rd_pop.jsp forcing the URL to be 127.0.0.1:

Code: [Select]
String localUrl = HttpUtils.getRequestURL(request).toString();
localUrl = "http://127.0.0.1:8080/wombat/agents/rd_pop.jsp";

Now it appears like it's working.
As a general solution, I wonder whether we should add a parameter so that one can specify a local base URL.