ClassCastException with XMLRPC call to get ArrayList
<p>I've got a problem with ClassCastException - maybe you could please suggest something ? I'm trying to get response from server via XMLRPC and get a CCE.</p>

<p>Here`s how I call it:</p>

<pre><code>Object[] filesList = new Object[] { 
    new Object[] {"somefile.txt", lengthOfThatFile},  
    new Object[] {"somefile2.txt", lengthOfThatFile2}
};    

ArrayList&lt;Object[]&gt; filesResent = (ArrayList&lt;Object[]&gt;) client.call("someserv.checkwhattoresend", userClientID, filesList);
</code></pre>

<p>That last line throws an exception: </p>

<pre><code>09-11 16:14:33.953: ERROR/AndroidRuntime(389): java.lang.ClassCastException: [Ljava.lang.Object;
</code></pre>

<p>Procedure checkwhattoresend looks like this:</p>

<pre><code>public List&lt;Object[]&gt; checkwhattoresend(String userClientID, Object[] fileInfo) {
    ArrayList&lt;Object[]&gt; results = new ArrayList&lt;Object[]&gt;();
  // doing some stuff
    return results;
}
</code></pre>

<p>There should be no flaws on the server side.</p>

<p><strong>UPDATE. SOLVED AS SIMPLY AS THIS:</strong></p>

<pre><code>Object[] filesResent = (Object[]) client.call("someserv.checkwhattoresend", userClientID, filesList);
</code></pre>
