List Info

Thread: Regular errors




Regular errors
user name
2006-07-25 10:19:58
Hi all!

I am using xmlrpc 3.0b1 quite extensively the last week, but
I must say
that it throws quite a lot of exceptions, quite regularly. 

I am not pushing the protocol with like 100 calls per
second, but I have
something like 5 calls per second in the worst case.


Exceptions I get a lot:

On the server
******************************************************

25-jul-2006 12:02:57
org.apache.xmlrpc.server.XmlRpcStreamServer execute
SEVERE: execute: Error while performing request
org.apache.xmlrpc.XmlRpcException: Failed to parse XML-RPC
request: The
root element is required in a well-formed document.
	at
org.apache.xmlrpc.server.XmlRpcStreamServer.getRequest(XmlRp
cStreamServe
r.java:66)
	at
org.apache.xmlrpc.server.XmlRpcStreamServer.execute(XmlRpcSt
reamServer.j
ava:181)
	at
org.apache.xmlrpc.webserver.Connection.run(Connection.java:1
75)
	at
org.apache.xmlrpc.util.ThreadPool$MyThread.runTask(ThreadPoo
l.java:71)
	at
org.apache.xmlrpc.util.ThreadPool$MyThread.run(ThreadPool.ja
va:87)
Caused by:
org.xml.sax.SAXParseException: The root element is required
in a
well-formed document.
	at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.
java:1213)
	at
org.apache.xerces.framework.XMLDocumentScanner.reportFatalXM
LError(XMLDo
cumentScanner.java:570)
	at
org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispat
cher.endOfIn
put(XMLDocumentScanner.java:790)
	at
org.apache.xerces.framework.XMLDocumentScanner.endOfInput(XM
LDocumentSca
nner.java:418)
	at
org.apache.xerces.validators.common.XMLValidator.sendEndOfIn
putNotificat
ions(XMLValidator.java:712)
	at
org.apache.xerces.readers.DefaultEntityHandler.changeReaders
(DefaultEnti
tyHandler.java:1031)
	at
org.apache.xerces.readers.XMLEntityReader.changeReaders(XMLE
ntityReader.
java:168)
	at
org.apache.xerces.readers.UTF8Reader.changeReaders(UTF8Reade
r.java:182)
	at
org.apache.xerces.readers.UTF8Reader.lookingAtChar(UTF8Reade
r.java:197)
	at
org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispat
cher.dispatc
h(XMLDocumentScanner.java:686)
	at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XML
DocumentScan
ner.java:381)
	at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1
098)
	at
org.apache.xmlrpc.server.XmlRpcStreamServer.getRequest(XmlRp
cStreamServe
r.java:60)
	at
org.apache.xmlrpc.server.XmlRpcStreamServer.execute(XmlRpcSt
reamServer.j
ava:181)
	at
org.apache.xmlrpc.webserver.Connection.run(Connection.java:1
75)
	at
org.apache.xmlrpc.util.ThreadPool$MyThread.runTask(ThreadPoo
l.java:71)
	at
org.apache.xmlrpc.util.ThreadPool$MyThread.run(ThreadPool.ja
va:87)
************************************************************
********



While this gives at the client
*************************************

[Fatal Error] :-1:-1: Premature end of file.
Exception: org.apache.xmlrpc.client.XmlRpcClientException:
Failed to
parse servers response: Premature end of file.

************************************************************
********




Another exception which is thrown quite often is:

On the server
******************************************************

25-jul-2006 12:14:07 org.apache.xmlrpc.webserver.WebServer
log
SEVERE: GET
org.apache.xmlrpc.webserver.Connection$BadRequestException:
GET
	at
org.apache.xmlrpc.webserver.Connection.getRequestConfig(Conn
ection.java:
139)
	at
org.apache.xmlrpc.webserver.Connection.run(Connection.java:1
71)
	at
org.apache.xmlrpc.util.ThreadPool$MyThread.runTask(ThreadPoo
l.java:71)
	at
org.apache.xmlrpc.util.ThreadPool$MyThread.run(ThreadPool.ja
va:87)
************************************************************
********


Can you maybe tell me what the limits of the protocol are?
Or what causes these errors and if there might be a solution
or
workaround?

Greetz
p.


------------------------------------------------------------
---------
To unsubscribe, e-mail: xmlrpc-user-unsubscribews.apache.org
For additional commands, e-mail: xmlrpc-user-helpws.apache.org

Regular errors
user name
2006-07-25 11:27:28
Hi,

I am sorry, but I am unable to guess any reason for your
problems. On
the other hand, you don't provide sufficient information.

First of all, a general guideline: If you are using the
thing with so
much load, then I'd definitely recommend that you use a
fully blown
servlet engine like Tomcat or Jetty and not the Webserver
class.
However, the problems may as well be caused by the general
XML-RPC
framework and not by the Webserver class.

Do you have the possibility to install a packet sniffer like
Wireshark
(Ethereal) on the machine? If so, I suggest that you trace
the network
traffic. If so, you can use a line like

> 25-jul-2006 12:02:57
org.apache.xmlrpc.server.XmlRpcStreamServer execute

to identify a request which has caused the error by using
the
timestamp. The important question is whether the client has
sent well
formed XML or not.


> While this gives at the client
*************************************
>
> [Fatal Error] :-1:-1: Premature end of file.
> Exception:
org.apache.xmlrpc.client.XmlRpcClientException: Failed to
> parse servers response: Premature end of file.

Same question here.


> 25-jul-2006 12:14:07
org.apache.xmlrpc.webserver.WebServer log
> SEVERE: GET
>
org.apache.xmlrpc.webserver.Connection$BadRequestException:
GET

And again.



-- 
Whenever you find yourself on the side of the
majority, it is time to pause and reflect.
(Mark Twain)

------------------------------------------------------------
---------
To unsubscribe, e-mail: xmlrpc-user-unsubscribews.apache.org
For additional commands, e-mail: xmlrpc-user-helpws.apache.org

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )