org.apache.commons.beanutils.ConversionException: No value specified for 'Date'

Kuali JIRA | Andrew Lubbers | 5 years ago
  1. 0

    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.

    Kuali JIRA | 5 years ago | Andrew Lubbers
    org.apache.commons.beanutils.ConversionException: No value specified for 'Date'
  2. 0

    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.

    Kuali JIRA | 5 years ago | Andrew Lubbers
    org.apache.commons.beanutils.ConversionException: No value specified for 'Date'
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    java.lang.BigDecimal?

    Coderanch | 1 decade ago | Ashok Mash
    org.apache.commons.beanutils.ConversionException: No value specified at org.apache.commons.beanutils.converters.BigDecimalConverter.convert (BigDecimalConverter.java:148)
  5. 0

    AppFuse - User - throw org.apache.commons.beanutils.ConversionException: No value specified

    nabble.com | 1 month ago
    org.apache.commons.beanutils.ConversionException: No value specified

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.commons.beanutils.ConversionException

      No value specified for 'Date'

      at org.apache.commons.beanutils.converters.AbstractConverter.handleMissing()
    2. Apache Commons BeanUtils
      BeanUtils.copyProperties
      1. org.apache.commons.beanutils.converters.AbstractConverter.handleMissing(AbstractConverter.java:310)
      2. org.apache.commons.beanutils.converters.AbstractConverter.convert(AbstractConverter.java:136)
      3. org.apache.commons.beanutils.converters.ConverterFacade.convert(ConverterFacade.java:60)
      4. org.apache.commons.beanutils.BeanUtilsBean.convert(BeanUtilsBean.java:1078)
      5. org.apache.commons.beanutils.BeanUtilsBean.copyProperty(BeanUtilsBean.java:437)
      6. org.apache.commons.beanutils.BeanUtilsBean.copyProperties(BeanUtilsBean.java:286)
      7. org.apache.commons.beanutils.BeanUtils.copyProperties(BeanUtils.java:137)
      7 frames
    3. org.kuali.student
      EnumerationManagementServiceImpl.getEnumeratedValues
      1. org.kuali.student.core.enumerationmanagement.service.impl.util.EnumerationAssembler.toEnumeratedValueInfo(EnumerationAssembler.java:57)
      2. org.kuali.student.core.enumerationmanagement.service.impl.util.EnumerationAssembler.toEnumeratedValueList(EnumerationAssembler.java:84)
      3. org.kuali.student.core.enumerationmanagement.service.impl.EnumerationManagementServiceImpl.getEnumeratedValues(EnumerationManagementServiceImpl.java:150)
      3 frames