Two Laptop Bag*
The moose likes Object Relational Mapping and the fly likes org.hibernate.HibernateException: could not locate named parameter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "org.hibernate.HibernateException: could not locate named parameter" Watch "org.hibernate.HibernateException: could not locate named parameter" New topic
Author

org.hibernate.HibernateException: could not locate named parameter

twinkle twinkle little star
Greenhorn

Joined: Mar 19, 2012
Posts: 2
Help Help Help

My console:

Exception in thread "main" org.hibernate.HibernateException: could not locate named parameter [dashboardLink]
at org.hibernate.engine.query.ParameterMetadata.getNamedParameterDescriptor(ParameterMetadata.java:75)
at org.hibernate.engine.query.ParameterMetadata.getNamedParameterExpectedType(ParameterMetadata.java:81)
at org.hibernate.impl.AbstractQueryImpl.determineType(AbstractQueryImpl.java:390)
at org.hibernate.impl.AbstractQueryImpl.setParameter(AbstractQueryImpl.java:376)
at com.tatacomm.costing.report.dao.DashboardLinkDaoImpl.getDashboardLinkReportMethod(DashboardLinkDaoImpl.java:15)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:139)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy49.getDashboardLinkReportMethod(Unknown Source)
at com.tatacomm.costing.report.bo.DashboardLinkBo.getDashboardLinkReport(DashboardLinkBo.java:21)
at com.tatacomm.costing.test.TestDashboardLink.main(TestDashboardLink.java:14)


My BO:



My ApplicationContext.xml: among other things

My interface



My implementation of interface:


My hbm file
Wendy Gibbons
Bartender

Joined: Oct 21, 2008
Posts: 1107

Welcome to the ranch Twinkle. I have sent you am Im about your name.
sorry can't hep about hibernate exceptions
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: org.hibernate.HibernateException: could not locate named parameter