GenericConversionService.convert() has thrown a ConversionFailedException

java.lang.NumberFormatException
Javadoc
Thrown to indicate that the application has attempted to convert a string to one of the numeric types, but that the string does not have the appropriate format. @author unascribed @see java.lang.Integer#parseInt(String) @since JDK1.0
at java.lang.NumberFormatException.forInputString
(source)
at java.lang.Long.parseLong
(source)
at java.lang.Long.valueOf
(source)
at org.springframework.util.NumberUtils.parseNumber
(source)
at org.springframework.core.convert.support.StringToNumberConverterFactory$StringToNumber.convert
(source)
at org.springframework.core.convert.support.StringToNumberConverterFactory$StringToNumber.convert
(source)
at org.springframework.core.convert.support.GenericConversionService$ConverterFactoryAdapter.convert
(source)
at org.springframework.core.convert.support.ConversionUtils.invokeConverter
(source)
org.springframework.core.convert.ConversionFailedException
Javadoc
Exception to be thrown when an actual type conversion attempt fails. @author Keith Donald @author Juergen Hoeller @since 3.0
at org.springframework.core.convert.support.ConversionUtils.invokeConverter
(source)
at org.springframework.core.convert.support.GenericConversionService.convert
(source)
at org.springframework.core.convert.support.GenericConversionService.convert
(source)
10 frames hidden

Typical Exception Messages

  1. Failed to convert from type [java.lang.String] to type [java.lang.Long] for value 'getSuperNode'; nested exception is java.lang.NumberFormatException: For input string: "getSuperNode"
  2. Failed to convert from type [java.lang.String] to type [java.lang.Long] for value 'NaN'; nested exception is java.lang.NumberFormatException: For input string: "NaN"
  3. Failed to convert from type [java.lang.String] to type [java.lang.Long] for value 'save'; nested exception is java.lang.NumberFormatException: For input string: "save"
  4. null
  5. Failed to convert from type [java.lang.String] to type [java.lang.Long] for value 'findBooksByTitle'; nested exception is java.lang.NumberFormatException: For input string: "findBooksByTitle"
  6. Failed to convert from type [java.lang.String] to type [java.lang.Long] for value 'searchContent'; nested exception is java.lang.NumberFormatException: For input string: "searchContent"

Origin

GenericConversionService.convert() has thrown a ConversionFailedException

java.lang.NumberFormatException
9 frames hidden
org.springframework.core.convert.support.GenericConversionService.convert
3Web pages

Similar

Specific cases

External results for this pattern (2)

  1. sandip-bhoivia GitHub6 months ago
    Failed to convert from type [java.lang.String] to type [java.lang.Long] for value 'searchContent'; nested exception is java.lang.NumberFormatException: For input string: "searchContent"
    Show stack trace
  2. Daniel Demesmaeckervia Coderanch8 months ago
    Failed to convert from type [java.lang.String] to type [java.lang.Long] for value 'findBooksByTitle'; nested exception is java.lang.NumberFormatException: For input string: "findBooksByTitle"
    Show stack trace