java.lang.IllegalArgumentException: java.lang.ClassNotFoundException: com.github.handioq.shopapp.model.User

GitHub | handioq | 6 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

    Failed to deserialize authentication for ... (java.lang.ClassNotFoundException) + hibernate

    GitHub | 6 months ago | handioq
    java.lang.IllegalArgumentException: java.lang.ClassNotFoundException: com.github.handioq.shopapp.model.User
  2. 0

    Fail to deserialize OAuth2Authentication from different server

    GitHub | 2 years ago | sckoh
    java.lang.IllegalArgumentException: java.io.InvalidClassException: org.hibernate.collection.internal.AbstractPersistentCollection; local class incompatible: stream classdesc serialVersionUID = -7238232378593030571, local class serialVersionUID = -8914173462748164853

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      java.lang.ClassNotFoundException: com.github.handioq.shopapp.model.User

      at org.springframework.security.oauth2.common.util.SerializationUtils.deserialize()
    2. OAuth2 for Spring Security
      JdbcTokenStore.deserializeAuthentication
      1. org.springframework.security.oauth2.common.util.SerializationUtils.deserialize(SerializationUtils.java:43)[spring-security-oauth2-2.0.9.RELEASE.jar:na]
      2. org.springframework.security.oauth2.provider.token.store.JdbcTokenStore.deserializeAuthentication(JdbcTokenStore.java:405)[spring-security-oauth2-2.0.9.RELEASE.jar:na]
      2 frames