Assert.isTrue() has thrown an InvalidDataAccessApiUsageException

org.springframework.dao.InvalidDataAccessApiUsageException
Javadoc
Exception thrown on incorrect usage of the API, such as failing to "compile" a query object that needed compilation before execution.

This represents a problem in our Java data access framework, not the underlying data access infrastructure. @author Rod Johnson

at org.springframework.util.Assert.isTrue
(source)

Typical Exception Messages

  1. Projection type must be an interface!; nested exception is java.lang.IllegalArgumentException: Projection type must be an interface!] with root cause java.lang.IllegalArgumentException: Projection type must be an interface!
  2. Modifying queries can only use void or int/Integer as return type!; nested exception is java.lang.IllegalArgumentException: Modifying queries can only use void or int/Integer as return type!] with root cause java.lang.IllegalArgumentException: Modifying queries can only use void or int/Integer as return type!

Specific cases

External results for this pattern (1)

  1. lamostretavia Stack Overflow7 months ago
    Projection type must be an interface!; nested exception is java.lang.IllegalArgumentException: Projection type must be an interface!] with root cause java.lang.IllegalArgumentException: Projection type must be an interface!
    Show stack trace