java.lang.IllegalArgumentException: alias not found: serverIP

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Hi, I am getting exception when executing following code: {code} @Entity @FilterDef(name="personIsActiveFilter", defaultCondition="active = 1") public class Person { @Id Long id; String name; boolean active; } ... session.enableFilter("personIsActiveFilter"); session.createQuery("from Person p where p.name = ':abc'").list(); {code} Stack trace is the following: {code} java.lang.IllegalArgumentException: Invalid filter-parameter name format at org.hibernate.engine.LoadQueryInfluencers.parseFilterParameterName(LoadQueryInfluencers.java:162) at org.hibernate.engine.QueryParameters.processFilters(QueryParameters.java:485) at org.hibernate.engine.QueryParameters.processFilters(QueryParameters.java:458) at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1669) at org.hibernate.loader.Loader.doQuery(Loader.java:801) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:274) at org.hibernate.loader.Loader.doList(Loader.java:2533) at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2276) at org.hibernate.loader.Loader.list(Loader.java:2271) at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:452) at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:363) at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196) at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1268) at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102) {code} I can´t use named query parameter because whole where clause is built in another part of application.
    via by Tomas Hradec,
  • Hi, I am getting exception when executing following code: {code} @Entity @FilterDef(name="personIsActiveFilter", defaultCondition="active = 1") public class Person { @Id Long id; String name; boolean active; } ... session.enableFilter("personIsActiveFilter"); session.createQuery("from Person p where p.name = ':abc'").list(); {code} Stack trace is the following: {code} java.lang.IllegalArgumentException: Invalid filter-parameter name format at org.hibernate.engine.LoadQueryInfluencers.parseFilterParameterName(LoadQueryInfluencers.java:162) at org.hibernate.engine.QueryParameters.processFilters(QueryParameters.java:485) at org.hibernate.engine.QueryParameters.processFilters(QueryParameters.java:458) at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1669) at org.hibernate.loader.Loader.doQuery(Loader.java:801) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:274) at org.hibernate.loader.Loader.doList(Loader.java:2533) at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2276) at org.hibernate.loader.Loader.list(Loader.java:2271) at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:452) at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:363) at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196) at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1268) at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102) {code} I can´t use named query parameter because whole where clause is built in another part of application.
    via by Tomas Hradec,
    • java.lang.IllegalArgumentException: alias not found: serverIP at org.hibernate.loader.hql.QueryLoader.applyLocks(QueryLoader.java:299) at org.hibernate.loader.Loader.preprocessSQL(Loader.java:189) at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1529) at org.hibernate.loader.Loader.doQuery(Loader.java:661) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224) at org.hibernate.loader.Loader.doList(Loader.java:2211) at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2095) at org.hibernate.loader.Loader.list(Loader.java:2090) at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:388) at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338) at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172) at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121) at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
    No Bugmate found.