You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2025/01/07 14:07:01 UTC
[jira] [Updated] (BEANUTILS-41) Provide better error message for "No value specified"
[ https://issues.apache.org/jira/browse/BEANUTILS-41?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary D. Gregory updated BEANUTILS-41:
-------------------------------------
Fix Version/s: 2.0.0-M2
(was: 2.0.0-M1)
> Provide better error message for "No value specified"
> -----------------------------------------------------
>
> Key: BEANUTILS-41
> URL: https://issues.apache.org/jira/browse/BEANUTILS-41
> Project: Commons BeanUtils
> Issue Type: Improvement
> Components: ConvertUtils & Converters
> Environment: Operating System: other
> Platform: Other
> Reporter: Ralf Hauser
> Priority: Major
> Fix For: 2.0.0-M2
>
>
> Got <<org.apache.commons.beanutils.ConversionException: No value specified
> at
> org.apache.commons.beanutils.converters.SqlDateConverter.convert(SqlDateConverter.java:103)
> at
> org.apache.commons.beanutils.BeanUtilsBean.copyProperty(BeanUtilsBean.java:444)
> at
> org.apache.commons.beanutils.BeanUtilsBean.copyProperties(BeanUtilsBean.java:261)
> at
> org.apache.commons.beanutils.BeanUtils.copyProperties(BeanUtils.java:114)>>
>
> Suggestion:
> 1) cite the propName and the bean className
> this probably implies that the interface
> org.apache.commons.beanutils.Converter.convert(Class type, Object value)
> is extended to
> org.apache.commons.beanutils.Converter.convert(Class type, Object value,
> String propName, String beanClassName)
> 2) also cite the concerned class name (probably java.sql.Date)
> 3) mention that there is the possibility to use a default value
--
This message was sent by Atlassian Jira
(v8.20.10#820010)