GenericConversionService.convert() has thrown a ConversionFailedException

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)

Typical Exception Messages

  1. Failed to convert from type java.lang.String to type java.lang.Long for value '/addresses/1'; nested exception is java.lang.NumberFormatException: For input string: "/addresses/1"
  2. Failed to convert from type java.lang.String to type java.lang.Class for value 'Problem'; nested exception is java.lang.RuntimeException: java.lang.ClassNotFoundException: Problem
  3. Failed to convert from type java.util.LinkedHashSet<?> to type org.springframework.data.domain.Page<?> for value '[com.nearofme.model.Interest@12a4479, com.nearofme.model.Interest@15bdfb3, com.nearofme.model.Interest@1af6067, com.nearofme.model.Interest@1c17d4d, com.nearofme.model.Interest@df65f4, com.nearofme.model.Interest@3b140d, com.nearofme.model.Interest@1e24566, com.nearofme.model.Interest@da49c9]'; nested exception is org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type java.util.LinkedHashSet<?> to type org.springframework.data.domain.Page<?>
  4. Failed to convert from type [java.lang.String] to type [java.lang.Integer] for value 'test'; nested exception is java.lang.NumberFormatException: For input string: "test"
  5. Failed to convert from type java.lang.String to type com.capitalone.dashboard.model.CollectorType for value 'ScopeOwner'; nested exception is java.lang.IllegalArgumentException: No enum constant com.capitalone.dashboard.model.CollectorType.ScopeOwner
  6. 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"
  7. Failed to convert from type [java.lang.String] to type [java.lang.Long] for value 'undefined'; nested exception is java.lang.NumberFormatException: For input string: "undefined"
  8. Failed to convert from type [java.lang.String] to type [java.lang.Long] for value 'me'; nested exception is java.lang.NumberFormatException: For input string: "me"
  9. Failed to convert from type [java.lang.String] to type [java.time.ZonedDateTime] for value 'testuser'; nested exception is java.time.format.DateTimeParseException: Text 'testuser' could not be parsed at index 0
  10. Failed to convert from type [java.lang.String] to type [java.lang.Class<?>] for value 'service1'; nested exception is com.mongodb.MongoException: Couldn't read string as class type

Origin

Similar

Specific cases

External results for this pattern (12)

  1. Massimo Mangonivia Spring JIRA5 hours ago
    Failed to convert from type java.lang.String to type java.lang.Long for value '/addresses/1'; nested exception is java.lang.NumberFormatException: For input string: "/addresses/1"
    Show stack trace
  2. drypotvia Spring JIRA1 day ago
    Failed to convert from type java.lang.String to type java.lang.Class for value 'Problem'; nested exception is java.lang.RuntimeException: java.lang.ClassNotFoundException: Problem
    Show stack trace
  3. Failed to convert from type [java.lang.String] to type [java.lang.Class<?>] for value 'service1'; nested exception is com.mongodb.MongoException: Couldn't read string as class type
    Show stack trace
  4. Neerovia Stack Overflow4 days ago
    Failed to convert from type java.util.ArrayList<?> to type void for value '[com.link.pojo.User@21dfd606, com.link.pojo.User@6e5c3549, com.link.pojo.User@67ae8439, com.link.pojo.User@726aef5c]'; nested exception is org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type java.util.ArrayList<?> to type void
    Show stack trace
  5. Failed to convert from type [java.lang.String] to type [java.time.ZonedDateTime] for value 'testuser'; nested exception is java.time.format.DateTimeParseException: Text 'testuser' could not be parsed at index 0
    Show stack trace
  6. Smajlvia Stack Overflow4 months ago
    Failed to convert from type [java.lang.String] to type [java.lang.Long] for value 'me'; nested exception is java.lang.NumberFormatException: For input string: "me"
    Show stack trace
  7. Failed to convert from type [java.lang.String] to type [java.lang.Long] for value 'undefined'; nested exception is java.lang.NumberFormatException: For input string: "undefined"
    Show stack trace
  8. MarkRxvia GitHub1 year ago
    Failed to convert from type java.lang.String to type com.capitalone.dashboard.model.CollectorType for value 'ScopeOwner'; nested exception is java.lang.IllegalArgumentException: No enum constant com.capitalone.dashboard.model.CollectorType.ScopeOwner
    Show stack trace
  9. drypotvia Spring JIRA1 year ago
    Failed to convert from type java.lang.String to type java.lang.Class for value 'Problem'; nested exception is java.lang.RuntimeException: java.lang.ClassNotFoundException: Problem
    Show stack trace
  10. Artem Bilanvia Spring JIRA2 years ago
    Failed to convert from type [java.lang.String] to type [java.lang.Integer] for value 'test'; nested exception is java.lang.NumberFormatException: For input string: "test"
    Show stack trace