Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. EJBQueryImpl.setParameter() has thrown an IllegalArgumentException
    Unsorted
    1
    0
    0
  2. EJBQueryImpl.setParameterInternal() has thrown an IllegalArgumentException
    Unsorted
    1
    0
    0

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
java.lang.IllegalArgumentException: You have attempted to set a parameter value using a name of :sexCd that does not exist in the query string SELECT o FROM AnnuityPolicy o WHERE o.status = :status AND o.lastName LIKE :lastName AND o.sexCd = :sexCd.
    at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.setParameterInternal(EJBQueryImpl.java:614)
    at oracle.toplink.essentials.internal.ejb.cmp3.EJBQueryImpl.setParameter(EJBQueryImpl.java:161)
    at com.leadway.util.eao.QueryBuilderUtil.buildQuery(QueryBuilderUtil.java:77)
    at com.mck.practical.eao.test.AnnuityPolicyEAO.findPolicies(AnnuityPolicyEAO.java:61)

External results for this pattern (5)

  1. okmich-JavaNetvia Oracle Community5 months ago
    You have attempted to set a parameter value using a name of :sexCd that does not exist in the query string SELECT o FROM AnnuityPolicy o WHERE o.status = :status AND o.lastName LIKE :lastName AND o.sexCd = :sexCd.
    Show stack trace
  2. You have attempted to set a value of type class java.util.Arrays$ArrayList for parameter accountIds with expected type of class java.lang.Long from query string SELECT a.accountManager.loginName FROM Account a WHERE a.id IN (:accountIds).
    Show stack trace
  3. Siegfried Heintzevia Coderanch1 year ago
    You have attempted to set a parameter at position 1 which does not exist in this query string DELETE FROM Employee e WHERE e.employeeID > 0.
    Show stack trace
  4. Siegfried Heintzevia Coderanch1 year ago
    You have attempted to set a parameter at position 1 which does not exist in this query string DELETE FROM Employee e WHERE e.employeeID > 0.
    Show stack trace
  5. 843833via Oracle Community2 years ago
    You have attempted to set a value of type class com.mysite.core.ProcessStatus for parameter status with expected type of class com.mysite.core.ProcessStatus from query string SELECT DISTINCT object(o) FROM RequestJob AS o, IN (o.copyRoots) c WHERE c.status=:status AND c.service.id=:serviceID.
    Show stack trace