qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robbie Gemmell (JIRA)" <qpid-...@incubator.apache.org>
Subject [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
Date Mon, 02 Nov 2009 15:36:59 GMT

    [ 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


Mime
View raw message