Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 315546

Summary: com.caucho.hessian.io.HessianFieldException cause when deserialization
Product: [RT] Riena Reporter: KwanKin Yau <alphax>
Component: communicationAssignee: Project Inbox <riena.communication-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: alphax
Version: 1.2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Common types bundles
none
The server side code.
none
The client side code none

Description KwanKin Yau CLA 2010-06-03 05:25:06 EDT
Created attachment 170923 [details]
Common types bundles

The exception message:
============================
com.caucho.hessian.client.HessianRuntimeException: com.caucho.hessian.io.HessianFieldException: alphax.db.types.Record.updateState: alphax.db.types.ItemPointer ((0,1)) cannot be assigned to net.yau.lib.UpdateState


The condition:
=============================
1.The transferred object contains a java.sql.Timestamp field and the field is not null.
2.The service method return a list contains more then 2 element.


The example service prototype:

public interface IService {

	List<EntRec> listReturn1Record();
	List<EntRec> listReturn2Record();
	List<EntRec> listReturn2RecordButTimestampIsNull();
	
}

When the server return just 1 the invocation is OK. 
When the server return more EntRecs, and if the Timestamp field is not null, it failed, and if the Timestamp field is null, it is OK.
Comment 1 KwanKin Yau CLA 2010-06-03 05:25:43 EDT
Created attachment 170924 [details]
The server side code.
Comment 2 KwanKin Yau CLA 2010-06-03 05:26:05 EDT
Created attachment 170925 [details]
The client side code
Comment 3 Christian Campo CLA 2010-06-10 05:38:31 EDT
I think the bug is related to this bug 296834 which was fixed in Riena 2.0.0.M5 (after the Riena 1.2.0 that you are using). Look in the related bug. It might help to just change the hessian lib underneath. A better solution is to update to Riena 2.0.0.RC4 which is pretty stable now.

I am closing this bug as duplicate. If you still experience a problem, please reopen this bug (do not file a new one but reopen this one).

thanks
christian

*** This bug has been marked as a duplicate of bug 296834 ***