AbstractManagedType.getDeclaredAttribute() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
Javadoc
Thrown to indicate that a method has been passed an illegal or inappropriate argument. @author unascribed @since JDK1.0
at org.hibernate.jpa.internal.metamodel.AbstractManagedType.checkNotNull
(source)
at org.hibernate.jpa.internal.metamodel.AbstractManagedType.getDeclaredAttribute
(source)

Typical Exception Messages

  1. Unable to locate Attribute with the the given name [id] on this ManagedType [ChatMessage]
  2. Unable to locate Attribute with the the given name [managers] on this ManagedType [org.hibernate.jpa.test.graphs.queryhint.QueryHintEntityGraphTest$Manager]
  3. Unable to locate Attribute with the the given name [id] on this ManagedType [ChatMessage]

Origin

AbstractManagedType.checkNotNull() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
org.hibernate.jpa.internal.metamodel.AbstractManagedType.checkNotNull
5Web pages

Similar

Specific cases

Solution

rafael, 1 year ago

Properties of subclasses may have to be referenced in a different way. More on this here: https://goo.gl/FvnBXb

Check the source of this solution for more info

External results for this pattern (2)

  1. Brett Meyervia Hibernate JIRA2 years ago
    Unable to locate Attribute with the the given name [managers] on this ManagedType [org.hibernate.jpa.test.graphs.queryhint.QueryHintEntityGraphTest$Manager]
    Show stack trace
  2. mkuffvia Stack Overflow2 years ago
    Unable to locate Attribute with the the given name [id] on this ManagedType [ChatMessage]
    Show stack trace