Skip to content
Advertisement

ActiveMQ setup – Unable to send the message to Queue (error – java.io.IOException: Unknown data type: 47)

I have installed ActiveMQ and could access the url at – http://localhost:8161/admin/queues.jsp. When I try to drop a message to a queue I am getting the below error.

The sample code is given below:

JavaScript

Spring xml is:

JavaScript

Error is:

JavaScript

Advertisement

Answer

The ‘Unknown data type: 47’ error is due to the configuration you are using for the following broker URL:

JavaScript

The problem is that the port number is incorrect. Port 8161 is where the embedded ActiveMQ web server runs, and therefore where you can access the web console. This explains the error message and stack trace that you’re seeing. Whenever you visit the web console for the broker at this address (*:8161) the exception is thrown.

To fix the problem, change the port number to the port on which the ActiveMQ TCP transport is listening. I hazard a guess that it is probably the default port number of 61616.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement