You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Robert Gemmell (JIRA)" <qp...@incubator.apache.org> on 2009/04/10 18:12:14 UTC
[jira] Created: (QPID-1802) [Java broker] failure to startup when
attempting to recover queue contents from BDB persistent store for queue
defined in virtualhosts.xml
[Java broker] failure to startup when attempting to recover queue contents from BDB persistent store for queue defined in virtualhosts.xml
------------------------------------------------------------------------------------------------------------------------------------------
Key: QPID-1802
URL: https://issues.apache.org/jira/browse/QPID-1802
Project: Qpid
Issue Type: Bug
Components: Java Broker
Reporter: Robert Gemmell
This seems similar to QPID-1730, but raising new JIRA as that is currently ready to review, and the files in question have since been modified for other issues so this could be new.
Steps taken:
Start broker (trunk, r763963) configured to use BDB message store (r3265) with the persistent_config.xml.
Start JMS Direct example consumer, having modified 'direct.properties' file to use the 'ping' queue configured on the 'test' virtualhost in virtualhosts.xml
Terminate consumer.
Start modified JMS Direct example producer, send '100' (so actually 101 with the completion message) persistent messages
Shutdown broker
Restart broker
Result:
2009-04-10 16:48:57,688 WARN [main] management.JMXManagedObjectRegistry (JMXManagedObjectRegistry.java:187) - Starting JMX ConnectorServer on port '8999' (+9099) with SSL
Error initialising message broker: org.apache.qpid.AMQException: Error recovering persistent state: org.apache.qpid.AMQException: Error registering managed object ping[Queue]: javax.management.InstanceAlreadyExistsException: org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping,version=2org.apache.qpid.AMQException: Error recovering persistent state: org.apache.qpid.AMQException: Error registering managed object ping[Queue]: javax.management.InstanceAlreadyExistsException: org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping,version=2
2009-04-10 16:48:58,436 ERROR [main] server.Main (Main.java:204) - Error initialising message broker: org.apache.qpid.AMQException: Error recovering persistent state: org.apache.qpid.AMQException: Error registering managed object ping[Queue]: javax.management.InstanceAlreadyExistsException: org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping,version=2
at org.apache.qpid.server.store.berkeleydb.BDBMessageStore.recover(BDBMessageStore.java:1283)
at org.apache.qpid.server.store.berkeleydb.BDBMessageStore.configure(BDBMessageStore.java:247)
at org.apache.qpid.server.store.berkeleydb.BDBMessageStore.configure(BDBMessageStore.java:211)
at org.apache.qpid.server.virtualhost.VirtualHost.initialiseTransactionLog(VirtualHost.java:299)
at org.apache.qpid.server.virtualhost.VirtualHost.<init>(VirtualHost.java:221)
at org.apache.qpid.server.virtualhost.VirtualHost.<init>(VirtualHost.java:162)
at org.apache.qpid.server.registry.ConfigurationFileApplicationRegistry.initialiseVirtualHosts(ConfigurationFileApplicationRegistry.java:71)
at org.apache.qpid.server.registry.ConfigurationFileApplicationRegistry.initialise(ConfigurationFileApplicationRegistry.java:63)
at org.apache.qpid.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:100)
at org.apache.qpid.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:88)
at org.apache.qpid.server.Main.startup(Main.java:269)
at org.apache.qpid.server.Main.execute(Main.java:193)
at org.apache.qpid.server.Main.<init>(Main.java:93)
at org.apache.qpid.server.Main.main(Main.java:440)
Caused by: org.apache.qpid.AMQException: Error registering managed object ping[Queue]: javax.management.InstanceAlreadyExistsException: org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping,version=2
at org.apache.qpid.server.management.DefaultManagedObject.register(DefaultManagedObject.java:76)
at org.apache.qpid.server.queue.SimpleAMQQueue.<init>(SimpleAMQQueue.java:151)
at org.apache.qpid.server.queue.SimpleAMQQueue.<init>(SimpleAMQQueue.java:117)
at org.apache.qpid.server.queue.AMQQueueFactory.createAMQQueueImpl(AMQQueueFactory.java:71)
at org.apache.qpid.server.store.berkeleydb.BDBMessageStore.deliverMessages(BDBMessageStore.java:1645)
at org.apache.qpid.server.store.berkeleydb.BDBMessageStore.recover(BDBMessageStore.java:1269)
... 13 more
Caused by: javax.management.InstanceAlreadyExistsException: org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping,version=2
at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:453)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1484)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:963)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:917)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312)
at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482)
at org.apache.qpid.server.management.JMXManagedObjectRegistry.registerObject(JMXManagedObjectRegistry.java:314)
at org.apache.qpid.server.management.DefaultManagedObject.register(DefaultManagedObject.java:72)
... 18 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org
[jira] Updated: (QPID-1802) [Java broker] failure to startup when
recovering persistent messages from store for a queue in the configuration
file which was not previously added to the store
Posted by "Robbie Gemmell (JIRA)" <qp...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/QPID-1802?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robbie Gemmell updated QPID-1802:
---------------------------------
Fix Version/s: 0.6
Other updates have already rectified this issue on trunk. Fix applied for the 0.5.x-dev branch.
> [Java broker] failure to startup when recovering persistent messages from store for a queue in the configuration file which was not previously added to the store
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: QPID-1802
> URL: https://issues.apache.org/jira/browse/QPID-1802
> Project: Qpid
> Issue Type: Bug
> Components: Java Broker
> Affects Versions: 0.5
> Reporter: Robbie Gemmell
> Assignee: Robbie Gemmell
> Fix For: 0.6
>
> Attachments: test-store_after_restart.zip, test-store_before_restart.zip
>
>
> This seems similar to QPID-1730, but raising new JIRA as that is currently ready to review, and the files in question have since been modified for other issues so this could be new.
> Steps taken:
> Start broker (trunk, r763963) configured to use BDB message store (r3265) with the persistent_config.xml.
> Start JMS Direct example consumer, having modified 'direct.properties' file to use the 'ping' queue configured on the 'test' virtualhost in virtualhosts.xml
> Terminate consumer.
> Start modified JMS Direct example producer, send '100' (so actually 101 with the completion message) persistent messages
> Shutdown broker
> Restart broker
> Result:
> 2009-04-10 16:48:57,688 WARN [main] management.JMXManagedObjectRegistry (JMXManagedObjectRegistry.java:187) - Starting JMX ConnectorServer on port '8999' (+9099) with SSL
> Error initialising message broker: org.apache.qpid.AMQException: Error recovering persistent state: org.apache.qpid.AMQException: Error registering managed object ping[Queue]: javax.management.InstanceAlreadyExistsException: org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping,version=2org.apache.qpid.AMQException: Error recovering persistent state: org.apache.qpid.AMQException: Error registering managed object ping[Queue]: javax.management.InstanceAlreadyExistsException: org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping,version=2
> 2009-04-10 16:48:58,436 ERROR [main] server.Main (Main.java:204) - Error initialising message broker: org.apache.qpid.AMQException: Error recovering persistent state: org.apache.qpid.AMQException: Error registering managed object ping[Queue]: javax.management.InstanceAlreadyExistsException: org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping,version=2
> at org.apache.qpid.server.store.berkeleydb.BDBMessageStore.recover(BDBMessageStore.java:1283)
> at org.apache.qpid.server.store.berkeleydb.BDBMessageStore.configure(BDBMessageStore.java:247)
> at org.apache.qpid.server.store.berkeleydb.BDBMessageStore.configure(BDBMessageStore.java:211)
> at org.apache.qpid.server.virtualhost.VirtualHost.initialiseTransactionLog(VirtualHost.java:299)
> at org.apache.qpid.server.virtualhost.VirtualHost.<init>(VirtualHost.java:221)
> at org.apache.qpid.server.virtualhost.VirtualHost.<init>(VirtualHost.java:162)
> at org.apache.qpid.server.registry.ConfigurationFileApplicationRegistry.initialiseVirtualHosts(ConfigurationFileApplicationRegistry.java:71)
> at org.apache.qpid.server.registry.ConfigurationFileApplicationRegistry.initialise(ConfigurationFileApplicationRegistry.java:63)
> at org.apache.qpid.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:100)
> at org.apache.qpid.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:88)
> at org.apache.qpid.server.Main.startup(Main.java:269)
> at org.apache.qpid.server.Main.execute(Main.java:193)
> at org.apache.qpid.server.Main.<init>(Main.java:93)
> at org.apache.qpid.server.Main.main(Main.java:440)
> Caused by: org.apache.qpid.AMQException: Error registering managed object ping[Queue]: javax.management.InstanceAlreadyExistsException: org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping,version=2
> at org.apache.qpid.server.management.DefaultManagedObject.register(DefaultManagedObject.java:76)
> at org.apache.qpid.server.queue.SimpleAMQQueue.<init>(SimpleAMQQueue.java:151)
> at org.apache.qpid.server.queue.SimpleAMQQueue.<init>(SimpleAMQQueue.java:117)
> at org.apache.qpid.server.queue.AMQQueueFactory.createAMQQueueImpl(AMQQueueFactory.java:71)
> at org.apache.qpid.server.store.berkeleydb.BDBMessageStore.deliverMessages(BDBMessageStore.java:1645)
> at org.apache.qpid.server.store.berkeleydb.BDBMessageStore.recover(BDBMessageStore.java:1269)
> ... 13 more
> Caused by: javax.management.InstanceAlreadyExistsException: org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping,version=2
> at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:453)
> at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1484)
> at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:963)
> at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:917)
> at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312)
> at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482)
> at org.apache.qpid.server.management.JMXManagedObjectRegistry.registerObject(JMXManagedObjectRegistry.java:314)
> at org.apache.qpid.server.management.DefaultManagedObject.register(DefaultManagedObject.java:72)
> ... 18 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org
[jira] Updated: (QPID-1802) [Java broker] failure to startup when
recovering persistent messages from store for a queue in the configuration
file which was not previously added to the store
Posted by "Robbie Gemmell (JIRA)" <qp...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/QPID-1802?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robbie Gemmell updated QPID-1802:
---------------------------------
Status: Ready To Review (was: In Progress)
> [Java broker] failure to startup when recovering persistent messages from store for a queue in the configuration file which was not previously added to the store
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: QPID-1802
> URL: https://issues.apache.org/jira/browse/QPID-1802
> Project: Qpid
> Issue Type: Bug
> Components: Java Broker
> Affects Versions: 0.5
> Reporter: Robbie Gemmell
> Assignee: Robbie Gemmell
> Fix For: 0.6
>
> Attachments: test-store_after_restart.zip, test-store_before_restart.zip
>
>
> This seems similar to QPID-1730, but raising new JIRA as that is currently ready to review, and the files in question have since been modified for other issues so this could be new.
> Steps taken:
> Start broker (trunk, r763963) configured to use BDB message store (r3265) with the persistent_config.xml.
> Start JMS Direct example consumer, having modified 'direct.properties' file to use the 'ping' queue configured on the 'test' virtualhost in virtualhosts.xml
> Terminate consumer.
> Start modified JMS Direct example producer, send '100' (so actually 101 with the completion message) persistent messages
> Shutdown broker
> Restart broker
> Result:
> 2009-04-10 16:48:57,688 WARN [main] management.JMXManagedObjectRegistry (JMXManagedObjectRegistry.java:187) - Starting JMX ConnectorServer on port '8999' (+9099) with SSL
> Error initialising message broker: org.apache.qpid.AMQException: Error recovering persistent state: org.apache.qpid.AMQException: Error registering managed object ping[Queue]: javax.management.InstanceAlreadyExistsException: org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping,version=2org.apache.qpid.AMQException: Error recovering persistent state: org.apache.qpid.AMQException: Error registering managed object ping[Queue]: javax.management.InstanceAlreadyExistsException: org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping,version=2
> 2009-04-10 16:48:58,436 ERROR [main] server.Main (Main.java:204) - Error initialising message broker: org.apache.qpid.AMQException: Error recovering persistent state: org.apache.qpid.AMQException: Error registering managed object ping[Queue]: javax.management.InstanceAlreadyExistsException: org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping,version=2
> at org.apache.qpid.server.store.berkeleydb.BDBMessageStore.recover(BDBMessageStore.java:1283)
> at org.apache.qpid.server.store.berkeleydb.BDBMessageStore.configure(BDBMessageStore.java:247)
> at org.apache.qpid.server.store.berkeleydb.BDBMessageStore.configure(BDBMessageStore.java:211)
> at org.apache.qpid.server.virtualhost.VirtualHost.initialiseTransactionLog(VirtualHost.java:299)
> at org.apache.qpid.server.virtualhost.VirtualHost.<init>(VirtualHost.java:221)
> at org.apache.qpid.server.virtualhost.VirtualHost.<init>(VirtualHost.java:162)
> at org.apache.qpid.server.registry.ConfigurationFileApplicationRegistry.initialiseVirtualHosts(ConfigurationFileApplicationRegistry.java:71)
> at org.apache.qpid.server.registry.ConfigurationFileApplicationRegistry.initialise(ConfigurationFileApplicationRegistry.java:63)
> at org.apache.qpid.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:100)
> at org.apache.qpid.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:88)
> at org.apache.qpid.server.Main.startup(Main.java:269)
> at org.apache.qpid.server.Main.execute(Main.java:193)
> at org.apache.qpid.server.Main.<init>(Main.java:93)
> at org.apache.qpid.server.Main.main(Main.java:440)
> Caused by: org.apache.qpid.AMQException: Error registering managed object ping[Queue]: javax.management.InstanceAlreadyExistsException: org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping,version=2
> at org.apache.qpid.server.management.DefaultManagedObject.register(DefaultManagedObject.java:76)
> at org.apache.qpid.server.queue.SimpleAMQQueue.<init>(SimpleAMQQueue.java:151)
> at org.apache.qpid.server.queue.SimpleAMQQueue.<init>(SimpleAMQQueue.java:117)
> at org.apache.qpid.server.queue.AMQQueueFactory.createAMQQueueImpl(AMQQueueFactory.java:71)
> at org.apache.qpid.server.store.berkeleydb.BDBMessageStore.deliverMessages(BDBMessageStore.java:1645)
> at org.apache.qpid.server.store.berkeleydb.BDBMessageStore.recover(BDBMessageStore.java:1269)
> ... 13 more
> Caused by: javax.management.InstanceAlreadyExistsException: org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping,version=2
> at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:453)
> at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1484)
> at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:963)
> at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:917)
> at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312)
> at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482)
> at org.apache.qpid.server.management.JMXManagedObjectRegistry.registerObject(JMXManagedObjectRegistry.java:314)
> at org.apache.qpid.server.management.DefaultManagedObject.register(DefaultManagedObject.java:72)
> ... 18 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org
[jira] Updated: (QPID-1802) [Java broker] failure to startup when
attempting to recover queue contents from BDB persistent store for queue
defined in virtualhosts.xml
Posted by "Robert Gemmell (JIRA)" <qp...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/QPID-1802?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Gemmell updated QPID-1802:
---------------------------------
Attachment: test-store_after_restart.zip
test-store_before_restart.zip
I attach the persistent 'test-store' directory before the restart (after shutting the broker down) and after the restart which failed as indicated above.
> [Java broker] failure to startup when attempting to recover queue contents from BDB persistent store for queue defined in virtualhosts.xml
> ------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: QPID-1802
> URL: https://issues.apache.org/jira/browse/QPID-1802
> Project: Qpid
> Issue Type: Bug
> Components: Java Broker
> Reporter: Robert Gemmell
> Attachments: test-store_after_restart.zip, test-store_before_restart.zip
>
>
> This seems similar to QPID-1730, but raising new JIRA as that is currently ready to review, and the files in question have since been modified for other issues so this could be new.
> Steps taken:
> Start broker (trunk, r763963) configured to use BDB message store (r3265) with the persistent_config.xml.
> Start JMS Direct example consumer, having modified 'direct.properties' file to use the 'ping' queue configured on the 'test' virtualhost in virtualhosts.xml
> Terminate consumer.
> Start modified JMS Direct example producer, send '100' (so actually 101 with the completion message) persistent messages
> Shutdown broker
> Restart broker
> Result:
> 2009-04-10 16:48:57,688 WARN [main] management.JMXManagedObjectRegistry (JMXManagedObjectRegistry.java:187) - Starting JMX ConnectorServer on port '8999' (+9099) with SSL
> Error initialising message broker: org.apache.qpid.AMQException: Error recovering persistent state: org.apache.qpid.AMQException: Error registering managed object ping[Queue]: javax.management.InstanceAlreadyExistsException: org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping,version=2org.apache.qpid.AMQException: Error recovering persistent state: org.apache.qpid.AMQException: Error registering managed object ping[Queue]: javax.management.InstanceAlreadyExistsException: org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping,version=2
> 2009-04-10 16:48:58,436 ERROR [main] server.Main (Main.java:204) - Error initialising message broker: org.apache.qpid.AMQException: Error recovering persistent state: org.apache.qpid.AMQException: Error registering managed object ping[Queue]: javax.management.InstanceAlreadyExistsException: org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping,version=2
> at org.apache.qpid.server.store.berkeleydb.BDBMessageStore.recover(BDBMessageStore.java:1283)
> at org.apache.qpid.server.store.berkeleydb.BDBMessageStore.configure(BDBMessageStore.java:247)
> at org.apache.qpid.server.store.berkeleydb.BDBMessageStore.configure(BDBMessageStore.java:211)
> at org.apache.qpid.server.virtualhost.VirtualHost.initialiseTransactionLog(VirtualHost.java:299)
> at org.apache.qpid.server.virtualhost.VirtualHost.<init>(VirtualHost.java:221)
> at org.apache.qpid.server.virtualhost.VirtualHost.<init>(VirtualHost.java:162)
> at org.apache.qpid.server.registry.ConfigurationFileApplicationRegistry.initialiseVirtualHosts(ConfigurationFileApplicationRegistry.java:71)
> at org.apache.qpid.server.registry.ConfigurationFileApplicationRegistry.initialise(ConfigurationFileApplicationRegistry.java:63)
> at org.apache.qpid.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:100)
> at org.apache.qpid.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:88)
> at org.apache.qpid.server.Main.startup(Main.java:269)
> at org.apache.qpid.server.Main.execute(Main.java:193)
> at org.apache.qpid.server.Main.<init>(Main.java:93)
> at org.apache.qpid.server.Main.main(Main.java:440)
> Caused by: org.apache.qpid.AMQException: Error registering managed object ping[Queue]: javax.management.InstanceAlreadyExistsException: org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping,version=2
> at org.apache.qpid.server.management.DefaultManagedObject.register(DefaultManagedObject.java:76)
> at org.apache.qpid.server.queue.SimpleAMQQueue.<init>(SimpleAMQQueue.java:151)
> at org.apache.qpid.server.queue.SimpleAMQQueue.<init>(SimpleAMQQueue.java:117)
> at org.apache.qpid.server.queue.AMQQueueFactory.createAMQQueueImpl(AMQQueueFactory.java:71)
> at org.apache.qpid.server.store.berkeleydb.BDBMessageStore.deliverMessages(BDBMessageStore.java:1645)
> at org.apache.qpid.server.store.berkeleydb.BDBMessageStore.recover(BDBMessageStore.java:1269)
> ... 13 more
> Caused by: javax.management.InstanceAlreadyExistsException: org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping,version=2
> at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:453)
> at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1484)
> at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:963)
> at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:917)
> at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312)
> at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482)
> at org.apache.qpid.server.management.JMXManagedObjectRegistry.registerObject(JMXManagedObjectRegistry.java:314)
> at org.apache.qpid.server.management.DefaultManagedObject.register(DefaultManagedObject.java:72)
> ... 18 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org
[jira] Updated: (QPID-1802) [Java broker] failure to startup when
recovering persistent messages from store for a queue in the configuration
file which was not previously added to the store
Posted by "Robbie Gemmell (JIRA)" <qp...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/QPID-1802?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robbie Gemmell updated QPID-1802:
---------------------------------
Affects Version/s: 0.5
Assignee: Robbie Gemmell
Summary: [Java broker] failure to startup when recovering persistent messages from store for a queue in the configuration file which was not previously added to the store (was: [Java broker] failure to startup when attempting to recover queue contents from BDB persistent store for queue defined in virtualhosts.xml)
> [Java broker] failure to startup when recovering persistent messages from store for a queue in the configuration file which was not previously added to the store
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: QPID-1802
> URL: https://issues.apache.org/jira/browse/QPID-1802
> Project: Qpid
> Issue Type: Bug
> Components: Java Broker
> Affects Versions: 0.5
> Reporter: Robbie Gemmell
> Assignee: Robbie Gemmell
> Attachments: test-store_after_restart.zip, test-store_before_restart.zip
>
>
> This seems similar to QPID-1730, but raising new JIRA as that is currently ready to review, and the files in question have since been modified for other issues so this could be new.
> Steps taken:
> Start broker (trunk, r763963) configured to use BDB message store (r3265) with the persistent_config.xml.
> Start JMS Direct example consumer, having modified 'direct.properties' file to use the 'ping' queue configured on the 'test' virtualhost in virtualhosts.xml
> Terminate consumer.
> Start modified JMS Direct example producer, send '100' (so actually 101 with the completion message) persistent messages
> Shutdown broker
> Restart broker
> Result:
> 2009-04-10 16:48:57,688 WARN [main] management.JMXManagedObjectRegistry (JMXManagedObjectRegistry.java:187) - Starting JMX ConnectorServer on port '8999' (+9099) with SSL
> Error initialising message broker: org.apache.qpid.AMQException: Error recovering persistent state: org.apache.qpid.AMQException: Error registering managed object ping[Queue]: javax.management.InstanceAlreadyExistsException: org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping,version=2org.apache.qpid.AMQException: Error recovering persistent state: org.apache.qpid.AMQException: Error registering managed object ping[Queue]: javax.management.InstanceAlreadyExistsException: org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping,version=2
> 2009-04-10 16:48:58,436 ERROR [main] server.Main (Main.java:204) - Error initialising message broker: org.apache.qpid.AMQException: Error recovering persistent state: org.apache.qpid.AMQException: Error registering managed object ping[Queue]: javax.management.InstanceAlreadyExistsException: org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping,version=2
> at org.apache.qpid.server.store.berkeleydb.BDBMessageStore.recover(BDBMessageStore.java:1283)
> at org.apache.qpid.server.store.berkeleydb.BDBMessageStore.configure(BDBMessageStore.java:247)
> at org.apache.qpid.server.store.berkeleydb.BDBMessageStore.configure(BDBMessageStore.java:211)
> at org.apache.qpid.server.virtualhost.VirtualHost.initialiseTransactionLog(VirtualHost.java:299)
> at org.apache.qpid.server.virtualhost.VirtualHost.<init>(VirtualHost.java:221)
> at org.apache.qpid.server.virtualhost.VirtualHost.<init>(VirtualHost.java:162)
> at org.apache.qpid.server.registry.ConfigurationFileApplicationRegistry.initialiseVirtualHosts(ConfigurationFileApplicationRegistry.java:71)
> at org.apache.qpid.server.registry.ConfigurationFileApplicationRegistry.initialise(ConfigurationFileApplicationRegistry.java:63)
> at org.apache.qpid.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:100)
> at org.apache.qpid.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:88)
> at org.apache.qpid.server.Main.startup(Main.java:269)
> at org.apache.qpid.server.Main.execute(Main.java:193)
> at org.apache.qpid.server.Main.<init>(Main.java:93)
> at org.apache.qpid.server.Main.main(Main.java:440)
> Caused by: org.apache.qpid.AMQException: Error registering managed object ping[Queue]: javax.management.InstanceAlreadyExistsException: org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping,version=2
> at org.apache.qpid.server.management.DefaultManagedObject.register(DefaultManagedObject.java:76)
> at org.apache.qpid.server.queue.SimpleAMQQueue.<init>(SimpleAMQQueue.java:151)
> at org.apache.qpid.server.queue.SimpleAMQQueue.<init>(SimpleAMQQueue.java:117)
> at org.apache.qpid.server.queue.AMQQueueFactory.createAMQQueueImpl(AMQQueueFactory.java:71)
> at org.apache.qpid.server.store.berkeleydb.BDBMessageStore.deliverMessages(BDBMessageStore.java:1645)
> at org.apache.qpid.server.store.berkeleydb.BDBMessageStore.recover(BDBMessageStore.java:1269)
> ... 13 more
> Caused by: javax.management.InstanceAlreadyExistsException: org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping,version=2
> at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:453)
> at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1484)
> at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:963)
> at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:917)
> at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312)
> at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482)
> at org.apache.qpid.server.management.JMXManagedObjectRegistry.registerObject(JMXManagedObjectRegistry.java:314)
> at org.apache.qpid.server.management.DefaultManagedObject.register(DefaultManagedObject.java:72)
> ... 18 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org
[jira] Commented: (QPID-1802) [Java broker] failure to startup when
attempting to recover queue contents from BDB persistent store for queue
defined in virtualhosts.xml
Posted by "Robbie Gemmell (JIRA)" <qp...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/QPID-1802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12772541#action_12772541 ]
Robbie Gemmell commented on QPID-1802:
--------------------------------------
Updated stack trace:
2009-11-02 15:23:51,095 WARN [main] management.JMXManagedObjectRegistry (JMXManagedObjectRegistry.java:212) - Starting JMX ConnectorServer on port '8999' (+9099)
Error initialising message broker: org.apache.qpid.AMQException: Error recovering persistent state: org.apache.qpid.AMQException: Error registering managed object ping_1[Queue]: javax.management.InstanceAlreadyExistsException: org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping_1,version=3
2009-11-02 15:23:51,850 ERROR [main] server.Main (Main.java:212) - Error initialising message broker: org.apache.qpid.AMQException: Error recovering persistent state: org.apache.qpid.AMQException: Error registering managed object ping_1[Queue]: javax.management.InstanceAlreadyExistsException: org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping_1,version=3
org.apache.qpid.AMQException: Error recovering persistent state: org.apache.qpid.AMQException: Error registering managed object ping_1[Queue]: javax.management.InstanceAlreadyExistsException: org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping_1,version=3
at org.apache.qpid.server.store.berkeleydb.BDBMessageStore.recover(BDBMessageStore.java:1270)
at org.apache.qpid.server.store.berkeleydb.BDBMessageStore.configure(BDBMessageStore.java:243)
at org.apache.qpid.server.store.berkeleydb.BDBMessageStore.configure(BDBMessageStore.java:209)
at org.apache.qpid.server.virtualhost.VirtualHost.initialiseMessageStore(VirtualHost.java:298)
at org.apache.qpid.server.virtualhost.VirtualHost.<init>(VirtualHost.java:224)
at org.apache.qpid.server.virtualhost.VirtualHost.<init>(VirtualHost.java:153)
at org.apache.qpid.server.registry.ConfigurationFileApplicationRegistry.initialiseVirtualHosts(ConfigurationFileApplicationRegistry.java:105)
at org.apache.qpid.server.registry.ConfigurationFileApplicationRegistry.initialise(ConfigurationFileApplicationRegistry.java:80)
at org.apache.qpid.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:105)
at org.apache.qpid.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:93)
at org.apache.qpid.server.Main.startup(Main.java:277)
at org.apache.qpid.server.Main.execute(Main.java:200)
at org.apache.qpid.server.Main.<init>(Main.java:99)
at org.apache.qpid.server.Main.main(Main.java:483)
Caused by: org.apache.qpid.AMQException: Error registering managed object ping_1[Queue]: javax.management.InstanceAlreadyExistsException: org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping_1,version=3
at org.apache.qpid.server.management.DefaultManagedObject.register(DefaultManagedObject.java:76)
at org.apache.qpid.server.queue.SimpleAMQQueue.<init>(SimpleAMQQueue.java:192)
at org.apache.qpid.server.queue.SimpleAMQQueue.<init>(SimpleAMQQueue.java:135)
at org.apache.qpid.server.queue.AMQQueueFactory.createAMQQueueImpl(AMQQueueFactory.java:144)
at org.apache.qpid.server.store.berkeleydb.BDBMessageStore.deliverMessages(BDBMessageStore.java:1656)
at org.apache.qpid.server.store.berkeleydb.BDBMessageStore.recover(BDBMessageStore.java:1254)
... 13 more
Caused by: javax.management.InstanceAlreadyExistsException: org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping_1,version=3
at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:453)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1484)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:963)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:917)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312)
at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482)
at org.apache.qpid.server.management.JMXManagedObjectRegistry.registerObject(JMXManagedObjectRegistry.java:343)
at org.apache.qpid.server.management.DefaultManagedObject.register(DefaultManagedObject.java:72)
... 18 more
> [Java broker] failure to startup when attempting to recover queue contents from BDB persistent store for queue defined in virtualhosts.xml
> ------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: QPID-1802
> URL: https://issues.apache.org/jira/browse/QPID-1802
> Project: Qpid
> Issue Type: Bug
> Components: Java Broker
> Reporter: Robbie Gemmell
> Attachments: test-store_after_restart.zip, test-store_before_restart.zip
>
>
> This seems similar to QPID-1730, but raising new JIRA as that is currently ready to review, and the files in question have since been modified for other issues so this could be new.
> Steps taken:
> Start broker (trunk, r763963) configured to use BDB message store (r3265) with the persistent_config.xml.
> Start JMS Direct example consumer, having modified 'direct.properties' file to use the 'ping' queue configured on the 'test' virtualhost in virtualhosts.xml
> Terminate consumer.
> Start modified JMS Direct example producer, send '100' (so actually 101 with the completion message) persistent messages
> Shutdown broker
> Restart broker
> Result:
> 2009-04-10 16:48:57,688 WARN [main] management.JMXManagedObjectRegistry (JMXManagedObjectRegistry.java:187) - Starting JMX ConnectorServer on port '8999' (+9099) with SSL
> Error initialising message broker: org.apache.qpid.AMQException: Error recovering persistent state: org.apache.qpid.AMQException: Error registering managed object ping[Queue]: javax.management.InstanceAlreadyExistsException: org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping,version=2org.apache.qpid.AMQException: Error recovering persistent state: org.apache.qpid.AMQException: Error registering managed object ping[Queue]: javax.management.InstanceAlreadyExistsException: org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping,version=2
> 2009-04-10 16:48:58,436 ERROR [main] server.Main (Main.java:204) - Error initialising message broker: org.apache.qpid.AMQException: Error recovering persistent state: org.apache.qpid.AMQException: Error registering managed object ping[Queue]: javax.management.InstanceAlreadyExistsException: org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping,version=2
> at org.apache.qpid.server.store.berkeleydb.BDBMessageStore.recover(BDBMessageStore.java:1283)
> at org.apache.qpid.server.store.berkeleydb.BDBMessageStore.configure(BDBMessageStore.java:247)
> at org.apache.qpid.server.store.berkeleydb.BDBMessageStore.configure(BDBMessageStore.java:211)
> at org.apache.qpid.server.virtualhost.VirtualHost.initialiseTransactionLog(VirtualHost.java:299)
> at org.apache.qpid.server.virtualhost.VirtualHost.<init>(VirtualHost.java:221)
> at org.apache.qpid.server.virtualhost.VirtualHost.<init>(VirtualHost.java:162)
> at org.apache.qpid.server.registry.ConfigurationFileApplicationRegistry.initialiseVirtualHosts(ConfigurationFileApplicationRegistry.java:71)
> at org.apache.qpid.server.registry.ConfigurationFileApplicationRegistry.initialise(ConfigurationFileApplicationRegistry.java:63)
> at org.apache.qpid.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:100)
> at org.apache.qpid.server.registry.ApplicationRegistry.initialise(ApplicationRegistry.java:88)
> at org.apache.qpid.server.Main.startup(Main.java:269)
> at org.apache.qpid.server.Main.execute(Main.java:193)
> at org.apache.qpid.server.Main.<init>(Main.java:93)
> at org.apache.qpid.server.Main.main(Main.java:440)
> Caused by: org.apache.qpid.AMQException: Error registering managed object ping[Queue]: javax.management.InstanceAlreadyExistsException: org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping,version=2
> at org.apache.qpid.server.management.DefaultManagedObject.register(DefaultManagedObject.java:76)
> at org.apache.qpid.server.queue.SimpleAMQQueue.<init>(SimpleAMQQueue.java:151)
> at org.apache.qpid.server.queue.SimpleAMQQueue.<init>(SimpleAMQQueue.java:117)
> at org.apache.qpid.server.queue.AMQQueueFactory.createAMQQueueImpl(AMQQueueFactory.java:71)
> at org.apache.qpid.server.store.berkeleydb.BDBMessageStore.deliverMessages(BDBMessageStore.java:1645)
> at org.apache.qpid.server.store.berkeleydb.BDBMessageStore.recover(BDBMessageStore.java:1269)
> ... 13 more
> Caused by: javax.management.InstanceAlreadyExistsException: org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping,version=2
> at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:453)
> at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1484)
> at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:963)
> at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:917)
> at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312)
> at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482)
> at org.apache.qpid.server.management.JMXManagedObjectRegistry.registerObject(JMXManagedObjectRegistry.java:314)
> at org.apache.qpid.server.management.DefaultManagedObject.register(DefaultManagedObject.java:72)
> ... 18 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org