org.apache.commons.beanutils.ConversionException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • java.lang.BigDecimal?
    via by Ashok Mash,
  • If any of the reference data EnumeratedValue entities are attempted to be fetched from the database (using EnumerationManagementService.getEnumeratedValues, for example), the following error results: org.apache.commons.beanutils.ConversionException: No value specified for 'Date' at org.apache.commons.beanutils.converters.AbstractConverter.handleMissing(AbstractConverter.java:310) at org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:136) at org.apache.commons.beanutils.converters.ConverterFacade.convert(ConverterFacade.java:60) at org.apache.commons.beanutils.BeanUtilsBean.convert(BeanUtilsBean.java:1078) at org.apache.commons.beanutils.BeanUtilsBean.copyProperty(BeanUtilsBean.java:437) at org.apache.commons.beanutils.BeanUtilsBean.copyProperties(BeanUtilsBean.java:286) at org.apache.commons.beanutils.BeanUtils.copyProperties(BeanUtils.java:137) at org.kuali.student.core.enumerationmanagement.service.impl.util.EnumerationAssembler.toEnumeratedValueInfo(EnumerationAssembler.java:57) at org.kuali.student.core.enumerationmanagement.service.impl.util.EnumerationAssembler.toEnumeratedValueList(EnumerationAssembler.java:84) at org.kuali.student.core.enumerationmanagement.service.impl.EnumerationManagementServiceImpl.getEnumeratedValues(EnumerationManagementServiceImpl.java:150) This behavior can be repeated if you modify the EnumerationServiceImplTest and change one of the expiration dates to null in the "testFetchEnumeratedValue" method. The BeanUtils.copyProperty method needs to have a default value for java.util.Date properties that are set when the origin bean has a null value for the property. Or the assembler could be modified to copy properties one at a time via getters/setters.
    via by Andrew Lubbers,
  • If any of the reference data EnumeratedValue entities are attempted to be fetched from the database (using EnumerationManagementService.getEnumeratedValues, for example), the following error results: org.apache.commons.beanutils.ConversionException: No value specified for 'Date' at org.apache.commons.beanutils.converters.AbstractConverter.handleMissing(AbstractConverter.java:310) at org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:136) at org.apache.commons.beanutils.converters.ConverterFacade.convert(ConverterFacade.java:60) at org.apache.commons.beanutils.BeanUtilsBean.convert(BeanUtilsBean.java:1078) at org.apache.commons.beanutils.BeanUtilsBean.copyProperty(BeanUtilsBean.java:437) at org.apache.commons.beanutils.BeanUtilsBean.copyProperties(BeanUtilsBean.java:286) at org.apache.commons.beanutils.BeanUtils.copyProperties(BeanUtils.java:137) at org.kuali.student.core.enumerationmanagement.service.impl.util.EnumerationAssembler.toEnumeratedValueInfo(EnumerationAssembler.java:57) at org.kuali.student.core.enumerationmanagement.service.impl.util.EnumerationAssembler.toEnumeratedValueList(EnumerationAssembler.java:84) at org.kuali.student.core.enumerationmanagement.service.impl.EnumerationManagementServiceImpl.getEnumeratedValues(EnumerationManagementServiceImpl.java:150) This behavior can be repeated if you modify the EnumerationServiceImplTest and change one of the expiration dates to null in the "testFetchEnumeratedValue" method. The BeanUtils.copyProperty method needs to have a default value for java.util.Date properties that are set when the origin bean has a null value for the property. Or the assembler could be modified to copy properties one at a time via getters/setters.
    via by Andrew Lubbers,
  • Re: Bigdecimal conversion error : urgent
    via by Unknown author,
    • org.apache.commons.beanutils.ConversionException: No value specified at org.apache.commons.beanutils.converters.BigDecimalConverter.convert (BigDecimalConverter.java:148) at org.apache.commons.beanutils.BeanUtils.copyProperty(BeanUtils.java:447) at org.apache.commons.beanutils.BeanUtils.copyProperties(BeanUtils.java:264)

    Users with the same issue

    Unknown visitor1 times, last one,