org.apache.activemq.protobuf.InvalidProtocolBufferException: Protocol message contained an invalid tag (zero).

Solution Verified - Updated -

Issue

  • ActiveMQ broker fails to start with the following error:
10:23:20,386 | ERROR | MQ Broker-1: amq | BrokerService                    | 114 - org.apache.activemq.activemq-osgi - 5.8.0.redhat-60057 | Failed to start Apache ActiveMQ (amq, null). Reason: org.apache.activemq.protobuf.InvalidProtocolBufferException: Protocol message contained an invalid tag (zero).
org.apache.activemq.protobuf.InvalidProtocolBufferException: Protocol message contained an invalid tag (zero).
    at org.apache.activemq.protobuf.InvalidProtocolBufferException.invalidTag(InvalidProtocolBufferException.java:48)[114:org.apache.activemq.activemq-osgi:5.8.0.redhat-60057]
    at org.apache.activemq.protobuf.CodedInputStream.readTag(CodedInputStream.java:75)[114:org.apache.activemq.activemq-osgi:5.8.0.redhat-60057]
    at org.apache.activemq.store.kahadb.data.KahaAddMessageCommand.mergeUnframed(KahaAddMessageCommand.java:110)[114:org.apache.activemq.activemq-osgi:5.8.0.redhat-60057]
    at org.apache.activemq.store.kahadb.data.KahaAddMessageCommand.mergeUnframed(KahaAddMessageCommand.java:7)[114:org.apache.activemq.activemq-osgi:5.8.0.redhat-60057]
    at org.apache.activemq.protobuf.BaseMessage.mergeUnframed(BaseMessage.java:184)[114:org.apache.activemq.activemq-osgi:5.8.0.redhat-60057]
    at org.apache.activemq.protobuf.BaseMessage.mergeUnframed(BaseMessage.java:213)[114:org.apache.activemq.activemq-osgi:5.8.0.redhat-60057]
    at org.apache.activemq.protobuf.BaseMessage.mergeFramed(BaseMessage.java:237)[114:org.apache.activemq.activemq-osgi:5.8.0.redhat-60057]
    at org.apache.activemq.store.kahadb.MessageDatabase.load(MessageDatabase.java:947)[114:org.apache.activemq.activemq-osgi:5.8.0.redhat-60057]
    at org.apache.activemq.store.kahadb.MessageDatabase.recover(MessageDatabase.java:553)[114:org.apache.activemq.activemq-osgi:5.8.0.redhat-60057]
    at org.apache.activemq.store.kahadb.MessageDatabase.open(MessageDatabase.java:363)[114:org.apache.activemq.activemq-osgi:5.8.0.redhat-60057]
    at org.apache.activemq.store.kahadb.MessageDatabase.load(MessageDatabase.java:381)[114:org.apache.activemq.activemq-osgi:5.8.0.redhat-60057]
    at org.apache.activemq.store.kahadb.MessageDatabase.doStart(MessageDatabase.java:234)[114:org.apache.activemq.activemq-osgi:5.8.0.redhat-60057]
    at org.apache.activemq.store.kahadb.KahaDBStore.doStart(KahaDBStore.java:180)[114:org.apache.activemq.activemq-osgi:5.8.0.redhat-60057]
    at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)[114:org.apache.activemq.activemq-osgi:5.8.0.redhat-60057]
    at org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter.doStart(KahaDBPersistenceAdapter.java:220)[114:org.apache.activemq.activemq-osgi:5.8.0.redhat-60057]
    at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)[114:org.apache.activemq.activemq-osgi:5.8.0.redhat-60057]
    at org.apache.activemq.broker.BrokerService.doStartPersistenceAdapter(BrokerService.java:616)[114:org.apache.activemq.activemq-osgi:5.8.0.redhat-60057]
    at org.apache.activemq.broker.BrokerService.startPersistenceAdapter(BrokerService.java:605)[114:org.apache.activemq.activemq-osgi:5.8.0.redhat-60057]
    at org.apache.activemq.broker.BrokerService.start(BrokerService.java:570)[114:org.apache.activemq.activemq-osgi:5.8.0.redhat-60057]
    at org.fusesource.mq.fabric.ActiveMQServiceFactory$ClusteredConfiguration.org$fusesource$mq$fabric$ActiveMQServiceFactory$ClusteredConfiguration$$doStart(ActiveMQServiceFactory.scala:364)[128:org.jboss.amq.mq-fabric:6.0.0.redhat-057]
    at org.fusesource.mq.fabric.ActiveMQServiceFactory$ClusteredConfiguration$$anon$4.run(ActiveMQServiceFactory.scala:326)[128:org.jboss.amq.mq-fabric:6.0.0.redhat-057]

Environment

  • Red Hat JBoss Fuse
    • 6.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