出现上面错误的原因有以下两种

1 jdk的版本和activemq的版本不符

安装完ActiveMQ之后,通过http://IP:8161登陆到控制台。

通过测试代码给服务端发送队列消息,在控制台点击queue可以看到如下消息:

然后点击队列名称test-queue,出现如下页面:

然后点击MessageID,应该出现以下页面:

但是我的却报错了,出现了一下错误:

Exception occurred while processing this request, check the log for more information!

查看MQ的错误日志(data路径下的activemq)

错误原因:jsp渲染的时候报错了。根本原因在于jdk版本和activemq版本的问题。

小编的activeMQ的版本为5.12,jdk的版本为1.8,然而mq5.12的版本需要依赖于jdk1.7.

两种解决方案:

1、把jdk版本改为jdk1.7

2、activeMQ采用5.15,它依赖于jdk1.8

2 权限不足

安装ActiveMq-5.14.1  并配置了安全验证成功后,客户端也连接成功了。服务端也能通过http://IP:8161登录到控制台。

但是在点击队列,想要查看队列视图时报错,如下图:

查看日志发现有如下报错:

那么我就开始找配置这个用户的地方,发下时conf目录下的credentials.properties文件中。

内容如下:

这里有这个账户的配置,那么是哪里引用这个配置文件呢?

在主配置文件 activemq.xml 查看,发现如下:

大概了解了下,这段配置的作用,是在控制台中查看,删除、发送消息到指定队列或主题的使用的账户。前面我们登录管理控制台仅是控制台的验证。要操作队列当然要用队列授权的用户。于是我想既然credentials.properties中配置了账户为system,那么我可以在user.properties中创建一个system用户。于是编辑

vim user.properties

这样这个用户就有了

然后我们再次访问发现前端依然报错,错误日志有所改变,错误日志信息如下:

这个报错大概就是没有权限的原因,这时候我想到虽然用户创建了,但是还没做授权。于是最简单就是把system账户加入到admins组中。

于是vim groups.properties

保存退出,然后在重启activemq,测试成功,如图:

备注:

如果你想改配置文件的地址,可以更改conf/log4j.propertiesd配置文件

文章来源:

https://blog.csdn.net/wxr15732623310/article/details/79132976

https://www.cnblogs.com/zhming26/p/6101916.html

ActiveMQ:Exception occurred while processing this request, check the log for more information!的更多相关文章

  1. 关于ActiveMq的Exception occurred while processing this request, check the log for more information!问题

    错误原因:jsp渲染的时候报错了.根本原因在于jdk版本和activemq版本的问题. 两种解决方案: 1.把jdk版本改为jdk1.7 2.activeMQ采用5.15,它依赖于jdk1.8

  2. Exception occurred while processing this request, check the log for more information!安装ActiveMq-5.14.1 配置安全验证报错解决

    安装ActiveMq-5.14.1  并配置了安全验证成功后,客户端也连接成功了.服务端也能通过http://IP:8161登录到控制台. 但是在点击队列,想要查看队列视图时报错,如下图: 查看日志发 ...

  3. [已解决]An unhandled exception occurred while processing the request.

    An unhandled exception occurred while processing the request. InvalidOperationException: The layout ...

  4. struts2与struts1整合,java.lang.InstantiationException, Exception occurred during processing request: null

    做了2个action,其中一个运行没有问题,另一个报错,看下面的报错信息,再看了看struts.xml,因为没有给GetBooks这个action配置actionform,所以就导致报null.下面是 ...

  5. SSH中使用延迟加载报错Exception occurred during processing request: could not initialize proxy - no Session

    17:40:17,249 ERROR DefaultDispatcherErrorHandler:42 - Exception occurred during processing request: ...

  6. Exception occurred during processing request: id to load is required for loading

    ERROR Dispatcher:38 - Exception occurred during processing request: id to load is required for loadi ...

  7. An exception occurred during a WebClient request

    System.Net.WebException was caught HResult=-2146233079 Message=An exception occurred during a WebCli ...

  8. PHP: configure: error: mysql configure failed. Please check config.log for more information.

    为php增加mysql模块时报错 configure: error: mysql configure failed. Please check config.log for more informat ...

  9. configure: error: mysql configure failed. Please check config.log for more information.

    为php添加mysql模块时报错 configure: error: mysql configure failed. Please check config.log for more informat ...

随机推荐

  1. [转]分布式中使用Redis实现Session共享(二)

    本文转自:http://www.cnblogs.com/yanweidie/p/4678095.html 上一篇介绍了一些redis的安装及使用步骤,本篇开始将介绍redis的实际应用场景,先从最常见 ...

  2. javascript与java的相互调用,纯java的javascript引擎rhino(转载)

    1.下载Rhino安装包,下载地址:官网http://www.mozilla.org/rhino. 2.rhino环境配置,把解压出来的js.jar文件加入到系统的环境变量classpath 3.在命 ...

  3. redis修改端口号

    为redis分配一个8888端口,操作步骤如下: 1.$REDIS_HOME/redis.conf重新复制一份,重命名为redis8888.conf. 2.打开redis8888.conf配置文件,找 ...

  4. Android-自定义联系人快速索引

    效果图: 布局去指定 view.custom.shangguigucustomview.MyCustomIndexView 自定义View对象 <!-- 自定义联系人快速索引 --> &l ...

  5. php的循环与引用的一个坑

    上代码 $arr = array( 'a'=> 'a11', 'b'=> 'b22', 'c'=> 'c33', ); foreach ($arr as $k=>&$v ...

  6. Elasticsearch中的索引管理和搜索常用命令总结

    添加一个index,指定分片是3,副本是1 curl -XPUT "http://10.10.110.125:9200/test_ods" -d' { "settings ...

  7. 推荐两款国人开发的html前段框架

    1.http://www.h-ui.net/  H-ui前端框架官方网站 2.http://www.builive.com/  BUI是基于JQuery的富客户端UI框架

  8. Solr(一) 安装部署环境

    Solr运行环境 第一步:安装java jdk 第二步:安装tomcat服务器 安装过程:参考http://jingyan.baidu.com/article/870c6fc33e62bcb03fe4 ...

  9. AutoMapper之如何开始,适合入门和演示

    原来想应该介绍下背景说明下好处什么的,仔细想都是废话 ,直接上代码吧. 首先有两个类,一个是和数据库对应的实体 Student,一个是和页面展示相关的页面模型 StudentModel. /// &l ...

  10. Android - Telephony API 1.6

    SignalStrength: 1. public int getGsmSignalStrength() : GSM Signal Strength, valid values are (0-31, ...