File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes JdbcTemplate and IllegalArgumentException Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Spring
Reply Bookmark "JdbcTemplate and IllegalArgumentException" Watch "JdbcTemplate and IllegalArgumentException" New topic
Author

JdbcTemplate and IllegalArgumentException

Deepaks Deshpande
Ranch Hand

Joined: Dec 06, 2007
Posts: 95

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


Regards,
Deepak

Deepaks Deshpande
Ranch Hand

Joined: Dec 06, 2007
Posts: 95

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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JdbcTemplate and IllegalArgumentException
 
Similar Threads
iBATIS Example exception
org.springframework.dao.support.DataAccessUtils.requiredSingleResult(Ljava/util/Collection;)Ljava/la
data source defined but not found..
need help with basic spring mvc program... please help
Understand regarding REQUIRED and REQUIRES_NEW