AbstractSessionImpl.createNamedQuery() 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.internal.AbstractSharedSessionContract.buildQueryFromName
(source)
at org.hibernate.internal.AbstractSharedSessionContract.createNamedQuery
(source)
at org.hibernate.internal.AbstractSessionImpl.createNamedQuery

Typical Exception Messages

  1. No query defined for that name [LocationAt.findCurrentByUser]
  2. No query defined for that name [select a from Agent a where a.agentId = 123]
  3. No query defined for that name [automaticChannel.getTagByChannelId]
  4. No query defined for that name [SELECT * FROM Student s]

External results for this pattern (2)

  1. vahidvia Stack Overflow4 months ago
    No query defined for that name [automaticChannel.getTagByChannelId]
    Show stack trace
  2. Craz Joevia Stack Overflow4 months ago
    No query defined for that name [SELECT * FROM Student s]
    Show stack trace