首页新闻找找看学习计划

springboot整合mq启动报错!

0
[已解决问题] 解决于 2019-02-25 14:48

. ____ _ __ _
/\ /
_' __ _ ()_ __ __ _     ( ( )___ | '_ | '| | ' / ` |     \/ _)| |)| | | | | || (| | ) ) ) )
' |
_| .|| ||| |_, | / / / /
=========|
|==============|__/=////
:: Spring Boot :: (v1.4.1.RELEASE)

2019-02-12 14:39:49.917 INFO 7300 --- [ main] net.anumbrella.rabbitmq.App : Starting App on barron-pc with PID 7300 (C:\Users\Administrator\Desktop\rabbitmq-demo-master\target\classes started by Administrator in C:\Users\Administrator\Desktop\rabbitmq-demo-master)
2019-02-12 14:39:49.942 INFO 7300 --- [ main] net.anumbrella.rabbitmq.App : No active profile set, falling back to default profiles: default
2019-02-12 14:39:50.037 INFO 7300 --- [ main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@46944ca9: startup date [Tue Feb 12 14:39:50 CST 2019]; root of context hierarchy
2019-02-12 14:39:51.781 INFO 7300 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.amqp.rabbit.annotation.RabbitBootstrapConfiguration' of type [class org.springframework.amqp.rabbit.annotation.RabbitBootstrapConfiguration$$EnhancerBySpringCGLIB$$d11d06d7] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-02-12 14:39:52.393 INFO 7300 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (http)
2019-02-12 14:39:52.977 INFO 7300 --- [ main] o.apache.catalina.core.StandardService : Starting service Tomcat
2019-02-12 14:39:52.978 INFO 7300 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.5
2019-02-12 14:39:53.118 INFO 7300 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2019-02-12 14:39:53.119 INFO 7300 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 3085 ms
2019-02-12 14:39:53.305 INFO 7300 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Mapping servlet: 'dispatcherServlet' to [/]
2019-02-12 14:39:53.309 INFO 7300 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*]
2019-02-12 14:39:53.309 INFO 7300 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2019-02-12 14:39:53.309 INFO 7300 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/*]
2019-02-12 14:39:53.311 INFO 7300 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/*]
2019-02-12 14:39:53.985 INFO 7300 --- [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@46944ca9: startup date [Tue Feb 12 14:39:50 CST 2019]; root of context hierarchy
2019-02-12 14:39:54.088 INFO 7300 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/rabbit/transition],methods=[GET]}" onto public void net.anumbrella.rabbitmq.controller.RabbitTest.transition()
2019-02-12 14:39:54.090 INFO 7300 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/rabbit/oneToMany],methods=[GET]}" onto public void net.anumbrella.rabbitmq.controller.RabbitTest.oneToMany()
2019-02-12 14:39:54.091 INFO 7300 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/rabbit/manyToMany],methods=[GET]}" onto public void net.anumbrella.rabbitmq.controller.RabbitTest.manyToMany()
2019-02-12 14:39:54.092 INFO 7300 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/rabbit/topicTest],methods=[GET]}" onto public void net.anumbrella.rabbitmq.controller.RabbitTest.topicTest()
2019-02-12 14:39:54.093 INFO 7300 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/rabbit/fanoutTest],methods=[GET]}" onto public void net.anumbrella.rabbitmq.controller.RabbitTest.fanoutTest()
2019-02-12 14:39:54.093 INFO 7300 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/rabbit/directTest],methods=[GET]}" onto public void net.anumbrella.rabbitmq.controller.RabbitTest.directTest()
2019-02-12 14:39:54.094 INFO 7300 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/rabbit/headersTest],methods=[GET]}" onto public void net.anumbrella.rabbitmq.controller.RabbitTest.headersTest()
2019-02-12 14:39:54.095 INFO 7300 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/rabbit/userTest],methods=[GET]}" onto public void net.anumbrella.rabbitmq.controller.RabbitTest.userTest()
2019-02-12 14:39:54.095 INFO 7300 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/rabbit/callback],methods=[GET]}" onto public void net.anumbrella.rabbitmq.controller.RabbitTest.callbak()
2019-02-12 14:39:54.096 INFO 7300 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/rabbit/hello],methods=[GET]}" onto public void net.anumbrella.rabbitmq.controller.RabbitTest.hello()
2019-02-12 14:39:54.096 INFO 7300 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/rabbit/distribu],methods=[GET]}" onto public void net.anumbrella.rabbitmq.controller.RabbitTest.distribu()
2019-02-12 14:39:54.100 INFO 7300 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2019-02-12 14:39:54.101 INFO 7300 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2019-02-12 14:39:54.188 INFO 7300 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2019-02-12 14:39:54.189 INFO 7300 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2019-02-12 14:39:54.359 INFO 7300 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2019-02-12 14:39:54.791 INFO 7300 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup
2019-02-12 14:39:54.800 INFO 7300 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Bean with name 'connectionFactory' has been autodetected for JMX exposure
2019-02-12 14:39:54.804 INFO 7300 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Located managed bean 'connectionFactory': registering with JMX server as MBean [org.springframework.amqp.rabbit.connection:name=connectionFactory,type=CachingConnectionFactory]
2019-02-12 14:39:54.844 INFO 7300 --- [ main] o.s.c.support.DefaultLifecycleProcessor : Starting beans in phase -2147482648
2019-02-12 14:39:54.844 INFO 7300 --- [ main] o.s.c.support.DefaultLifecycleProcessor : Starting beans in phase 2147483647
2019-02-12 14:39:54.979 INFO 7300 --- [cTaskExecutor-1] o.s.a.r.c.CachingConnectionFactory : Created new connection: SimpleConnection@652d8481 [delegate=amqp://guest@127.0.0.1:5672/, localPort= 60513]
2019-02-12 14:39:55.076 ERROR 7300 --- [ 127.0.0.1:5672] o.s.a.r.c.CachingConnectionFactory : Channel shutdown: channel error; protocol method: #method<channel.close>(reply-code=403, reply-text=ACCESS_REFUSED - access to exchange 'topicExchange' in vhost '/' refused for user 'guest', class-id=40, method-id=10)
2019-02-12 14:39:55.146 ERROR 7300 --- [cTaskExecutor-1] o.s.a.r.l.SimpleMessageListenerContainer : Failed to check/redeclare auto-delete queue(s).

org.springframework.amqp.AmqpIOException: java.io.IOException
at org.springframework.amqp.rabbit.support.RabbitExceptionTranslator.convertRabbitAccessException(RabbitExceptionTranslator.java:71) ~[spring-rabbit-1.6.2.RELEASE.jar:na]
at org.springframework.amqp.rabbit.connection.RabbitAccessor.convertRabbitAccessException(RabbitAccessor.java:113) ~[spring-rabbit-1.6.2.RELEASE.jar:na]
at org.springframework.amqp.rabbit.core.RabbitTemplate.doExecute(RabbitTemplate.java:1418) ~[spring-rabbit-1.6.2.RELEASE.jar:na]
at org.springframework.amqp.rabbit.core.RabbitTemplate.execute(RabbitTemplate.java:1368) ~[spring-rabbit-1.6.2.RELEASE.jar:na]
at org.springframework.amqp.rabbit.core.RabbitTemplate.execute(RabbitTemplate.java:1344) ~[spring-rabbit-1.6.2.RELEASE.jar:na]
at org.springframework.amqp.rabbit.core.RabbitAdmin.initialize(RabbitAdmin.java:502) ~[spring-rabbit-1.6.2.RELEASE.jar:na]
at org.springframework.amqp.rabbit.core.RabbitAdmin$11.onCreate(RabbitAdmin.java:418) ~[spring-rabbit-1.6.2.RELEASE.jar:na]
at org.springframework.amqp.rabbit.connection.CompositeConnectionListener.onCreate(CompositeConnectionListener.java:33) ~[spring-rabbit-1.6.2.RELEASE.jar:na]
at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.createConnection(CachingConnectionFactory.java:553) ~[spring-rabbit-1.6.2.RELEASE.jar:na]
at org.springframework.amqp.rabbit.core.RabbitTemplate.doExecute(RabbitTemplate.java:1387) ~[spring-rabbit-1.6.2.RELEASE.jar:na]
at org.springframework.amqp.rabbit.core.RabbitTemplate.execute(RabbitTemplate.java:1368) ~[spring-rabbit-1.6.2.RELEASE.jar:na]
at org.springframework.amqp.rabbit.core.RabbitTemplate.execute(RabbitTemplate.java:1344) ~[spring-rabbit-1.6.2.RELEASE.jar:na]
at org.springframework.amqp.rabbit.core.RabbitAdmin.getQueueProperties(RabbitAdmin.java:335) ~[spring-rabbit-1.6.2.RELEASE.jar:na

Yesdito的主页 Yesdito | 初学一级 | 园豆:46
提问于:2019-02-12 14:50
< >
分享
最佳答案
1

原因:用户‘guest’没有权限访问‘/’
springboot-rabbitmq 问题access to vhost '/' refused for user 权限问题

奖励园豆:5
ycyzharry | 专家六级 |园豆:15467 | 2019-02-13 08:50
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册