Hessian serialization is indeed a prime suspect. Let's open a bug report - it should be easy to build a test case using "org.objectstyle.cayenne.remote.hessian.service.HessianUtil".

Andrus

On May 24, 2006, at 1:31 AM, Marcin Skladaniec wrote:

I'm using Derby and cayenne 3t.
When I try to save a BigDecimal with scale set I'm getting an exception on client:

com.caucho.hessian.io.HessianProtocolException:
at com.caucho.hessian.client.HessianProxy.invoke (HessianProxy.java)
        at $Proxy2.processMessage(Unknown Source)
at org.objectstyle.cayenne.remote.hessian.HessianConnection.doSendMessage (HessianConnection.java:176) at org.objectstyle.cayenne.remote.BaseConnection.sendMessage (BaseConnection.java:109) at org.objectstyle.cayenne.remote.ClientChannel.send (ClientChannel.java:279) at org.objectstyle.cayenne.remote.hessian.HessianConnection.doSendMessage (HessianConnection.java:181) at org.objectstyle.cayenne.remote.ClientChannel.onSync (ClientChannel.java:188) at org.objectstyle.cayenne.remote.BaseConnection.sendMessage (BaseConnection.java:109) at org.objectstyle.cayenne.CayenneContext.doCommitChanges (CayenneContext.java:233) at org.objectstyle.cayenne.remote.ClientChannel.send (ClientChannel.java:279) at org.objectstyle.cayenne.CayenneContext.commitChanges (CayenneContext.java:220) at org.objectstyle.cayenne.remote.ClientChannel.onSync (ClientChannel.java:188) at com.ish.angel.controller.EditController.saveRecord (EditController.java:366) at org.objectstyle.cayenne.CayenneContext.doCommitChanges (CayenneContext.java:233)
...

There are no exceptions on server, what probably means the problem is with serializing of the BigDecimal.

When the scale is not set everything works just fine.
Have anyone seen this problem before ?

Marcin

-------------------------->
ish
http://www.ish.com.au
Level 1, 30 Wilson Street Newtown 2042 Australia
phone +61 2 9550 5001   fax +61 2 9550 4001




Reply via email to