This content has been marked as final. Show 3 replies
What is the code that causes the error? What version of Coherence are you using?
I can serialize/deserialize the date you have without seeing any problems. For example...
The above code works fine when I ran it with Coherence 220.127.116.11
Calendar c = Calendar.getInstance(); c.set(9999, Calendar.JANUARY, 1); Date d = c.getTime(); ConfigurablePofContext pofContext = new ConfigurablePofContext("coherence-pof-config.xml"); Binary b = ExternalizableHelper.toBinary(d, pofContext); Date d2 = (Date) ExternalizableHelper.fromBinary(b, pofContext); System.out.println(d2);
If I have a class that implements PortableObject with a date field set to 1/1/9999 this also serializes without any problems.
I bumped into this problem a while ago. It is a known bug in 3.6, here's my original post.
POF Serializer, problems with large dates
I never tried the 3.6.1 patch, which may fix your issue. As JK points out all is fine in 3.7.