Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Scott B

Pages: [1] 2
1
Saw this shiny new feature on the What's New page, scoured the manuals (notably the 7.2. Calls being processed section, which highlights that new item), QueueMetrics User Manual: chapter 6.1.13 (Music on Hold by agent), 6.1.13. OK13 - Music On Hold by Agent, and browsed through 23 "Configuring Asterisk for QueueMetrics"  in its entirety. I'm not super familiar with configuring Queuemetrics or Asterisk, so be gentle. I'm r'ing the f'ing m!

2
Not I get this error in Firefox when trying to launch it after it hangs for 15 seconds or so:

Error raised: Error: Unable to call "QM.stats". Server responsed with error (code -1): java.lang.OutOfMemoryError: Java heap space

3
Ahh I see I had to manually enable to robot account. Now we're getting somewhere!

4
Question: do you have the RPC library from Google installed?
In such cases, I suggest using TCPDUMP to see what is going on....


Yes, I have the RPC library installed. I wouldn't even know how to apply tcpdump to this issue; I am doing some reading and understand the premis but do not know how it would help me troubleshoot the error I'm getting.

5
You need to serve the example from the same container, e.g. Tomcat, that is serving QM.

You could invoke the file as:

Code: [Select]
http://myserver:8080/jstest/mypage.html
and you could have QM available as

Code: [Select]
http://myserver:8080/queuemetrics/
In this case you would set the

Code: [Select]
var server = "/queuemetrics/xmlrpc.do";

Great. I made the appropriate changes to my test file and re-uploaded but I still receive the same message.

(edit: genuine use of the word great here. I really appreciate all the help you guys provide on here.)

6
Any ideas? The only part of it I really don't understand is the 

var server = "/DAILY/xmlrpc.do"

and searching xmlrpc.do in the pdf manual for the xmlrpc interface is just references to it in other examples in the other languages, with differing syntax. Any ideas?

7
Hey, I created a test.html with the following code and dropped the rpc.js into the same diretory as frontPage.jsp in my brand-spanking newly updated 1.7.0 Queuemetrics:

<html>
<head>
<title>test.html</title>
<script src="rpc.js"></script>
</head>
<body>
<h1>QueueMetrics JavaScript XML-RPC example </h1>
<script>
var server = "/DAILY/xmlrpc.do";
function run() {
try {
var service = new rpc.ServiceProxy( server, {
asynchronous:false,
protocol: "XML-RPC",
methods: ["QM.stats", "QM.realtime", "QM.auth"]
} );
res = service.QM.stats( "q1", "robot", "robot","", "",
"2005-10-10.10:23:12", "2009-10-10.10:23:10","",
[ "KoDO.DiscCauses", "CallDistrDO.AnsDistrPerDay" ]
);
document.getElementById("RESULT").innerHTML = plotBlocks(res);
} catch(e) {
alert("Error raised: " + e);
}
}
function plotBlocks( hmBlocks ) {
s = "";
for (var i in hmBlocks) {
s += "<h2>Block: " + i + "</h2>";
s += plotBlock( hmBlocks );
}
return s;
}
function plotBlock( arBlock ) {
s = "";
for ( r =0; r < arBlock.length; r++ ) {
s += "<tr>";
for ( c = 0; c < arBlock[r].length; c++ ) {
s += "<td>" + arBlock[r][c] + "</td>";
}
s += "</tr>";
}
return "<table border=1>" + s + "</table>";
}
</script>
<input type="button" value="Click me!" onclick="run();" >
<div id="RESULT"></div>
</body>

</html>



and I get the following error once I click "Click me!"

Block: result

Status   ERR
Description   -- Inner Exception -- Exception: it.loway.tpf.common.exceptions.UserException Stack trace: The user cannot login: 'robot' at it.loway.app.queuemetrics.autenticazione.effettuaLogOn.doRun(effettuaLogOn.java:92) at it.loway.app.queuemetrics.xmlrpc.tpfServer.runClass(tpfServer.java:910) at it.loway.app.queuemetrics.xmlrpc.tpfServer.stats(tpfServer.java:168) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at redstone.xmlrpc.handlers.ReflectiveInvocationHandler.execute(Unknown Source) at redstone.xmlrpc.handlers.ReflectiveInvocationHandler.invoke(Unknown Source) at redstone.xmlrpc.XmlRpcDispatcher.dispatch(Unknown Source) at redstone.xmlrpc.XmlRpcServer.execute(Unknown Source) at it.loway.app.queuemetrics.xmlrpc.tpfServer.doRun(tpfServer.java:91) at it.loway.tpf.transaction.servlets.LowayTransactionController.runVerb(LowayTransactionController.java:262) at it.loway.tpf.transaction.servlets.LowayTransactionController.serveRequest(LowayTransactionController.java:552) at it.loway.tpf.transaction.servlets.LowayTransactionController.serveRequestWrapper(LowayTransactionController.java:373) at it.loway.tpf.transaction.servlets.LowayTransactionController.doPost(LowayTransactionController.java:224) at javax.servlet.http.HttpServlet.service(HttpServlet.java:647) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:619) -- End Inner Exception --
Time elapsed (ms)   19
QM Version   1.7.0.0

