aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes ActiveMQ ERROR [Managed Region Broker] Failed to register destination queue:// Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "ActiveMQ ERROR [Managed Region Broker] Failed to register destination queue://" Watch "ActiveMQ ERROR [Managed Region Broker] Failed to register destination queue://" New topic
Author

ActiveMQ ERROR [Managed Region Broker] Failed to register destination queue://

kiran redde
Greenhorn

Joined: Nov 23, 2008
Posts: 1
hi i new to ActiveMQ,
i have deployed activemq-rar-5.1.0.rar in jboss deploy folder, i have placed the activemq-jms-ds.xml file in the deply folder and i have one ejb MDB, in which i have done like following coding to for the queue settings
------------------
@MessageDriven(activationConfig =
{
@ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"),
@ActivationConfigProperty(propertyName="destination", propertyValue="FOO.>"),
@ActivationConfigProperty(propertyName="acknowledgeMode", propertyValue="Auto-acknowledge")
})
@ResourceAdapter("activemq-rar-5.1.0.rar")
-------------
and when i am starting jboss i am getting the following error
-------------------------
17:39:53,625 WARN [ManagementContext] Failed to start jmx connector: Cannot bind to URL [rmi://localhost:1099/jmxrmi]: javax.nami
ng.CommunicationException [Root exception is java.rmi.ConnectIOException: non-JRMP server at remote endpoint]
17:39:53,656 INFO [KahaStore] Kaha Store using data directory activemq-data\localhost\kr-store\state
17:39:53,734 INFO [AMQPersistenceAdapter] Active data files: [1]
17:39:54,031 INFO [KahaStore] Kaha Store using data directory activemq-data\localhost\kr-store\data
17:39:54,343 ERROR [ManagedRegionBroker] Failed to register destination queue://
javax.management.MalformedObjectNameException: Unterminated key property part
at javax.management.ObjectName.construct(ObjectName.java:465)
at javax.management.ObjectName.<init>(ObjectName.java:1304)
at org.apache.activemq.broker.jmx.ManagedRegionBroker.createObjectName(ManagedRegionBroker.java:495)
at org.apache.activemq.broker.jmx.ManagedRegionBroker.register(ManagedRegionBroker.java:143)
at org.apache.activemq.broker.jmx.ManagedQueueRegion.createDestination(ManagedQueueRegion.java:57)
at org.apache.activemq.broker.region.AbstractRegion.addDestination(AbstractRegion.java:120)
at org.apache.activemq.broker.region.RegionBroker.addDestination(RegionBroker.java:263)
at org.apache.activemq.broker.BrokerFilter.addDestination(BrokerFilter.java:141)
at org.apache.activemq.advisory.AdvisoryBroker.addDestination(AdvisoryBroker.java:147)
at org.apache.activemq.broker.BrokerFilter.addDestination(BrokerFilter.java:141)
at org.apache.activemq.broker.MutableBrokerFilter.addDestination(MutableBrokerFilter.java:148)
at org.apache.activemq.broker.region.AbstractRegion.start(AbstractRegion.java:94)
at org.apache.activemq.broker.region.RegionBroker.start(RegionBroker.java:178)
at org.apache.activemq.broker.jmx.ManagedRegionBroker.start(ManagedRegionBroker.java:103)
at org.apache.activemq.broker.TransactionBroker.start(TransactionBroker.java:112)
at org.apache.activemq.broker.BrokerFilter.start(BrokerFilter.java:153)
at org.apache.activemq.broker.BrokerFilter.start(BrokerFilter.java:153)
at org.apache.activemq.broker.MutableBrokerFilter.start(MutableBrokerFilter.java:160)
at org.apache.activemq.broker.BrokerService.start(BrokerService.java:444)
at org.apache.activemq.transport.vm.VMTransportFactory.doCompositeConnect(VMTransportFactory.java:119)
at org.apache.activemq.transport.vm.VMTransportFactory.doConnect(VMTransportFactory.java:53)
at org.apache.activemq.transport.TransportFactory.doConnect(TransportFactory.java:47)
at org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java:76)
at org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:235)
at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:250)
at org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:177)
at org.apache.activemq.ra.ActiveMQResourceAdapter.makeConnection(ActiveMQResourceAdapter.java:127)
at org.apache.activemq.ra.ActiveMQEndpointWorker$1.run(ActiveMQEndpointWorker.java:106)
at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:756)
at java.lang.Thread.run(Thread.java:595)
---------------

i am not able to find the reson for the error, please help me,

Thanks in advance
j quast
Greenhorn

Joined: Mar 14, 2011
Posts: 1
kiran redde wrote:
------------------
@MessageDriven(activationConfig =
{
@ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"),
@ActivationConfigProperty(propertyName="destination", propertyValue="FOO.>"),
@ActivationConfigProperty(propertyName="acknowledgeMode", propertyValue="Auto-acknowledge")
})
@ResourceAdapter("activemq-rar-5.1.0.rar")
-------------
and when i am starting jboss i am getting the following error
-------------------------
17:39:54,343 ERROR [ManagedRegionBroker] Failed to register destination queue://
javax.management.MalformedObjectNameException: Unterminated key property part
at javax.management.ObjectName.construct(ObjectName.java:465)
at javax.management.ObjectName.<init>(ObjectName.java:1304)
at org.apache.activemq.broker.jmx.ManagedRegionBroker.createObjectName(ManagedRegionBroker.java:495)
at org.apache.activemq.broker.jmx.ManagedRegionBroker.register(ManagedRegionBroker.java:143)
at org.apache.activemq.broker.jmx.ManagedQueueRegion.createDestination(ManagedQueueRegion.java:57)

(...)


The problem is very likely due to the '<' used in your 'destination' xml value.

It should be '&lt;'. You can always run the command: xmllint --format < file > file.fixed to resolve these entity escaping issues.
 
 
subject: ActiveMQ ERROR [Managed Region Broker] Failed to register destination queue://