In ConvertUtil.convert(...) method, instead of calling
BeanUtils.copyProperties(...), try this:

BeanUtilsBean beanUtilsBean = BeanUtilsBean.getInstance();
beanUtilsBean.getConvertUtils().register(
    new org.apache.commons.beanutils.converters.BigDecimalConverter(null),
BigDecimal.class);
beanUtilsBean.getConvertUtils().register(
    new org.apache.commons.beanutils.converters.SqlTimestampConverter(null),
Timestamp.class);
beanUtilsBean.copyProperties(target, o);


Ma, Yong wrote:
> 
> Dear All:
> 
>  
> 
>        I used appfuse 1.9.4 version.add a DeliveryBill modul
> public class DeliveryBill extends BaseObject{
>  
> protected BigDecimal billValue;
> protected Timestamp createDate;
>  
> throw 
> 
> ERROR [http-8080-Processor25] ActionExceptionHandler.logException(145) |
> org.apache.commons.beanutils.ConversionException: No value specified
> 
>         at
> org.apache.commons.beanutils.converters.BigDecimalConverter.convert(BigD
> ecimalConverter.java:103)
> 
>         at
> org.apache.commons.beanutils.BeanUtilsBean.copyProperty(BeanUtilsBean.ja
> va:444)
> 
>         at
> org.apache.commons.beanutils.BeanUtilsBean.copyProperties(BeanUtilsBean.
> java:261)
> 
>         at
> org.apache.commons.beanutils.BeanUtils.copyProperties(BeanUtils.java:114
> )
> 
>         at org.dnhc.util.ConvertUtil.convert(ConvertUtil.java:155)
> 
>         at
> org.dnhc.webapp.action.BaseAction.convert(BaseAction.java:104)
> 
>  
>  
>       Ma Yong
> 
> 

-- 
View this message in context: 
http://www.nabble.com/throw-org.apache.commons.beanutils.ConversionException%3A-No-value-specified-tf4633549s2369.html#a14170080
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to