jnan77 / jsonrpc4j

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

Objects in collections are not converted to POJOs from MapElements #55

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create Service interface which will return List of some POJOs
2. call it with JsonRpcHttpClient
3. try to iterate over the list and print this POJO

What is the expected output? What do you see instead?
Expected: String representation of POJO
I see instead: java.lang.ClassCastException: java.util.LinkedHashMap cannot be 
cast to POJO

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

Original issue reported on code.google.com by pavel.finkelshtein on 8 Apr 2013 at 3:45

GoogleCodeExporter commented 8 years ago
It's problem of Jackson. Google "jackson generics collection" to find more.

Original comment by Alex.Dor...@gmail.com on 11 Jun 2013 at 3:21