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

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. B-spline Curves 学习之B样条曲线的系数计算与B样条曲线特例(6)

    B-spline Curves: Computing the Coefficients 本博客转自前人的博客的翻译版本,前几章节是原来博主的翻译内容,但是后续章节博主不在提供翻译,后续章节我在完成相关 ...

  2. handsontable-developer guide-cell editor

    单元格编辑 cell editor renderer:展示数据:editor:改变数据:renderer用一个函数表示:后者有一系列的操作,需要用class来表示: EditorManager han ...

  3. 更改SQL Server中默认备份文件夹

    当你安装SQL Server时,安装路径一般如下:C:\Program Files\Microsoft SQL Server\MSSQL.2\MSSQL.在这个目录下也有数据文件的文件夹和备份文件的文 ...

  4. PipelineDB On Kafka

    PipelineDB 安装yum install https://s3-us-west-2.amazonaws.com/download.pipelinedb.com/pipelinedb-0.9.8 ...

  5. 使用Object.create()实现继承

    一.常见继承方式 我们日常开发中常见的继承方式主要有: 1.默认模式: Child.prototype = new Parent(); 2.借用构造函数: function Child(a, b, c ...

  6. Jenkins 默认没有Launch agent via Java Web Start,该如何配置

    打开"系统管理"——"Configure Global Security" TCP port JNLP agents 配置成"随机",点击& ...

  7. 好看的table样式

    收藏个好看的table样式 <style type="text/css">table.gridtable { font-family: verdana,arial,sa ...

  8. vuejs 添加事件时出现TypeError: n.apply is not a function

    vuejs项目中给表单元素添加事件时出现了TypeError: n.apply is not a function的错误,后来发现错误原因时处理事件的函数名和data中定义的变量名相同 当给事件添加处 ...

  9. 【ocp-12c】最新Oracle OCP-071考试题库(39题)

    39.choose the best answer View the Exhibit and examine the description of the EMPLOYEES table. You w ...

  10. lamp-linux-1

    LAMP编程之Linux(1) LAMP:Linux Apache MySQL PHP LNMP:Linux Nginx MySQL PHP WAMP:Windows Apache MySQL PHP ...