Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 81228 invoked from network); 14 Aug 2008 13:22:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Aug 2008 13:22:44 -0000 Received: (qmail 77168 invoked by uid 500); 14 Aug 2008 13:22:34 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 77145 invoked by uid 500); 14 Aug 2008 13:22:34 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 77134 invoked by uid 99); 14 Aug 2008 13:22:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Aug 2008 06:22:34 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mgainty@hotmail.com designates 65.55.111.99 as permitted sender) Received: from [65.55.111.99] (HELO blu0-omc2-s24.blu0.hotmail.com) (65.55.111.99) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Aug 2008 13:21:35 +0000 Received: from BLU142-W31 ([65.55.111.73]) by blu0-omc2-s24.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 14 Aug 2008 06:21:42 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_a24adc04-4d14-4dcd-92aa-4a6412c20980_" X-Originating-IP: [66.31.231.79] From: Martin Gainty To: Struts Users Mailing List Subject: RE: Hibernate UserType and OGNL Date: Thu, 14 Aug 2008 09:21:41 -0400 Importance: Normal In-Reply-To: <9f960bad0808140519k953cdb6m22611f98c6a68be9@mail.gmail.com> References: <48A42207.9040709@microlution.de> <9f960bad0808140519k953cdb6m22611f98c6a68be9@mail.gmail.com> MIME-Version: 1.0 X-OriginalArrivalTime: 14 Aug 2008 13:21:42.0581 (UTC) FILETIME=[B1319E50:01C8FE10] X-Virus-Checked: Checked by ClamAV on apache.org --_a24adc04-4d14-4dcd-92aa-4a6412c20980_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Lukasz- relvant doc located at http://www.docjar.com/docs/api/com/opensymphony/xwork2/conversion/impl/Inst= antiatingNullHandler.html what is the value of property named ReflectionContextState#CREATE_NULL_OBJE= CTS ? so coding the constructor fixes the problem in which case your Null object = is a simple bean as suggested here If the null property is a simple bean with a no-arg constructor=2C it will = simply be created using the ObjectFactory#buildBean(java.lang.Class=2C java= .util.Map) method.? dziekuje Martin=20 ______________________________________________=20 Disclaimer and confidentiality note=20 Everything in this e-mail and any attachments relates to the official busin= ess of Sender. This transmission is of a confidential nature and Sender doe= s not endorse distribution to any party other than intended recipient. Send= er does not necessarily endorse content contained within this transmission.= =20 > Date: Thu=2C 14 Aug 2008 14:19:59 +0200 > From: lukasz.lenart@googlemail.com > To: user@struts.apache.org > Subject: Re: Hibernate UserType and OGNL >=20 > > ( also tried: key=3D"bid.amount.amount" /> ) >=20 > This is correct >=20 > > public Monetary getAmount() { return amount=3B } > > > > and Monetary beeing: > > public class Monetary implements Serializable{ > > private final BigDecimal amount=3B > > private final Currency currency=3B > > > > public Monetary(BigDecimal amount=2C Currency currency) { > > this.amount =3D amount=3B > > this.currency =3D currency=3B > > } > > > > public BigDecimal getAmount() { return amount=3B } > > public Currency getCurrency() { return currency=3B } > > > > I am getting either a field error or with "bid.amount.amount" : > > ERROR [btpool0-2] InstantiatingNullHandler.nullPropertyValue(110) | Cou= ld > > not create and/or set value back on to object > > java.lang.InstantiationException: com.app.model.Monetary >=20 > Add default constructor to Monetary and will be ok >=20 >=20 > Regards > --=20 > Lukasz > http://www.lenart.org.pl/ >=20 > --------------------------------------------------------------------- > To unsubscribe=2C e-mail: user-unsubscribe@struts.apache.org > For additional commands=2C e-mail: user-help@struts.apache.org >=20 _________________________________________________________________ Get Windows Live and get whatever you need=2C wherever you are. Start here= . http://www.windowslive.com/default.html?ocid=3DTXT_TAGLM_WL_Home_082008= --_a24adc04-4d14-4dcd-92aa-4a6412c20980_--