Author Topic: XML-RPC stopped working after update?  (Read 2532 times)

mrothrock

  • Newbie
  • *
  • Posts: 25
  • Karma: 1
    • View Profile
XML-RPC stopped working after update?
« on: August 18, 2016, 17:49:57 »
I just updated to queuemetrics-15.10.6-20 from 15.02 and all my XML-RPC scripts stopped working.  All I did was yum update, nothing else.

I receive this -- Fault Code: 2 Fault Reason: Invalid return payload: enable debugging to examine incoming payload

Debug doesn't really tell me anything:

---SENT---
POST /queuemetrics/xmlrpc.do HTTP/1.0
User-Agent: PEAR XML_RPC
Host: 10.32.24.32
Content-Type: text/xml
Content-Length: 661

QM.realtime
8001|8003|
robot
robot

RealtimeDO.RTCallsBeingProc
RealtimeDO.RTAgentsLoggedIn
RealtimeDO.RTRiassunto

---END---
---GOT---
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=6D30C3D7EA983C3F3C2980AE0E7BB6F7; Path=/queuemetrics
Content-Type: text/xml;charset=UTF-8
Content-Length: 1
Date: Thu, 18 Aug 2016 15:49:16 GMT
Connection: close


Any ideas? Thank you

mrothrock

  • Newbie
  • *
  • Posts: 25
  • Karma: 1
    • View Profile
Re: XML-RPC stopped working after update?
« Reply #1 on: August 18, 2016, 19:09:02 »
It is almost identical to this old post -- http://forum.queuemetrics.com/index.php?topic=974.0

I also did a wget on my local xmlrpc.do and received the same results as that guy:

[root@x]# wget -O- http://x:8080/queuemetrics/xmlrpc.do
--2016-08-18 10:05:36--  http://x:8080/queuemetrics/xmlrpc.do
Connecting to x:8080... 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     

2016-08-18 10:05:36 (186 KB/s) - written to stdout [1/1]


my XML-RPC pages return results as noted in previous note

mrothrock

  • Newbie
  • *
  • Posts: 25
  • Karma: 1
    • View Profile
Re: XML-RPC stopped working after update?
« Reply #2 on: August 18, 2016, 19:44:38 »
And a bit of the catalina.log

Quote
redstone.xmlrpc.XmlRpcException: Could not instantiate XMLReader parser
        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:182)
        at it.loway.tpf.transaction.servlets.LowayTransactionController.runVerb(LowayTransactionController.java:151)
        at it.loway.tpf.transaction.servlets.LowayTransactionController.processClassicSynchronizedRequest(LowayTransactionController.java:467)
        at it.loway.tpf.transaction.servlets.LowayTransactionController.serveRequest(LowayTransactionController.java:338)
        at it.loway.tpf.transaction.servlets.LowayTransactionController.serveRequestWrapper(LowayTransactionController.java:268)
        at it.loway.tpf.transaction.servlets.LowayTransactionController.doPost(LowayTransactionController.java:105)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:662)

mrothrock

  • Newbie
  • *
  • Posts: 25
  • Karma: 1
    • View Profile
Re: XML-RPC stopped working after update?
« Reply #3 on: August 18, 2016, 20:08:36 »
One last note, if I yum downgrade queuemetrics-15.10.3-1029

Everything works fine again.

mrothrock

  • Newbie
  • *
  • Posts: 25
  • Karma: 1
    • View Profile
Re: XML-RPC stopped working after update?
« Reply #4 on: August 19, 2016, 15:08:58 »
I fixed the issue after a brief email exchange this morning with support.  It seems that in 15.10.6-20 a file called "xerces.jar" in the WEB-INF/lib was not included anymore.  I copied this file from the older rpm into the new one and XML-RPC works again as expected.