action2013 / hessdroid

Automatically exported from code.google.com/p/hessdroid
0 stars 0 forks source link

class cast exception #12

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hessian service on the server returns a list of Nodes. The Node class is 
implemented exactly on the client side. When I make the remote call, the 
function returns a list of HashMap instead of a list of Nodes. It is wierd 
though there is no exception when the output is cast to ArrayList<Node> but the 
problem arises when I try to iterate through the list, then I get class cast 
exception.

What steps will reproduce the problem?
1. On the server side create a function that will return a list 
(ArrayList<Node>) of some object, say Node
2. On the client side do the remote call and try to access the ArrayList content
3. You get class cast exception

What is the expected output? What do you see instead?

We should see no exception, a runtime exception is thrown root cause being the 
class cast exception.

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by faysalba...@gmail.com on 19 Oct 2011 at 1:08