On Wed, 31 Jul 2002, Dr. Klemens Waldh�r wrote:

> Hi,
> 
> I have written a Perl module which - basoed on the Frontier::Client
> module realises all the methods available in the Xindice XMLRPC module.
> The problem I have now is that in case of exceptions thrown the module
> (resp. The calling application) terminates with a Java error. See below:
> 
> Fault returned from XML RPC Server, fault code 0: java.lang.Exception:
> java.lang
> .Exception: Collection name must begin with a '/'
> 
> (I do not understand this error anyway as the collection givenis
> supplied with staring '/', but anyway ...).
> 
> Now this behaviour is obviously something which does not like if using
> the module. I tried to catch this in an eval block, but it did not work.
> 
> Any idea how I can resolve this so that the module methods return an
> error code instead ?

I don't know about the Frontier module in particular, but the eval SHOULD 
work. You could try 
http://sourceforge.net/projects/xml-simpledb
or at least the driver for Xindice in that (XML/DB/Database/Xindice.pm)
which uses RPC::XML (with calls wrapped in evals) and see if that gives
you the same problem. The driver is for Xindice1.0, NOT the version in 
CVS. Though in my case, I'm not converting the exceptions to error codes,
simply passing them up the chain by die-ing again after they've been 
caught.

Graham
(As far as I know, no-one but me has ever used this package so you are 
very likely to find other things wrong with it. If you do, please mail me
off-list, so as not to clutter up the lists!)



Reply via email to