org.springframework.core.convert.ConversionFailedException: 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"

Spring JIRA | drypot | 5 years ago
  1. 0

    Normal {{String}} field tried to be converted to {{BigInteger}}. {code} org.springframework.core.convert.ConversionFailedException: 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" at org.springframework.core.convert.support.ConversionUtils.invokeConverter(ConversionUtils.java:41) at org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:170) at org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:154) at org.springframework.data.mongodb.core.convert.MappingMongoConverter.getPotentiallyConvertedSimpleWrite(MappingMongoConverter.java:604) at org.springframework.data.mongodb.core.convert.MappingMongoConverter.writeSimpleInternal(MappingMongoConverter.java:585) at org.springframework.data.mongodb.core.convert.MappingMongoConverter.access$100(MappingMongoConverter.java:73) at org.springframework.data.mongodb.core.convert.MappingMongoConverter$4.doWithPersistentProperty(MappingMongoConverter.java:370) at org.springframework.data.mongodb.core.convert.MappingMongoConverter$4.doWithPersistentProperty(MappingMongoConverter.java:357) at org.springframework.data.mapping.model.BasicPersistentEntity.doWithProperties(BasicPersistentEntity.java:173) at org.springframework.data.mongodb.core.convert.MappingMongoConverter.writeInternal(MappingMongoConverter.java:357) at org.springframework.data.mongodb.core.convert.MappingMongoConverter.writeInternal(MappingMongoConverter.java:329) at org.springframework.data.mongodb.core.convert.MappingMongoConverter.write(MappingMongoConverter.java:294) at org.springframework.data.mongodb.core.convert.MappingMongoConverter.write(MappingMongoConverter.java:73) at org.springframework.data.mongodb.core.MongoTemplate.doInsert(MongoTemplate.java:615) at org.springframework.data.mongodb.core.MongoTemplate.insert(MongoTemplate.java:577) at org.springframework.data.mongodb.core.MongoTemplate.insert(MongoTemplate.java:568) {code}

    Spring JIRA | 5 years ago | drypot
    org.springframework.core.convert.ConversionFailedException: 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"
  2. 0

    Normal {{String}} field tried to be converted to {{BigInteger}}. {code} org.springframework.core.convert.ConversionFailedException: 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" at org.springframework.core.convert.support.ConversionUtils.invokeConverter(ConversionUtils.java:41) at org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:170) at org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:154) at org.springframework.data.mongodb.core.convert.MappingMongoConverter.getPotentiallyConvertedSimpleWrite(MappingMongoConverter.java:604) at org.springframework.data.mongodb.core.convert.MappingMongoConverter.writeSimpleInternal(MappingMongoConverter.java:585) at org.springframework.data.mongodb.core.convert.MappingMongoConverter.access$100(MappingMongoConverter.java:73) at org.springframework.data.mongodb.core.convert.MappingMongoConverter$4.doWithPersistentProperty(MappingMongoConverter.java:370) at org.springframework.data.mongodb.core.convert.MappingMongoConverter$4.doWithPersistentProperty(MappingMongoConverter.java:357) at org.springframework.data.mapping.model.BasicPersistentEntity.doWithProperties(BasicPersistentEntity.java:173) at org.springframework.data.mongodb.core.convert.MappingMongoConverter.writeInternal(MappingMongoConverter.java:357) at org.springframework.data.mongodb.core.convert.MappingMongoConverter.writeInternal(MappingMongoConverter.java:329) at org.springframework.data.mongodb.core.convert.MappingMongoConverter.write(MappingMongoConverter.java:294) at org.springframework.data.mongodb.core.convert.MappingMongoConverter.write(MappingMongoConverter.java:73) at org.springframework.data.mongodb.core.MongoTemplate.doInsert(MongoTemplate.java:615) at org.springframework.data.mongodb.core.MongoTemplate.insert(MongoTemplate.java:577) at org.springframework.data.mongodb.core.MongoTemplate.insert(MongoTemplate.java:568) {code}

    Spring JIRA | 5 years ago | drypot
    org.springframework.core.convert.ConversionFailedException: 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"
  3. 0

    Spring Cache Abstraction & custom converter

    Stack Overflow | 3 years ago | user2652217
    org.springframework.expression.AccessException: Problem invoking method: public java.lang.String java.lang.String.concat(java.lang.String)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    DynamicSpecifications 对时间类型的字符串的解析

    GitHub | 4 years ago | boliza
    org.springframework.core.convert.ConversionFailedException: Failed to convert from type java.lang.String to type java.util.Date for value '2012-11-23 00:00:00'; nested exception is java.lang.IllegalArgumentException
  6. 0

    springframework mongoDb ConversionFailedException

    Stack Overflow | 2 years ago
    org.springframework.core.convert.ConversionFailedException: Failed to convert from type null to type long for value 'null'; nested exception is java.lang.IllegalArgumentException: A null value cannot be assigned to a primitive type

  1. Malcshour 1 times, last 5 months ago
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.springframework.core.convert.ConversionFailedException

    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"

    at org.springframework.core.convert.support.ConversionUtils.invokeConverter()
  2. Spring Core
    GenericConversionService.convert
    1. org.springframework.core.convert.support.ConversionUtils.invokeConverter(ConversionUtils.java:41)
    2. org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:170)
    3. org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:154)
    3 frames
  3. Spring Data MongoDB - Core
    MappingMongoConverter$4.doWithPersistentProperty
    1. org.springframework.data.mongodb.core.convert.MappingMongoConverter.getPotentiallyConvertedSimpleWrite(MappingMongoConverter.java:604)
    2. org.springframework.data.mongodb.core.convert.MappingMongoConverter.writeSimpleInternal(MappingMongoConverter.java:585)
    3. org.springframework.data.mongodb.core.convert.MappingMongoConverter.access$100(MappingMongoConverter.java:73)
    4. org.springframework.data.mongodb.core.convert.MappingMongoConverter$4.doWithPersistentProperty(MappingMongoConverter.java:370)
    5. org.springframework.data.mongodb.core.convert.MappingMongoConverter$4.doWithPersistentProperty(MappingMongoConverter.java:357)
    5 frames
  4. Spring Data Core
    BasicPersistentEntity.doWithProperties
    1. org.springframework.data.mapping.model.BasicPersistentEntity.doWithProperties(BasicPersistentEntity.java:173)
    1 frame
  5. Spring Data MongoDB - Core
    MongoTemplate.insert
    1. org.springframework.data.mongodb.core.convert.MappingMongoConverter.writeInternal(MappingMongoConverter.java:357)
    2. org.springframework.data.mongodb.core.convert.MappingMongoConverter.writeInternal(MappingMongoConverter.java:329)
    3. org.springframework.data.mongodb.core.convert.MappingMongoConverter.write(MappingMongoConverter.java:294)
    4. org.springframework.data.mongodb.core.convert.MappingMongoConverter.write(MappingMongoConverter.java:73)
    5. org.springframework.data.mongodb.core.MongoTemplate.doInsert(MongoTemplate.java:615)
    6. org.springframework.data.mongodb.core.MongoTemplate.insert(MongoTemplate.java:577)
    7. org.springframework.data.mongodb.core.MongoTemplate.insert(MongoTemplate.java:568)
    7 frames