This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Spring and the fly likes JdbcTemplate and IllegalArgumentException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Frameworks » Spring
Bookmark "JdbcTemplate and IllegalArgumentException" Watch "JdbcTemplate and IllegalArgumentException" New topic

JdbcTemplate and IllegalArgumentException

Deepaks Deshpande
Ranch Hand

Joined: Dec 06, 2007
Posts: 113

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

Joined: Dec 06, 2007
Posts: 113

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.
GeeCON Prague 2014
subject: JdbcTemplate and IllegalArgumentException