繁体   English   中英

JBAS014134:EJB调用失败

[英]JBAS014134: EJB Invocation failed

List results= sessionFactory.getCurrentSession().createQuery("from org.gencat.gimah.dao.GimahCobramentTargeta ct where ct.expEcon.id=: idEE and ct.cobrament is null ")
                    .setParameter("idEE", idEE)
                    .list();

JBAS014134: EJB Invocation failed on component Expedients for method public abstract java.util.List org.gencat.gimah.model.Expedients.doBuscarDetallExpeconAPartirGestio(long,java.lang.String,boolean) throws org.gencat.gimah.exception.GimahExcepcio,java.rmi.RemoteException: javax.ejb.EJBException: org.hibernate.HibernateException: could not locate named parameter [idEE]

参数ct.expEcon.id=: idEE存在错误。 这是不正确的加一个空格后: 您需要通过这种方式使用参数

ct.expEcon.id = :idEE

并且,请使用更合理的参数名称。 idEE是一个错误的选择,因为两个相邻的大写字母E

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM