安裝完ActiveMQ之後,通過http://IP:8161登陸到控制台。
通過測試代碼給服務端發送隊列消息,在控制台點選queue可以看到如下消息:
ActiveMQ:Exception occurred while processing this request, check the log for more information! 然後點選隊列名稱test-queue,出現如下頁面:
ActiveMQ:Exception occurred while processing this request, check the log for more information! 然後點選MessageID,應該出現以下頁面:
ActiveMQ:Exception occurred while processing this request, check the log for more information! 但是我的卻報錯了,出現了一下錯誤:
Exception occurred while processing this request, check the log for more information!
ActiveMQ:Exception occurred while processing this request, check the log for more information! 檢視MQ的錯誤日志(data路徑下的activemq)
ActiveMQ:Exception occurred while processing this request, check the log for more information! 錯誤原因:jsp渲染的時候報錯了。根本原因在于jdk版本和activemq版本的問題。
小編的activeMQ的版本為5.12,jdk的版本為1.8,然而mq5.12的版本需要依賴于jdk1.7.
兩種解決方案:
1、把jdk版本改為jdk1.7
2、activeMQ采用5.15,它依賴于jdk1.8