Running XmlRpcClient from an applet

2002-02-19 Thread Stuart Roll
Greetings - I got a nasty little suprise when I tried to use XML-RPC from within an unsigned applet. The XmlRpcClient's worker threads are instances of XmlRpc and XmlRpc.parse() contains the following code: if (parserClass == null) { // try to get the name of the SAX driver fr

Re: Running XmlRpcClient from an applet

2002-02-19 Thread John Wilson
You want to use Xerces in an applet! Hope you've got plenty of bandwidth;) John Wilson The Wilson Partnership http://www.wilson.co.uk - Original Message - From: "Stuart Roll" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 19, 2002 3:24 PM Subject: Running XmlRpcClien

Re: XmlRpcServer found un-streamy

2002-02-19 Thread John Wilson
- Original Message - From: "Daniel Rall" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 18, 2002 11:10 PM Subject: Re: XmlRpcServer found un-streamy [snip] > > 1. It might be reasonable to perform two passes over the result > > object, one to compute the content len

Re: [patch] catalina base64, optimizations and code cleanup

2002-02-19 Thread John Wilson
Have you done any performance testing on this new code? Historically we had quite a bit of problems with people reporting very poor performance with large (multi megabyte) Base64 values (Yes, people do do this sort of thing with XML-RPC!). I think Hannes did some tuning work on the old code. John

Re: [patch] catalina base64, optimizations and code cleanup

