org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.amqp.rabbit.connection.ConnectionFactory]: Factory method 'rabbitConnectionFactory' t hrew exception; nested exception is org.springframework.cloud.CloudException: No unique service matching interface org.springframework.amqp.rabbit.connection.ConnectionFactory found. Expected 1, found 0

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 GitHub by bijukunjummen
, 1 year ago
Failed to instantiate [org.springframework.amqp.rabbit.connection.ConnectionFactory]: Factory method 'rabbitConnectionFactory' t hrew exception; nested exception is org.springframework.cloud.CloudException: No unique service matching interface org.springframework.amqp.rabbit.connection.ConnectionFactory found. Expected 1, found 0
via GitHub by sabbyanandan
, 7 months ago
Failed to instantiate [org.springframework.data.gemfire.client.PoolFactoryBean]: Factory method 'gemfi rePool' threw exception; nested exception is java.lang.NoSuchMethodError: org.springframework.data.gemfire.client.PoolFactoryBean.setLocatorEndpointList(Lorg/springframework/data/gemfire/support/ConnectionE ndpointList;)V
via Stack Overflow by Артем К
, 2 months ago
Failed to instantiate [org.springframework.web.servlet.view.InternalResourceViewResolver]: Factory method 'resolver' threw exception; nested exception is java.lang.StackOverflowError
via Stack Overflow by ZeroGraviti
, 1 year ago
Failed to instantiate [org.springframework.cassandra.config.CassandraCqlClusterFactoryBean]: Factory method 'cluster' threw exception; nested exception is java.lang.IllegalArgumentException: Null or empty data center specified for DC-aware policy
via GitHub by joshuacano
, 1 month ago
Failed to instantiate [org.neo4j.ogm.session.SessionFactory]: Factory method 'getSessionFactory' threw exception; nested exception is java.lang.StringIndexOutOfBoundsException: String index out of range: 1
via GitHub by joshuacano
, 1 year ago
Failed to instantiate [org.neo4j.ogm.session.SessionFactory]: Factory method 'getSessionFactory' threw exception; nested exception is java.lang.StringIndexOutOfBoundsException: String index out of range: 1
org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.amqp.rabbit.connection.ConnectionFactory]: Factory method 'rabbitConnectionFactory' t hrew exception; nested exception is org.springframework.cloud.CloudException: No unique service matching interface org.springframework.amqp.rabbit.connection.ConnectionFactory found. Expected 1, found 0
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1123)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

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