cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcin Skladaniec <mar...@ish.com.au>
Subject saving BigDecimal with scale issue
Date Wed, 24 May 2006 05:31:10 GMT
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



Mime
View raw message