ReflectionUtils.doWithFields() has thrown an IllegalStateException

java.lang.IllegalStateException
Javadoc
Signals that a method has been invoked at an illegal or inappropriate time. In other words, the Java environment or Java application is not in an appropriate state for the requested operation. @author Jonni Kanerva @since JDK1.1
at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.checkResourceType
(source)
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.<init>
(source)
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$1.doWith
at org.springframework.util.ReflectionUtils.doWithFields
(source)
3 frames hidden

Typical Exception Messages

  1. Specified field type [interface javax.persistence.EntityManagerFactory] is incompatible with resource type [javax.persistence.EntityManager]

Origin

PersistenceAnnotationBeanPostProcessor$1.doWith() has thrown an IllegalStateException

java.lang.IllegalStateException
2 frames hidden
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$1.doWith
4Web pages

External results for this pattern (4)

  1. Unknown authorvia coderanch.com3 weeks ago
    Specified field type [interface javax.persistence.EntityManagerFactory] is incompatible with resource type [javax.persistence.EntityManager]
    Show stack trace
  2. olze olivia Coderanch1 year ago
    Specified field type [interface javax.persistence.EntityManagerFactory] is incompatible with resource type [javax.persistence.EntityManager]
    Show stack trace
  3. Unknown authorvia coderanch.com2 years ago
    Specified field type [interface javax.persistence.EntityManagerFactory] is incompatible with resource type [javax.persistence.EntityManager]
    Show stack trace
  4. Stevevia Stack Overflow2 years ago
    Specified field type [interface javax.persistence.EntityManagerFactory] is incompatible with resource type [javax.persistence.EntityManager]
    Show stack trace