org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customer4' defined in class path resource [com/springframework/jta/test.xml]: 2 constructor arguments specified but no matching constructor found in bean 'customer4' (hint: specify index arguments for simple parameters to avoid type ambiguities)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Spring JIRA by Alef Arendsen, 1 year ago
Error creating bean with name 'customer4' defined in class path resource [com/springframework/jta/test.xml]: 2 constructor arguments specified but no matching constructor found in bean 'customer4' (hint: specify index arguments for simple parameters to avoid type ambiguities)
via Spring JIRA by Alef Arendsen, 1 year ago
Error creating bean with name 'customer4' defined in class path resource [com/springframework/jta/test.xml]: 2 constructor arguments specified but no matching constructor found in bean 'customer4' (hint: specify index arguments for simple parameters to avoid type ambiguities)
via Spring JIRA by Shravan Reddy, 1 year ago
Error creating bean with name 'com.ubs.tsna.commons.sql.JDBCObject' defined in class path resource [META-INF/ACKReprocess.xml]: 4 constructor arguments specified but no matching constructor found in bean 'com.ubs.tsna.commons.sql.JDBCObject' (hint: specify index arguments for simple parameters to avoid type ambiguities)
via Spring JIRA by Shravan Reddy, 1 year ago
Error creating bean with name 'com.ubs.tsna.commons.sql.JDBCObject' defined in class path resource [META-INF/ACKReprocess.xml]: 4 constructor arguments specified but no matching constructor found in bean 'com.ubs.tsna.commons.sql.JDBCObject' (hint: specify index arguments for simple parameters to avoid type ambiguities)
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customer4' defined in class path resource [com/springframework/jta/test.xml]: 2 constructor arguments specified but no matching constructor found in bean 'customer4' (hint: specify index arguments for simple parameters to avoid type ambiguities)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:631)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
3 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
2 times, 1 year ago
24 times, 1 year ago
6 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.