saving BigDecimal with scale issue

From: Marcin Skladaniec (marci..sh.com.au)
Date: Wed May 24 2006 - 01:31:10 EDT

  • Next message: Marcin Skladaniec: "Re: database trigger"

    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



    This archive was generated by hypermail 2.0.0 : Wed May 24 2006 - 01:31:44 EDT