2002-02-19 Thread Jon Scott Stevens
on 2/19/02 11:47 AM, "John Wilson" <[EMAIL PROTECTED]> wrote: > Have you done any performance testing on this new code? Historically we had > quite a bit of problems with people reporting very poor performance with > large (multi megabyte) Base64 values (Yes, people do do this sort of thing > wit

cvs commit: xml-rpc/src/java/org/apache/xmlrpc XmlRpcServer.java

2002-02-19 Thread dlr
dlr 02/02/19 12:41:35 Modified:src/java/org/apache/xmlrpc XmlRpcServer.java Log: getWorker() now prints a warning when 95% of the workers are in use if debug is on. Revision ChangesPath 1.12 +6 -1 xml-rpc/src/java/org/apache/xmlrpc/XmlRpcServer.java

cvs commit: xml-rpc/src/java/org/apache/xmlrpc XmlRpcServer.java

2002-02-19 Thread dlr
dlr 02/02/19 12:43:26 Modified:src/java/org/apache/xmlrpc XmlRpcServer.java Log: JavaDoc formatting for 80 columns. Revision ChangesPath 1.13 +25 -15xml-rpc/src/java/org/apache/xmlrpc/XmlRpcServer.java Index: XmlRpcServer.java

Re: [patch] catalina base64, optimizations and code cleanup

2002-02-19 Thread John Wilson
- Original Message - From: "Jon Scott Stevens" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 19, 2002 8:03 PM Subject: Re: [patch] catalina base64, optimizations and code cleanup [snip] > My decision to use Catalina' code is based entirely on the fact that > Catal

Re: [patch] catalina base64, optimizations and code cleanup

2002-02-19 Thread Jon Scott Stevens
on 2/19/02 12:46 PM, "John Wilson" <[EMAIL PROTECTED]> wrote: >> My decision to use Catalina' code is based entirely on the fact that >> Catalina is *by far* the most used piece of software on Jakarta. Something >> like 100-200,000 downloads/week. If the Base64 implementation sucked, it >> would

Re: [patch] catalina base64, optimizations and code cleanup [off list]

2002-02-19 Thread John Wilson
- Original Message - From: "Daniel Rall" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 19, 2002 9:02 PM Subject: Re: [patch] catalina base64, optimizations and code cleanup > "John Wilson" <[EMAIL PROTECTED]> writes: > > >> At CollabNet, we aren't passing binary da

cvs commit: xml-rpc/src/java/org/apache/xmlrpc XmlRpcProxyServlet.java

2002-02-19 Thread dlr
dlr 02/02/19 14:13:48 Modified:src/java/org/apache/xmlrpc XmlRpcProxyServlet.java Log: JavaDoc formatting for 80 columns. Revision ChangesPath 1.2 +3 -4 xml-rpc/src/java/org/apache/xmlrpc/XmlRpcProxyServlet.java Index: XmlRpcProxyServlet.java ==

Re: [patch] catalina base64, optimizations and code cleanup [off list]

2002-02-19 Thread John Wilson
Apologies to all - this was intended to be an off list reply. I'm *really* embarrassed to have screwed this up. John Wilson The Wilson Partnership http://www.wilson.co.uk

cvs commit: xml-rpc/src/java/org/apache/xmlrpc XmlRpcServer.java

2002-02-19 Thread jon
jon 02/02/19 14:20:10 Modified:src/java/org/apache/xmlrpc XmlRpcServer.java Log: no functional changes. just code cleanup s/debug/XmlRpc.debug -jon Revision ChangesPath 1.14 +121 -99 xml-rpc/src/java/org/apache/xmlrpc/XmlRpcServer.java Index: Xm

Re: [patch] catalina base64, optimizations and code cleanup [offlist]

2002-02-19 Thread Jon Scott Stevens
on 2/19/02 2:12 PM, "John Wilson" <[EMAIL PROTECTED]> wrote: > I seem to have offended Jon - I'm trying, off list, to sort this out. I'm > sorry if I have cause problems - it was not my intention. You have not offended me. -jon

cvs commit: xml-rpc/src/java/org/apache/xmlrpc XmlRpcServer.java

2002-02-19 Thread jon
jon 02/02/19 14:23:30 Modified:src/java/org/apache/xmlrpc XmlRpcServer.java Log: brackets make things so much easier to read. they are also part of the java coding conventions. -jon Revision ChangesPath 1.15 +4 -0 xml-rpc/src/java/org/apache/xmlrpc/X

Re: [patch] catalina base64, optimizations and code cleanup

2002-02-19 Thread Daniel Rall
"John Wilson" <[EMAIL PROTECTED]> writes: >> At CollabNet, we aren't passing binary data around over XML-RPC, so >> we won't be hitting that code. > > Yes, but surely Apache XML-RPC is being developed and supported for a wider > audience than CollabNet. Or have I misunderstood something? No, you

cvs commit: xml-rpc/src/java/org/apache/xmlrpc Echo.java

2002-02-19 Thread dlr
dlr 02/02/19 14:39:02 Modified:src/java/org/apache/xmlrpc Echo.java Log: Added documentation. Revision ChangesPath 1.2 +11 -3 xml-rpc/src/java/org/apache/xmlrpc/Echo.java Index: Echo.java ==

cvs commit: xml-rpc/src/test/org/apache/xmlrpc ClientServerRpcTest.java

2002-02-19 Thread dlr
dlr 02/02/19 14:41:37 Modified:src/test/org/apache/xmlrpc ClientServerRpcTest.java Log: Added timing information to testServer(). Revision ChangesPath 1.7 +14 -2 xml-rpc/src/test/org/apache/xmlrpc/ClientServerRpcTest.java Index: ClientServerRpcTest.jav

cvs commit: xml-rpc/src/java/org/apache/xmlrpc XmlRpcServer.java

2002-02-19 Thread jon
jon 02/02/19 14:47:27 Modified:src/java/org/apache/xmlrpc XmlRpcServer.java Log: only execute a Class.forName("java.lang.Object") once -jon Revision ChangesPath 1.16 +13 -2 xml-rpc/src/java/org/apache/xmlrpc/XmlRpcServer.java Index: XmlRpcServer.ja

cvs commit: xml-rpc build.xml

2002-02-19 Thread dlr
dlr 02/02/19 15:01:54 Modified:.build.xml Log: Added a commented-out Xerces JAR to the "test" target's classpath. My unit tests to date have shown MinML to be ~60% faster than Xerces: MinML: Total time elapsed for 3000 iterations: 8646 milliseconds Average ti

cvs commit: xml-rpc/src/java/org/apache/xmlrpc XmlRpcServer.java

2002-02-19 Thread jon
jon 02/02/19 15:05:05 Modified:src/java/org/apache/xmlrpc XmlRpcServer.java Log: removed call to System.currentTimeMillis() unless debugging is on don't use a "".getBytes() to get an empty byte[], pre-allocate it as a static minor code cleanup -jon Revision

cvs commit: xml-rpc/src/test/org/apache/xmlrpc ClientServerRpcTest.java

2002-02-19 Thread dlr
dlr 02/02/19 15:06:14 Modified:src/test/org/apache/xmlrpc ClientServerRpcTest.java Log: Added SAX_DRIVER constant, currently setup to use uk.co.wilson.xml.MinML. This now sets the SAX driver to use in setUp(). Revision ChangesPath 1.8 +20 -2 xml-rpc/sr

cvs commit: xml-rpc build.xml

2002-02-19 Thread jon
jon 02/02/19 15:59:26 Modified:.build.xml Log: for some reason dlr removed the adding of junit to the classpath, however, the task fails to find junit because it isn't in the classpath. we still have the problem of not being able to run junit unless it is in the s

Re: cvs commit: xml-rpc build.xml

2002-02-19 Thread Jason van Zyl
On Tue, 2002-02-19 at 18:59, [EMAIL PROTECTED] wrote: > jon 02/02/19 15:59:26 > > Modified:.build.xml > Log: > for some reason dlr removed the adding of junit to the classpath, > however, the task fails to find junit because it isn't > in the classpath. we still hav

cvs commit: xml-rpc/src/test/org/apache/xmlrpc ClientServerRpcTest.java

2002-02-19 Thread dlr
dlr 02/02/19 17:38:24 Modified:src/test/org/apache/xmlrpc ClientServerRpcTest.java Log: Began implementation of testRpc() -- I'm currently having socket binding problems. Java claims port 8081 is in use when it is not... Revision ChangesPath 1.9 +49 -20x

cvs commit: xml-rpc/src/java/org/apache/xmlrpc XmlRpcServer.java

2002-02-19 Thread dlr
dlr 02/02/19 18:09:41 Modified:src/java/org/apache/xmlrpc XmlRpcServer.java Log: Initialize OBJECT_CLASS in a static block in XmlRpcServer$Invoker (rather than in its ctor). Revision ChangesPath 1.18 +15 -12xml-rpc/src/java/org/apache/xmlrpc/XmlRpcServer.j

cvs commit: xml-rpc/src/java/org/apache/xmlrpc XmlRpcServer.java

2002-02-19 Thread dlr
dlr 02/02/19 18:18:19 Modified:src/java/org/apache/xmlrpc XmlRpcServer.java Log: Moved EMPTY_BYTE_ARRAY constant into Worker inner class (where it is actually used), and reduced its visibility from package-private to private. Revision ChangesPath 1.19 +2 -1

cvs commit: xml-rpc/src/java/org/apache/xmlrpc XmlRpc.java

2002-02-19 Thread dlr
dlr 02/02/19 18:30:38 Modified:src/java/org/apache/xmlrpc XmlRpc.java Log: Worked around problem pointed out by Stuart Roll <[EMAIL PROTECTED]>, where un-signed applets cannot access System properties: o Added DEFAULT_PARSER (currently the fast MinML). o JavaDoc'd pa

cvs commit: xml-rpc/src/java/org/apache/xmlrpc XmlRpc.java

2002-02-19 Thread dlr
dlr 02/02/19 18:40:55 Modified:src/java/org/apache/xmlrpc XmlRpc.java Log: o Used a more change-resistant method of storing MinML's class name. o Added some comments in the setDriver() implementation. Revision ChangesPath 1.20 +8 -1 xml-rpc/src/java/or

Re: Running XmlRpcClient from an applet

2002-02-19 Thread Daniel Rall
Hey Stuart, thanks for the note. I just check code implementing your work-around into CVS. If you'd like to add some sort of factory for parser creation, there would be interested in that. http://jakarta.apache.org/site/source.html Thanks, Dan "Stuart Roll" <[EMA

Re: Running XmlRpcClient from an applet

2002-02-19 Thread Daniel Rall
Daniel Rall <[EMAIL PROTECTED]> writes: > Hey Stuart, thanks for the note. I just check code implementing your > work-around into CVS. If you'd like to add some sort of factory for > parser creation, there would be interested in that. Okay, now I don't always write in English this broken... ;