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.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<?>
  2. 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"
  3. 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"
  4. 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
  5. 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"
  6. 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"
  7. 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"
  8. 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
  9. 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
  10. 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

Origin

GenericConversionService.convert() has thrown a ConversionFailedException

org.springframework.core.convert.ConversionFailedException
1 frames hidden
org.springframework.core.convert.support.GenericConversionService.convert
17Web pages

Similar

Specific cases

External results for this pattern (11)

  1. Scott Testervia Google Groups1 month ago
    Failed to convert from type [java.lang.String] to type [java.time.ZonedDateTime] for value 'https://example.org/auth'; nested exception is java.time.format.DateTimeParseException: Text 'https://example.org/auth' could not be parsed at index 0
    Show stack trace
  2. 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
  3. Massimo Mangonivia Spring JIRA2 months 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
  4. drypotvia Spring JIRA2 months 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
  5. 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
  6. Neerovia Stack Overflow2 months 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
  7. Smajlvia Stack Overflow6 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
  8. 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
  9. 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
  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