Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • If the constructor is never invoked it probably means the bean is never created. Can you declare a default constructor and see if that is being called. If neither are called then there is a problem with your application context in which it isn't being loaded Commented Dec 4, 2012 at 21:44
  • The option that i have tried is: Use two Constructors, One without parameters and other with the asyncTaskExecutor as parameter. With this option, and the applicationContext.xml like i have shown, the second constructor never was used Commented Dec 4, 2012 at 21:56
  • If I use only one contructor with the asyncTaskExecutor as parameter, I get an error in the compilation. Commented Dec 4, 2012 at 21:58
  • In the default constructor set this.asyncTaskExecutor = null and see if that constructor is every being called. Put in a println to ensure its being called Commented Dec 4, 2012 at 21:59
  • John, I have completed my question with the trace exception when i use only the constructor with one parameter Commented Dec 5, 2012 at 7:48