Jay Roy
asked on
error on serialization
hi guys
I am using Oracle Coherence as my distibuted cache
On a high level what i do is get a reference to the cache and set the values to it like:
now when the above process runs i get this error
Error during processing StaffCacheLoad(Wrapped) com.eway.model.Staff; local class incompatible: stream classdesc serialVersionUID = 4247448966215819804, local class serialVersionUID = 1
(Wrapped) java.io.InvalidClassExcept ion: com.eway.model.Staff; local class incompatible: stream classdesc serialVersionUID = 4247448966215819804, local class serialVersionUID = 1
trying to understand why i get this error
Any ideas will be appreciated
thanks
I am using Oracle Coherence as my distibuted cache
On a high level what i do is get a reference to the cache and set the values to it like:
import com.tangosol.net.NamedCache;
public class StaffCacheLoad{
NamedCache namedCacheReference = CacheFactory.getCache("staffMap");//staffMap cache is defined in coherence
Map myMap = new HashMap<Staff>()
for (Staff obj : staffList) {
myMap.put(obj.getId(),obj.getDesc())
}
namedCacheReference.putAll(myMap);
..
}
public class Staff implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
id
desc
get()
set()
now when the above process runs i get this error
Error during processing StaffCacheLoad(Wrapped) com.eway.model.Staff; local class incompatible: stream classdesc serialVersionUID = 4247448966215819804, local class serialVersionUID = 1
(Wrapped) java.io.InvalidClassExcept
trying to understand why i get this error
Any ideas will be appreciated
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks