Thank you Scott!
From: Scott Ferguson
Sent: Thursday, February 13, 2014 6:27 PM
To: hessian-interest@caucho.com
Reply To: Discussion of the Hessian protocol
Subject: Re: [Hessian-interest] Hessian serialization/deserialization :
List<Customer> ==> List<HashMap<K, V>>

On 2/12/14, 8:27 AM, Frank wrote:
Hi,
 
does anybody has a clue how to fix this ?
 
1. We call HessianService. The interface 
 

    public interface CustomerSerivce {

        void updateCustomers(List<Customer>);

}

2. Customer is as simple as
 
   class Customer implements Serializable {
 
        public String customerNo;
        public String rating;
        get ...
        set..
 
    }
 
3. On the receiving side, we get
 
    ArrayList<HashMap<K,V>> where we have 1 entry in ArrayList of type HashMap
    The hashmap has two entries
            
    customerNo=> "cust12344"
    rating    => "Good"
 
 
Why on earth does this happen ?
 
We are using Hessian 4.0.37 on Java 1.7

Normally, that would happen when your receiving end doesn't have the Customer class in the classloader context. If Hessian can't load the Customer class, it will fall back to using HashMaps and ArrayLists.

-- Scott

    
Any suggestions would be highly appreciated
Thanks a lot in advance
Frank


_______________________________________________
hessian-interest mailing list
hessian-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/hessian-interest



_______________________________________________
hessian-interest mailing list
hessian-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/hessian-interest
_______________________________________________
hessian-interest mailing list
hessian-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/hessian-interest

Reply via email to