Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315546 - com.caucho.hessian.io.HessianFieldException cause when deserialization
Summary: com.caucho.hessian.io.HessianFieldException cause when deserialization
Status: RESOLVED DUPLICATE of bug 296834
Alias: None
Product: Riena
Classification: RT
Component: communication (show other bugs)
Version: 1.2.0   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-03 05:25 EDT by KwanKin Yau CLA
Modified: 2010-06-10 05:38 EDT (History)
1 user (show)

See Also:


Attachments
Common types bundles (4.03 KB, application/octet-stream)
2010-06-03 05:25 EDT, KwanKin Yau CLA
no flags Details
The server side code. (2.36 KB, application/octet-stream)
2010-06-03 05:25 EDT, KwanKin Yau CLA
no flags Details
The client side code (2.63 KB, application/octet-stream)
2010-06-03 05:26 EDT, KwanKin Yau CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***