RabbitMQ启动报错throw:{error,{missing_dependencies,[crypto,ssl]

在启动 rabbitmq-server 时报错:

2018-01-03 06:16:32.494 [info] <0.33.0> Application lager started on node rabbit@ubuntu
2018-01-03 06:16:32.507 [info] <0.5.0> Log file opened with Lager
2018-01-03 06:16:33.438 [error] <0.5.0> 
Error description:
    init:do_boot/3
    init:start_em/1
    rabbit:start_it/1 line 454
    rabbit:broker_start/0 line 330
    rabbit_plugins:prepare_plugins/1 line 289
    rabbit_plugins:ensure_dependencies/1 line 263
throw:{error,{missing_dependencies,[crypto,ssl],
                                   [amqp10_client,cowboy,cowlib,rabbitmq_aws,
                                    rabbitmq_management,
                                    rabbitmq_management_agent,rabbitmq_shovel,
                                    rabbitmq_trust_store]}}
Log file(s) (may contain more information):
   /home/zhangcs/rabbitmq_server-3.7.2/var/log/rabbitmq/rabbit@ubuntu.log
   /home/zhangcs/rabbitmq_server-3.7.2/var/log/rabbitmq/rabbit@ubuntu_upgrade.log
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18

根据异常提示,原先以为是缺少了OpenSSL,但是检查后发现OpenSSL已经成功安装

$ openssl version
OpenSSL 1.0.2g  1 Mar 2016

通过搜索引擎找了半天没收获,最后却在官网找到了相关信息:在 “Debian-based systems” 上,Erlang支持OpenSSL需要安装 erlang-ssl ;而我当前的系统 Ubuntu16.04TLS 正属于Debian系

If you receive an error instead, confirm that Erlang was built with OpenSSL. On Debian-based systems you may need to install the erlang-ssl package.

1、检查当前Erlang是否支持TSL/SSL

进入Erlang后使用命令 ssl:versions(). 检查当前SSL版本

zhangcs@ubuntu:~/rabbitmq_server-3.7.2$ erl
Erlang/OTP 20 [erts-9.1] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:10] [kernel-poll:false]

Eshell V9.1  (abort with ^G)
1> ssl:versions().
** exception error: undefined function ssl:versions/0
2> halt().

2、安装 erlang-ssl 后问题解决

$ sudo apt install erlang-ssl
  • 1

安装 erlang-ssl 后检查SSL版本

zhangcs@ubuntu:~/rabbitmq_server-3.7.2$ erl
Erlang/OTP 18 [erts-7.3] [source] [64-bit] [smp:2:2] [async-threads:10] [kernel-poll:false]

Eshell V7.3  (abort with ^G)
1> ssl:versions().
[{ssl_app,"7.3"},
 {supported,['tlsv1.2','tlsv1.1',tlsv1]},
 {available,['tlsv1.2','tlsv1.1',tlsv1,sslv3]}]
2> halt().

启动 rabbitmq-server 时不再报错

展开阅读全文

tomcat 启动报错 ERROR [org.springframework.web.context.ContextLoader] -

06-27

2013-06-27 09:22:11,546 ERROR [org.springframework.web.context.ContextLoader] - rnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'observerPostProcessor' defined in URL [jar:file:/D:/hydra9/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/project/WEB-INF/lib/polyforms-event-impl-0.3.2.jar!/META-INF/spring/context.xml]: Cannot resolve reference to bean 'domainEventBus' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'delegatorAspect' defined in URL [jar:file:/D:/hydra9/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/project/WEB-INF/lib/polyforms-bean-0.3.2.jar!/META-INF/spring/context.xml]: Cannot resolve reference to bean 'beanConverter' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'beanConverter' defined in URL [jar:file:/D:/hydra9/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/project/WEB-INF/lib/polyforms-bean-0.3.2.jar!/META-INF/spring/context.xml]: Cannot create inner bean 'net.sf.dozer.util.mapping.DozerBeanMapper#1719d5b' of type [net.sf.dozer.util.mapping.DozerBeanMapper] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'net.sf.dozer.util.mapping.DozerBeanMapper#1719d5b' defined in URL [jar:file:/D:/hydra9/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/project/WEB-INF/lib/polyforms-bean-0.3.2.jar!/META-INF/spring/context.xml]: Cannot create inner bean 'cn.muthos.polyforms.bean.convert.impl.EntityConverter#548719' of type [cn.muthos.polyforms.bean.convert.impl.EntityConverter] while setting bean property 'customConverters' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cn.muthos.polyforms.bean.convert.impl.EntityConverter#548719' defined in URL [jar:file:/D:/hydra9/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/project/WEB-INF/lib/polyforms-bean-0.3.2.jar!/META-INF/spring/context.xml]: Cannot resolve reference to bean 'baseDao' while setting bean property 'baseDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'baseDao' defined in URL [jar:file:/D:/hydra9/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/project/WEB-INF/lib/polyforms-hibernate-0.3.2.jar!/META-INF/spring/context.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in URL [file:/D:/hydra9/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/project/WEB-INF/classes/daoContext.xml]: Invocation of init method failed; nested exception is java.lang.OutOfMemoryError: Java heap spacernCaused by: rnjava.lang.OutOfMemoryError: Java heap spacern at java.util.Arrays.copyOfRange(Unknown Source)rn at java.lang.String.(Unknown Source)rn at java.lang.StringBuffer.toString(Unknown Source)rn at org.hibernate.sql.Select.toStatementString(Select.java:75)rn at org.hibernate.loader.AbstractEntityJoinWalker.initStatementString(AbstractEntityJoinWalker.java:115)rn at org.hibernate.loader.AbstractEntityJoinWalker.initStatementString(AbstractEntityJoinWalker.java:78)rn at org.hibernate.loader.AbstractEntityJoinWalker.initAll(AbstractEntityJoinWalker.java:58)rn at org.hibernate.loader.entity.EntityJoinWalker.(EntityJoinWalker.java:42)rn at org.hibernate.loader.entity.EntityLoader.(EntityLoader.java:65)rn at org.hibernate.loader.entity.EntityLoader.(EntityLoader.java:43) 论坛

rabbitmq spring queue 404 error

06-20

配置如下:rn[code=text]rn rn rn rn rn rnrn rnrn rn rn rn rnrn rn rn rn rn[/code]rn报错如下,同样的配置在其他工程里都不报错(不存在会自动创建),就放新工程里就老抱这个错误,为何?求解?rn[code=text]rn[2014-06-20 14:17:09 734 ERROR] web.servlet.DispatcherServlet - Context initialization failedrnorg.springframework.context.ApplicationContextException: Failed to start bean 'org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer#0'; nested exception is org.springframework.amqp.AmqpIllegalStateException: Fatal exception on listener startuprn at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:170)rn at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:51)rn at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:339)rn at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:143)rn at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:108)rn at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:945)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)rn at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:651)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:599)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:665)rn at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:518)rn at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:459)rn at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)rn at javax.servlet.GenericServlet.init(GenericServlet.java:160)rn at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5176)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5460)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)rn at java.util.concurrent.FutureTask.run(FutureTask.java:262)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rnCaused by: org.springframework.amqp.AmqpIllegalStateException: Fatal exception on listener startuprn at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.doStart(SimpleMessageListenerContainer.java:342)rn at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.start(AbstractMessageListenerContainer.java:363)rn at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:167)rn ... 25 morernCaused by: org.springframework.amqp.rabbit.listener.FatalListenerStartupException: Cannot prepare queue for listener. Either the queue doesn't exist or the broker will not allow us to use it.rn at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.start(BlockingQueueConsumer.java:231)rn at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run(SimpleMessageListenerContainer.java:527)rn ... 1 morernCaused by: java.io.IOExceptionrn at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:106)rn at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:102)rn at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:124)rn at com.rabbitmq.client.impl.ChannelN.queueDeclarePassive(ChannelN.java:790)rn at com.rabbitmq.client.impl.ChannelN.queueDeclarePassive(ChannelN.java:61)rn at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:606)rn at org.springframework.amqp.rabbit.connection.CachingConnectionFactory$CachedChannelInvocationHandler.invoke(CachingConnectionFactory.java:348)rn at com.sun.proxy.$Proxy20.queueDeclarePassive(Unknown Source)rn at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.start(BlockingQueueConsumer.java:216)rn ... 2 morernCaused by: com.rabbitmq.client.ShutdownSignalException: channel error; reason: #method(reply-code=404, reply-text=NOT_FOUND - no queue 'portraitQueue' in vhost '/', class-id=50, method-id=10), null, ""rn at com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:67)rn at com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:33)rn at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:343)rn at com.rabbitmq.client.impl.AMQChannel.privateRpc(AMQChannel.java:216)rn at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:118)rn ... 10 morernCaused by: com.rabbitmq.client.ShutdownSignalException: channel error; reason: #method(reply-code=404, reply-text=NOT_FOUND - no queue 'portraitQueue' in vhost '/', class-id=50, method-id=10), null, ""rn at com.rabbitmq.client.impl.ChannelN.asyncShutdown(ChannelN.java:474)rn at com.rabbitmq.client.impl.ChannelN.processAsync(ChannelN.java:315)rn at com.rabbitmq.client.impl.AMQChannel.handleCompleteInboundCommand(AMQChannel.java:144)rn at com.rabbitmq.client.impl.AMQChannel.handleFrame(AMQChannel.java:91)rn at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:533)rn[/code] 论坛

没有更多推荐了,返回首页