8
It looks like there is a misalignment between the JSP pages and the backend classes. This is rare, and usually solved by deleting tomcat's compilation directory - see here: http://queuemetrics.com/faq.jsp#faq-076-error_after_upgrade

Good call, I actually figured this out myself eventually poking around your faqs. Thank you for your response  :)

9
Ok, I just get the above posted error on the frontPage.jsp. Once I am logged in, if I surf directly to live_agent.jsp or realtime_view.jsp they seem to work fine. Some of my agents even after logging in are unable to retain functionality on live_agent.jsp.

10
Now, after replacing my backup, which has fixed any issues in the past I have run across when updating, I get the following error:

java.lang.NoClassDefFoundError: it/loway/app/queuemetrics/autenticazione/ExpWarning

-- Inner Exception --
Exception: java.lang.NoClassDefFoundError
Error:
it/loway/app/queuemetrics/autenticazione/ExpWarningStack trace:
java.lang.NoClassDefFoundError: it/loway/app/queuemetrics/autenticazione/ExpWarning
   at org.apache.jsp.frontPage_jsp._jspService(frontPage_jsp.java:659)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
   at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
   at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
   at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: it.loway.app.queuemetrics.autenticazione.ExpWarning
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1386)
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)
   at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:125)
   at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:63)
   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
   ... 21 more
-- End Inner Exception --

11
So THEN what I do, is I delete my entire webapp directory, drop the 1.6.3.0 back in there, copy the configuration.properties and web.xml, restart tomcat, and now it immediately recognizes that I need to update the database, but then when I click start this happens:


"[JSP] javax.servlet.ServletException - -- Inner Exception -- Exception: javax.servlet.ServletException Error: it.loway.app.queuemetrics.autenticazione.start.initOggettiContesto(Ljavax/servlet/http/HttpSession;Ljavax/servlet/ServletContext;)VStack trace: javax.servlet.ServletException: it.loway.app.queuemetrics.autenticazione.start.initOggettiContesto(Ljavax/servlet/http/HttpSession;Ljavax/servlet/ServletContext;)V at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:841) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:774) at org.apache.jsp.dbtest.dbtestWizard1_jsp._jspService(dbtestWizard1_jsp.java:408) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:619) -- End Inner Exception -- "
System time when the error occurred: 2011-03-18.13:42:20

12
Interestingly enough, its still showing my version as 1.6.0.1 if I mouseover the Queuemetrics logo.

13
Hi, just tried updating from 1.6.0.1 to 1.6.3.0. I followed the directions, copied the files over, replaced the web.xml and configuration.properties from my old version, copied the mysql connector and restarted tomcat (and apache for that matter.) Also I ran the dbtest updater and it all came up green lights. Some pages are working, the logo switched to "your logo here" but pages like Show License Information, or if you click to pause or unpause yourself it throws:

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 34 in the jsp file: /includes/00_page_header_context.jsp.inc
The method initOggettiContesto(HttpSession, ServletContext) in the type start is not applicable for the arguments (HttpSession, ServletContext, String)
31:     // 1. Ottiene gli oggetti impliciti
32:     //    Se non esistono, li va a creare
33:
34:     start.initOggettiContesto( session, application, request.getHeader("Accept-Language") );
35:     LContext oC = (LContext) session.getAttribute( K.SESSION_CONTESTO );
36:     LDecoder oDec = (LDecoder) session.getAttribute( K.SESSION_DECODER );
37:     LUser oU = (LUser) session.getAttribute( K.SESSION_USER );


Stacktrace:
   org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)
   org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
   org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:451)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:319)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
   org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.28 logs.

14
The XML-RPC interface is the correct one - whatever is displayed in QM reports or real-time or QA page can be tunneled to a machine-friendly environment.


Even the Log on, Log off, Pause, and Unpause buttons?

15
Also, wrong sub-forum?

Pages: [1] 2