Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

org.hibernate.HibernateException: could not locate named parameter

 
twinkle twinkle little star
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1110
Eclipse IDE Oracle VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the ranch Twinkle. I have sent you am Im about your name.
sorry can't hep about hibernate exceptions
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic