java.lang.IllegalArgumentException

No positional parameters in query: from MyClass myObject where myObject.field like '%?%'

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web9186

  • No positional parameters in query: from MyClass myObject where myObject.field like '%?%'
  • via liferay.com by Unknown author, 1 year ago
    No positional parameters in query: SELECT COUNT(*) FROM com.sample.jsp.portlet.model.Position WHERE name = ?
  • via liferay.com by Unknown author, 1 year ago
    No positional parameters in query: FROM com.alyportal.model.VAccount WHERE userId = ? AND accountType = ?
  • Stack trace

    • java.lang.IllegalArgumentException: No positional parameters in query: from MyClass myObject where myObject.field like '%?%' at org.hibernate.impl.AbstractQueryImpl.setParameter(AbstractQueryImpl.java:171) at org.hibernate.impl.AbstractQueryImpl.setParameter(AbstractQueryImpl.java:408) at org.springframework.orm.hibernate3.HibernateTemplate$29.doInHibernate(HibernateTemplate.java:745)

    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’re the first here who have seen this exception.