java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String

Spring JIRA | Antoine Dupuis | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    ClassCastException when calling PathMetadata.getName()

    GitHub | 3 years ago | mnshdw
    java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.Long cannot be cast to java.lang.String

      at com.mysema.query.types.PathMetadata.getName()
    2. Querydsl - Core module
      PathMetadata.getName
      1. com.mysema.query.types.PathMetadata.getName(PathMetadata.java:70)
      1 frame
    3. Spring Data MongoDB - Core
      SpringDataMongodbSerializer.getKeyForPath
      1. org.springframework.data.mongodb.repository.support.SpringDataMongodbSerializer.getKeyForPath(SpringDataMongodbSerializer.java:66)
      1 frame