• Post Reply Bookmark Topic Watch Topic
  • New Topic

Spring JDBC error: Can't pass value to NamedParameter  RSS feed

 
Philip Freeman
Greenhorn
Posts: 28
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


If I replace the with:, no error is thrown and there is no issue.
While if I use the named parameter an error pops up: org.springframework.dao.InvalidDataAccessApiUsageException: No value supplied for the SQL parameter 'value': This SqlParameterSource is empty


What did I miss?
 
Philip Freeman
Greenhorn
Posts: 28
2
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found my mistake.

Should be:
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 36864
481
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for posting the solution which you found quickly. Sometimes the act of explaining a problem helps one answer it!
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!