java.lang.NoSuchMethodError

javax.persistence.EntityManager.getMetamodel()Ljavax/persistence/metamodel/Metamodel;

Solutions on the web1268

  • via openxava by jljimenez
    , 11 months ago
    javax.persistence.EntityManager.getMetamodel()Ljavax/persistence/metamodel/Metamodel;
  • javax.persistence.EntityManager.getMetamodel()Ljavax/persistence/metamodel/Metamodel;
  • via Oracle Community by user13779922, 1 year ago
    javax.persistence.EntityManager.getMetamodel()Ljavax/persistence/metamodel/Metamodel;
  • Stack trace

    • java.lang.NoSuchMethodError: javax.persistence.EntityManager.getMetamodel()Ljavax/persistence/metamodel/Metamodel; at org.springframework.data.jpa.repository.utils.JpaClassUtils.getMetadata(JpaClassUtils.java:97) at org.springframework.data.jpa.repository.support.JpaRepositoryFactory.getEntityInformation(JpaRepositoryFactory.java:162) at org.springframework.data.jpa.repository.support.JpaRepositoryFactory.getTargetRepository(JpaRepositoryFactory.java:91) at org.springframework.data.jpa.repository.support.JpaRepositoryFactory.getTargetRepository(JpaRepositoryFactory.java:72) at org.springframework.data.repository.support.RepositoryFactorySupport.getRepository(RepositoryFactorySupport.java:132) at org.springframework.data.repository.support.RepositoryFactoryBeanSupport.getObject(RepositoryFactoryBeanSupport.java:107) at org.springframework.data.repository.support.RepositoryFactoryBeanSupport.getObject(RepositoryFactoryBeanSupport.java:36) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport$2.run(FactoryBeanRegistrySupport.java:133)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.