java - Hibernate HQL issue after migration from Jboss4.2 to Jboss7.2 -
recently have migrated jboss4.2 jboss 7.2. exact same hql query running fine jboss4.2. in jboss7.2 hql query not running in jboss7.2, it's giving error have mentioned below:
no persistent classes found query class: select distinct pf.projectformid com.gsk.rd.craw.model.projectform pf left join pf.contacts c pf.createdby=:mudid or pf.modifiedby=:mudid or c.mudid=:mudid java.lang.illegalargumentexception: org.hibernate.queryparameterexception: not locate named parameter 18:33:04,338 trace [org.hibernate.engine.query.spi.queryplancache] (http-/127.0.0.1:8080-1) unable locate hql query plan in cache; generating (select distinct pf.projectformid com.gsk.rd.craw.model.projectform pf left join pf.contacts c pf.createdby=:mudid or pf.modifiedby=:mudid or c.mudid=:mudid ) 18:33:04,338 trace [org.jboss.modules] (http-/127.0.0.1:8080-1) finding class com.gsk.rd.craw.model.projectform module "deployment.craw.ear:main" service module loader 18:33:04,338 trace [org.jboss.modules] (http-/127.0.0.1:8080-1) finding local class com.gsk.rd.craw.model.projectform module "deployment.craw.ear.craw_jar.jar:main" service module loader 18:33:04,338 trace [org.jboss.modules] (http-/127.0.0.1:8080-1) found loaded class com.gsk.rd.craw.model.projectform module "deployment.craw.ear.craw_jar.jar:main" service module loader 18:33:04,339 warn [org.hibernate.hql.internal.querysplitter] (http-/127.0.0.1:8080-1) hhh000183: no persistent classes found query class: select distinct pf.projectformid com.gsk.rd.craw.model.projectform pf left join pf.contacts c pf.createdby=:mudid or pf.modifiedby=:mudid or c.mudid=:mudid 18:33:04,339 info [stdout] (http-/127.0.0.1:8080-1) 0000000000000000000000000000000003333333333333333333333333 18:33:04,346 trace [org.jboss.modules] (http-/127.0.0.1:8080-1) finding local class org.hibernate.internal.abstractqueryimpl module "org.hibernate:main" local module loader @3c20902c (finder: local module finder @7dd9578a (roots: d:\craw_jboss7.2\aries-sandbox\jboss-as-7.2.0.final\modules,d:\craw_jboss7.2\aries-sandbox\jboss-as-7.2.0.final\modules\system\layers\base)) 18:33:04,346 trace [org.jboss.modules] (http-/127.0.0.1:8080-1) found loaded class org.hibernate.internal.abstractqueryimpl module "org.hibernate:main" local module loader @3c20902c (finder: local module finder @7dd9578a (roots: d:\craw_jboss7.2\aries-sandbox\jboss-as-7.2.0.final\modules,d:\craw_jboss7.2\aries-sandbox\jboss-as-7.2.0.final\modules\system\layers\base)) 18:33:04,341 severe [facelets.viewhandler] (http-/127.0.0.1:8080-1) error rendering view[/projectformcatalog.jsp]: java.lang.illegalargumentexception: org.hibernate.queryparameterexception: not locate named parameter [mudid]
we have upgraded:
- java jdk1.5 jdk1.7,
- hibernate 3 hibernate 4,
- jpa 1 have used both version,
- ejb 3 have used both version
check hql query syntax whether mudid database column name/hibernate entity property name available or not?
Comments
Post a Comment