"org.apache.activemq.transport.TransportDisposedIOException: Peer (vm://localhost#1) disposed" when trying to browse a queue destination using the web console

Solution Verified - Updated -

Issue

Seeing the error

org.apache.activemq.transport.TransportDisposedIOException: Peer (vm://localhost#1) disposed.

in the broker log every time when trying to browse any destination in the web console.

Before the above error there is a single instance of this error in the broker's log:

java.lang.SecurityException: User jetty is not authorized to read from: queue://Test.2

Given this error it is assumed that access to the ActiveMQ Web Console is secured using authentication via a user called jetty. See Web Console Security for more information.

The broker is secured using authentication and authorization using a configuration similar to

    <plugins>
      <jaasAuthenticationPlugin configuration="PropertiesLogin" />
      <authorizationPlugin>
        <map>
          <authorizationMap>
            <authorizationEntries>
              <authorizationEntry queue="Test.1" read="admins,web" write="admins,web" admin="admins,web"/>
              <authorizationEntry queue="Test.2" read="admins" write="admins" admin="admins"/>
              <authorizationEntry queue="&gt;" read="admins" write="admins" admin="admins"/>
          <authorizationEntry topic="ActiveMQ.Advisory.&gt;" read="admins,web" write="admins,web" admin="admins,web"/>
            </authorizationEntries>
          </authorizationMap>
        </map>
      </authorizationPlugin>
    </plugins>

Consult the Fuse Message Broker for more information on securing the broker.

Environment

  • Fuse Message Broker 5.5.x
  • Fuse MQ Enterprise 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content