My Oracle Support Banner

Topic based Message Driven Bean (MDB) Application does not get Loaded in a Glassfish cluster (Doc ID 1147403.1)

Last updated on JULY 31, 2018

Applies to:

Sun Java System Message Queue - Version: 4.1 to 4.4 - Release: 4.1 to 4.4
Sun GlassFish Enterprise Server - Version: 2.1 and later    [Release: 2.1 and later]
Information in this document applies to any platform.

Symptoms

The Message Driven Bean (MDB) application that consumes from Topic messages does not get loaded when the Glassfish server instance is started. This could happen if the application is run in a Glassfish instance that is part of a Glassfish cluster. The failure of such an event will be logged into the instance's server.log as follows:

com.sun.messaging.jms.JMSException: [ADD_CONSUMER_REPLY(15)] [C4036]: A broker error occurred. :[503] [B4288]: Creation of consumer on topic testtopic is not allowed on service jms because service restriction [NO_SYNC_WITH_MASTERBROKER] is in effect. user=guest, broker=localhost:3700(47276)
at com.sun.messaging.jmq.jmsclient.ProtocolHandler.throwServerErrorException(ProtocolHandler.java:3982)
at com.sun.messaging.jmq.jmsclient.ProtocolHandler.addInterest(ProtocolHandler.java:2307)
at com.sun.messaging.jmq.jmsclient.WriteChannel.addInterest(WriteChannel.java:88)
at com.sun.messaging.jmq.jmsclient.ConnectionImpl.addInterest(ConnectionImpl.java:1338)
at com.sun.messaging.jmq.jmsclient.Consumer.registerInterest(Consumer.java:145)
at com.sun.messaging.jmq.jmsclient.MessageConsumerImpl.addInterest(MessageConsumerImpl.java:170)
at com.sun.messaging.jmq.jmsclient.MessageConsumerImpl.init(MessageConsumerImpl.java:157)
at com.sun.messaging.jmq.jmsclient.MessageConsumerImpl.(MessageConsumerImpl.java:115)
at com.sun.messaging.jmq.jmsclient.TopicSubscriberImpl.(TopicSubscriberImpl.java:104)
at com.sun.messaging.jmq.jmsclient.UnifiedSessionImpl.createSubscriber(UnifiedSessionImpl.java:313)
at com.sun.messaging.jmq.jmsclient.UnifiedSessionImpl.createSubscriber(UnifiedSessionImpl.java:274)
at com.sun.messaging.jms.ra.SessionAdapter.createSubscriber(SessionAdapter.java:312)
....
[#|<Timestamp>|WARNING|sun-appserver2.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;xxxx;_RequestID=yyyyyy;|CORE5021: Application NOT loaded: [xxxx]|#]


In summary, the error "Creation of consumer on topic testtopic is not allowed on service jms because service restriction [NO_SYNC_WITH_MASTERBROKER]" indicates that the Message Queue (MQ) master broker was not up and the MDB application is not started or usable as a result.



Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.