Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JdbcTemplate and IllegalArgumentException

 
Deepaks Deshpande
Ranch Hand
Posts: 114
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys,

I am trying the JdbcTemplate example given in the Spring in Action book. My classes are the following






My application context file [named as springapp-servlet.xml] is :


And my main class is :


When ever I execute this class i am getting the following error and i am not able to know the reason for the error.


Please tell me whats the reason for this error and how am i going to resolve it. Thank you
 
Deepaks Deshpande
Ranch Hand
Posts: 114
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have solved the problem my self. In my DaiOmpl class I was trying to extend the JdbcTemplate class. It was quite silly of me to have done that.

Thank you.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!