Description
Symptom
=======
org.apache.activemq.transport.http.HttpTunnelServlet.java contains the following logic:
protected BlockingQueueTransport createTransportChannel(HttpServletRequest request, HttpServletResponse response) throws IOException {
...
clients.put(clientID, answer);
Transport transport = answer;
try
catch (Exception e)
{ IOExceptionSupport.create(e); }If the call to transportFactory.serverConfigure(...) throws an exception, IOExceptionSupport.create(e) is called, which wraps the exception in an IOException, but that IOException is never thrown.
Solution
=======
See attached patch file. Add a "throw" clause to propagate the IOException.