class cast exception with array return result

2009-10-13 Thread christopher.cooper
I am continuing this from my bug post (sorry). I am having difficulty with an array not being cast properly. I have done what is outlined on here as far as I can tell. http://ws.apache.org/xmlrpc/faq.html#arrays This is the issue I opened for some background info

Re: class cast exception with array return result

2009-10-13 Thread Stanislav Miklik
Hi, you are right, there is a bug in FAQ. the point is, that you can not cast the result of the XML RPC call, in your case return (String []) windows.getInstances(category); is the problem. You have to transform the result to String[] as described in the FAQ (but without the cast in the first

Re: class cast exception with array return result

2009-10-13 Thread Jochen Wiedmann
You are right, Stan. Fixed! On Tue, Oct 13, 2009 at 11:36 PM, Stanislav Miklik stanislav.mik...@gmail.com wrote: Hi, you are right, there is a bug in FAQ. the point is, that you can not cast the result of the XML RPC call, in your case return (String []) windows.getInstances(category);