org.springframework.beans.TypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'java.lang.Class'; nested exception is java.lang.IllegalArgumentException: Cannot find class [main.com.mpakhomov.chat.domain.User]

Stack Overflow | Blaze | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    org.springframework.beans.TypeMismatchException: Failed to convert value 'java.lang.String' to 'java.lang.Class' spring

    Stack Overflow | 8 months ago | Blaze
    org.springframework.beans.TypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'java.lang.Class'; nested exception is java.lang.IllegalArgumentException: Cannot find class [main.com.mpakhomov.chat.domain.User]

    Root Cause Analysis

    1. org.springframework.beans.TypeMismatchException

      Failed to convert value of type 'java.lang.String' to required type 'java.lang.Class'; nested exception is java.lang.IllegalArgumentException: Cannot find class [main.com.mpakhomov.chat.domain.User]

      at org.springframework.beans.TypeConverterSupport.doConvert()
    2. Spring Beans
      BeanDefinitionValueResolver.resolveValueIfNecessary
      1. org.springframework.beans.TypeConverterSupport.doConvert(TypeConverterSupport.java:74)
      2. org.springframework.beans.TypeConverterSupport.convertIfNecessary(TypeConverterSupport.java:39)
      3. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:187)
      3 frames