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.Integer] for value 'test'; nested exception is java.lang.NumberFormatException: For input string: "test"
  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.Class for value 'Problem'; nested exception is java.lang.RuntimeException: java.lang.ClassNotFoundException: Problem
  5. Failed to convert from type java.lang.String to type java.math.BigInteger for value 'KKaK'; nested exception is java.lang.NumberFormatException: For input string: "KKaK"
  6. 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
  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"

Origin

Similar

Specific cases

We have seen this error pattern in the following webpages (10)

  1. Smajlvia Stack Overflow2 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"
  2. 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"
  3. 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
  4. Artem Bilanvia Spring JIRA1 year ago
    Listener method could not be invoked with the incoming message Endpoint handler details: Method [public void org.springframework.amqp.rabbit.listener.MethodRabbitListenerEndpointTests$RabbitEndpointSampleBean.invalidMessagePayloadType(org.springframework.messaging.Message<java.lang.Integer>)] Bean [org.springframework.amqp.rabbit.listener.MethodRabbitListenerEndpointTests$RabbitEndpointSampleBean@2b6856dd]
  5. Massimo Mangonivia Spring JIRA1 year 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"
  6. drypotvia Spring JIRA1 year ago
    Failed to convert from type java.lang.String to type java.math.BigInteger for value 'KKaK'; nested exception is java.lang.NumberFormatException: For input string: "KKaK"
  7. 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
  8. Artem Bilanvia Spring JIRA2 years ago
    Listener method could not be invoked with the incoming message Endpoint handler details: Method [public void org.springframework.amqp.rabbit.listener.MethodRabbitListenerEndpointTests$RabbitEndpointSampleBean.invalidMessagePayloadType(org.springframework.messaging.Message<java.lang.Integer>)] Bean [org.springframework.amqp.rabbit.listener.MethodRabbitListenerEndpointTests$RabbitEndpointSampleBean@2b6856dd]
  9. Massimo Mangonivia Spring JIRA2 years 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"
  10. 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<?>