QueueMetrics > Scripting QueueMetrics

XML-RPC- Can't Find xmlrpc.do

<< < (2/4) > >>

smileyphase:
QueueMetrics is working - I can log in, run reports (as the reports user, too), etc...
There's nothing that happens in the catalina.out or localhost_log file.[date] when I run the php app and get a 200 error. I'm running QM on port 8099 (apparently there's a PBX in a Flash conflict with 8080) - the script has this as the port parameter. I've tried it on port 8080 on a system without the conflict.

My report user is running with all user keys (including master key=yes), the account is enabled (I can log in and run reports via the GUI), and is of class ROBOTS.
I've given the ROBOT user class the following keys:

--- Quote ---USER USR_MYSQL REALTIME RTLIVE QUEUE_AN AGREP ROBOT CHPASSWD SUPERVISOR QA_REPORT USR_REPORTS
--- End quote ---

I've tried this with a barebones installation, QM 1.6.1.1 and on a QM 1.6.0.3, and get the same error.


--- Quote ------GOT---
HTTP/1.1 404 /queuemetrics-1.6.1.1/xmlrpc.do
Content-Type: text/html;charset=utf-8
Content-Length: 1045
Date: Tue, 10 Aug 2010 01:17:29 GMT
Server: Apache-Coyote/1.1
Connection: close

<html><head><title>Apache Tomcat/5.0.28 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - /queuemetrics-1.6.1.1/xmlrpc.do</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>/queuemetrics-1.6.1.1/xmlrpc.do</u></p><p><b>description</b> <u>The requested resource (/queuemetrics-1.6.1.1/xmlrpc.do) is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/5.0.28</h3></body></html>
---END---

Fault Code: 5 Fault Reason: Didn't receive 200 OK from remote server. (HTTP/1.1 404 /queuemetrics-1.6.1.1/xmlrpc.do)
--- End quote ---

Any other thoughts?
Thanks,
-SP

QueueMetrics:
Yes - are you sure your web.xml file is correct? because that's where the *.do associations are mapped to the servlet. It looks like Tomcat does not know what to do with the .do request....
 

smileyphase:
I'm using the default value:


--- Code: ---<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>
<!-- L O W A Y   R E S E A R C H ' s  Q U E U E M E T R I C S -->

    <servlet>
        <servlet-name>
            LowayTransactionController
        </servlet-name>
        <servlet-class>
            it.loway.tpf.transaction.servlets.LowayTransactionController
        </servlet-class>

        <init-param>
            <param-name>LICENZA_ARCHITETTURA</param-name>
            <param-value>.....</param-value>
        </init-param>

        <init-param>
            <param-name>START_TRANSACTION</param-name>
            <param-value>qm_start</param-value>
        </init-param>
        
        <init-param>
            <param-name>JDBC_DRIVER</param-name>
            <param-value>com.mysql.jdbc.Driver</param-value>
        </init-param>

        <init-param>
            <param-name>JDBC_URL</param-name>        
            <param-value>jdbc:mysql://localhost/queuemetrics?autoReconnect=true&amp;zeroDateTimeBehavior=convertToNull&amp;jdbcCompliantTruncation=false&amp;user=queuemetrics&amp;password=javadude</param-value>
        </init-param>

        <init-param>
            <param-name>SMTP_HOST</param-name>
            <param-value>smtp.myhost</param-value>
        </init-param>

        <init-param>
            <param-name>SMTP_AUTH</param-name>
            <param-value>true</param-value>
        </init-param>

        <init-param>
            <param-name>SMTP_USER</param-name>
            <param-value>xxxx</param-value>
        </init-param>

        <init-param>
            <param-name>SMTP_PASSWORD</param-name>
            <param-value>xxxxx</param-value>
        </init-param>

    </servlet>


    <servlet-mapping>
        <servlet-name>LowayTransactionController</servlet-name>
        <url-pattern>/tpf</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>LowayTransactionController</servlet-name>
        <url-pattern>*.do</url-pattern>
    </servlet-mapping>


    <session-config>
        <session-timeout>30</session-timeout>
    </session-config>

    <error-page>
        <exception-type>java.lang.Throwable</exception-type>
        <location>/sys_errore.jsp</location>
    </error-page>
    
</web-app>

--- End code ---

QueueMetrics:
Try and run:


--- Code: ---wget -O- http://my.qm.server:8080/queuemetrics/xmlrpc.do
--- End code ---

and report what you get.
Did you install using yum or manually?

BTW, when I send a request, I get some lines on the /usr/local/queuemetrics/tomcat/logs/catalina.out file like:


--- Code: ---[1B28E449CB8A988ABFD8F20828250399] 201008130943 Tempo totale esecuzione verbo 'xmlrpc': 1430 ms
--- End code ---

Do you see anything?

I also get:


--- Code: --- cat /usr/local/queuemetrics/tomcat/logs/localhost_log.2010-08-13.txt
2010-08-13 09:43:29 StandardContext[/DAILY]LowayTransactionController: [7A555398F6C4BE2D2A0A2637C9559385] 201008130943 Tempo totale esecuzione verbo 'xmlrpc': 72 ms

--- End code ---

smileyphase:
I installed via yum. I get a result, too:


--- Quote ---root@pbx:~ $ wget -O- http://210.120.1.194:8099/queuemetrics/xmlrpc.do
--2010-08-13 11:59:36--  http://210.120.1.194:8099/queuemetrics/xmlrpc.do
Connecting to 210.120.1.194:8099... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1 [text/xml]
Saving to: `STDOUT'

 0% [                                       ] 0           --.-K/s             
100%[======================================>] 1           --.-K/s   in 0s     

2010-08-13 11:59:36 (119 KB/s) - `-' saved [1/1]

--- End quote ---


I also see errors in the logs (which I don't see if I invoke the sample php script)...


--- Quote ---2010-08-13 12:01:11 StandardContext[/queuemetrics]LowayTransactionController: [E66DE036DEF916BE371D0740AB2910B2] 201008131201 Tempo totale esecuzione verbo 'xmlrpc': 17 ms
*** DBVER:20
*** Esce 3
REQUEST:

[Fatal Error] :-1:-1: Premature end of file.
redstone.xmlrpc.XmlRpcException: A problem occured during parsing
        at redstone.xmlrpc.XmlRpcParser.parse(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:93)
        at it.loway.tpf.transaction.servlets.LowayTransactionController.runVerb(LowayTransactionController.java:255)
        at it.loway.tpf.transaction.servlets.LowayTransactionController.serveRequest(LowayTransactionController.java:543)
        at it.loway.tpf.transaction.servlets.LowayTransactionController.serveRequestWrapper(LowayTransactionController.java:365)
        at it.loway.tpf.transaction.servlets.LowayTransactionController.doGet(LowayTransactionController.java:210)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
        at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
        at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
        at java.lang.Thread.run(Thread.java:619)
Caused by: org.xml.sax.SAXParseException: Premature end of file.
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        ... 34 more
[E66DE036DEF916BE371D0740AB2910B2] 201008131201 Tempo totale esecuzione verbo 'xmlrpc': 17 ms

--- End quote ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version