qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lorenz Quack (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (QPID-7810) [Java Broker] deleting Derby VHN with ProvidedStore VH throws IllegalStateException
Date Mon, 05 Jun 2017 09:58:04 GMT

     [ https://issues.apache.org/jira/browse/QPID-7810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Lorenz Quack updated QPID-7810:
-------------------------------
    Description: 
Currently, when trying to delete a Derby VirtualHostNode that has a VirtualHost using the
ProvidedStore the broker throws an IllegalStateException:
{noformat}
2017-06-05 10:44:41,897 INFO  [VirtualHostNode-foo-Config] (q.m.v.closed) - [mng:N/A(ANONYMOUS@/127.0.0.1:42186)]
VHT-1002 : Closed : foo
2017-06-05 10:44:41,955 WARN  [VirtualHostNode-foo-Config] (o.a.q.s.v.AbstractVirtualHost)
- Exception occurred on message store deletion
java.lang.IllegalStateException: Message store is not open
	at org.apache.qpid.server.store.derby.AbstractDerbyMessageStore.checkMessageStoreOpen(AbstractDerbyMessageStore.java:117)
	at org.apache.qpid.server.store.derby.DerbyConfigurationStore$ProvidedMessageStore.getConnection(DerbyConfigurationStore.java:211)
	at org.apache.qpid.server.store.jdbc.AbstractJDBCMessageStore.newConnection(AbstractJDBCMessageStore.java:536)
	at org.apache.qpid.server.store.jdbc.AbstractJDBCMessageStore.newAutoCommitConnection(AbstractJDBCMessageStore.java:509)
	at org.apache.qpid.server.store.jdbc.AbstractJDBCMessageStore.onDelete(AbstractJDBCMessageStore.java:2040)
	at org.apache.qpid.server.virtualhost.AbstractVirtualHost$13.run(AbstractVirtualHost.java:2314)
	at org.apache.qpid.server.model.AbstractConfiguredObject$21.onSuccess(AbstractConfiguredObject.java:2587)
	at org.apache.qpid.server.model.AbstractConfiguredObject$22$1.run(AbstractConfiguredObject.java:2628)
	at org.apache.qpid.server.model.AbstractConfiguredObject$22$1.run(AbstractConfiguredObject.java:2624)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:360)
	at org.apache.qpid.server.model.AbstractConfiguredObject$22.onSuccess(AbstractConfiguredObject.java:2623)
	at com.google.common.util.concurrent.Futures$6.run(Futures.java:1319)
	at org.apache.qpid.server.configuration.updater.TaskExecutorImpl$ImmediateIfSameThreadExecutor.execute(TaskExecutorImpl.java:392)
	at org.apache.qpid.server.configuration.updater.TaskExecutorImpl.execute(TaskExecutorImpl.java:175)
	at com.google.common.util.concurrent.ExecutionList.executeListener(ExecutionList.java:156)
	at com.google.common.util.concurrent.ExecutionList.add(ExecutionList.java:101)
	at com.google.common.util.concurrent.AbstractFuture.addListener(AbstractFuture.java:170)
	at com.google.common.util.concurrent.Futures.addCallback(Futures.java:1322)
	at org.apache.qpid.server.model.AbstractConfiguredObject.addFutureCallback(AbstractConfiguredObject.java:2618)
	at org.apache.qpid.server.model.AbstractConfiguredObject.doAfterAlways(AbstractConfiguredObject.java:2580)
	at org.apache.qpid.server.model.AbstractConfiguredObject.doAfterAlways(AbstractConfiguredObject.java:2572)
	at org.apache.qpid.server.virtualhost.AbstractVirtualHost.doDelete(AbstractVirtualHost.java:2299)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.qpid.server.model.AbstractConfiguredObject.attainState(AbstractConfiguredObject.java:1523)
	at org.apache.qpid.server.model.AbstractConfiguredObject.access$2000(AbstractConfiguredObject.java:95)
	at org.apache.qpid.server.model.AbstractConfiguredObject$15.execute(AbstractConfiguredObject.java:1721)
	at org.apache.qpid.server.model.AbstractConfiguredObject$15.execute(AbstractConfiguredObject.java:1670)
	at org.apache.qpid.server.model.AbstractConfiguredObject$2.execute(AbstractConfiguredObject.java:636)
	at org.apache.qpid.server.model.AbstractConfiguredObject$2.execute(AbstractConfiguredObject.java:629)
	at org.apache.qpid.server.configuration.updater.TaskExecutorImpl$TaskLoggingWrapper.execute(TaskExecutorImpl.java:240)
	at org.apache.qpid.server.configuration.updater.TaskExecutorImpl$CallableWrapper$1.run(TaskExecutorImpl.java:312)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:360)
	at org.apache.qpid.server.configuration.updater.TaskExecutorImpl$CallableWrapper.call(TaskExecutorImpl.java:305)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:748)
{noformat}
The broker survives.


  was:
Currently, when trying to delete a Derby VirtualHostNode that has a VirtualHost using the
ProvidedStore the broker throws an IllegalStateException:
{noformat}
2017-06-05 10:44:41,897 INFO  [VirtualHostNode-foo-Config] (q.m.v.closed) - [mng:N/A(ANONYMOUS@/127.0.0.1:42186)]
VHT-1002 : Closed : foo
2017-06-05 10:44:41,955 WARN  [VirtualHostNode-foo-Config] (o.a.q.s.v.AbstractVirtualHost)
- Exception occurred on message store deletion
java.lang.IllegalStateException: Message store is not open
	at org.apache.qpid.server.store.derby.AbstractDerbyMessageStore.checkMessageStoreOpen(AbstractDerbyMessageStore.java:117)
	at org.apache.qpid.server.store.derby.DerbyConfigurationStore$ProvidedMessageStore.getConnection(DerbyConfigurationStore.java:211)
	at org.apache.qpid.server.store.jdbc.AbstractJDBCMessageStore.newConnection(AbstractJDBCMessageStore.java:536)
	at org.apache.qpid.server.store.jdbc.AbstractJDBCMessageStore.newAutoCommitConnection(AbstractJDBCMessageStore.java:509)
	at org.apache.qpid.server.store.jdbc.AbstractJDBCMessageStore.onDelete(AbstractJDBCMessageStore.java:2040)
	at org.apache.qpid.server.virtualhost.AbstractVirtualHost$13.run(AbstractVirtualHost.java:2314)
	at org.apache.qpid.server.model.AbstractConfiguredObject$21.onSuccess(AbstractConfiguredObject.java:2587)
	at org.apache.qpid.server.model.AbstractConfiguredObject$22$1.run(AbstractConfiguredObject.java:2628)
	at org.apache.qpid.server.model.AbstractConfiguredObject$22$1.run(AbstractConfiguredObject.java:2624)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:360)
	at org.apache.qpid.server.model.AbstractConfiguredObject$22.onSuccess(AbstractConfiguredObject.java:2623)
	at com.google.common.util.concurrent.Futures$6.run(Futures.java:1319)
	at org.apache.qpid.server.configuration.updater.TaskExecutorImpl$ImmediateIfSameThreadExecutor.execute(TaskExecutorImpl.java:392)
	at org.apache.qpid.server.configuration.updater.TaskExecutorImpl.execute(TaskExecutorImpl.java:175)
	at com.google.common.util.concurrent.ExecutionList.executeListener(ExecutionList.java:156)
	at com.google.common.util.concurrent.ExecutionList.add(ExecutionList.java:101)
	at com.google.common.util.concurrent.AbstractFuture.addListener(AbstractFuture.java:170)
	at com.google.common.util.concurrent.Futures.addCallback(Futures.java:1322)
	at org.apache.qpid.server.model.AbstractConfiguredObject.addFutureCallback(AbstractConfiguredObject.java:2618)
	at org.apache.qpid.server.model.AbstractConfiguredObject.doAfterAlways(AbstractConfiguredObject.java:2580)
	at org.apache.qpid.server.model.AbstractConfiguredObject.doAfterAlways(AbstractConfiguredObject.java:2572)
	at org.apache.qpid.server.virtualhost.AbstractVirtualHost.doDelete(AbstractVirtualHost.java:2299)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.qpid.server.model.AbstractConfiguredObject.attainState(AbstractConfiguredObject.java:1523)
	at org.apache.qpid.server.model.AbstractConfiguredObject.access$2000(AbstractConfiguredObject.java:95)
	at org.apache.qpid.server.model.AbstractConfiguredObject$15.execute(AbstractConfiguredObject.java:1721)
	at org.apache.qpid.server.model.AbstractConfiguredObject$15.execute(AbstractConfiguredObject.java:1670)
	at org.apache.qpid.server.model.AbstractConfiguredObject$2.execute(AbstractConfiguredObject.java:636)
	at org.apache.qpid.server.model.AbstractConfiguredObject$2.execute(AbstractConfiguredObject.java:629)
	at org.apache.qpid.server.configuration.updater.TaskExecutorImpl$TaskLoggingWrapper.execute(TaskExecutorImpl.java:240)
	at org.apache.qpid.server.configuration.updater.TaskExecutorImpl$CallableWrapper$1.run(TaskExecutorImpl.java:312)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:360)
	at org.apache.qpid.server.configuration.updater.TaskExecutorImpl$CallableWrapper.call(TaskExecutorImpl.java:305)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:748)
{noformat}
The broker survives.
It looks like the VirtualHostNode is deleted as well.


> [Java Broker] deleting Derby VHN with ProvidedStore VH throws IllegalStateException
> -----------------------------------------------------------------------------------
>
>                 Key: QPID-7810
>                 URL: https://issues.apache.org/jira/browse/QPID-7810
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker
>            Reporter: Lorenz Quack
>
> Currently, when trying to delete a Derby VirtualHostNode that has a VirtualHost using
the ProvidedStore the broker throws an IllegalStateException:
> {noformat}
> 2017-06-05 10:44:41,897 INFO  [VirtualHostNode-foo-Config] (q.m.v.closed) - [mng:N/A(ANONYMOUS@/127.0.0.1:42186)]
VHT-1002 : Closed : foo
> 2017-06-05 10:44:41,955 WARN  [VirtualHostNode-foo-Config] (o.a.q.s.v.AbstractVirtualHost)
- Exception occurred on message store deletion
> java.lang.IllegalStateException: Message store is not open
> 	at org.apache.qpid.server.store.derby.AbstractDerbyMessageStore.checkMessageStoreOpen(AbstractDerbyMessageStore.java:117)
> 	at org.apache.qpid.server.store.derby.DerbyConfigurationStore$ProvidedMessageStore.getConnection(DerbyConfigurationStore.java:211)
> 	at org.apache.qpid.server.store.jdbc.AbstractJDBCMessageStore.newConnection(AbstractJDBCMessageStore.java:536)
> 	at org.apache.qpid.server.store.jdbc.AbstractJDBCMessageStore.newAutoCommitConnection(AbstractJDBCMessageStore.java:509)
> 	at org.apache.qpid.server.store.jdbc.AbstractJDBCMessageStore.onDelete(AbstractJDBCMessageStore.java:2040)
> 	at org.apache.qpid.server.virtualhost.AbstractVirtualHost$13.run(AbstractVirtualHost.java:2314)
> 	at org.apache.qpid.server.model.AbstractConfiguredObject$21.onSuccess(AbstractConfiguredObject.java:2587)
> 	at org.apache.qpid.server.model.AbstractConfiguredObject$22$1.run(AbstractConfiguredObject.java:2628)
> 	at org.apache.qpid.server.model.AbstractConfiguredObject$22$1.run(AbstractConfiguredObject.java:2624)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.security.auth.Subject.doAs(Subject.java:360)
> 	at org.apache.qpid.server.model.AbstractConfiguredObject$22.onSuccess(AbstractConfiguredObject.java:2623)
> 	at com.google.common.util.concurrent.Futures$6.run(Futures.java:1319)
> 	at org.apache.qpid.server.configuration.updater.TaskExecutorImpl$ImmediateIfSameThreadExecutor.execute(TaskExecutorImpl.java:392)
> 	at org.apache.qpid.server.configuration.updater.TaskExecutorImpl.execute(TaskExecutorImpl.java:175)
> 	at com.google.common.util.concurrent.ExecutionList.executeListener(ExecutionList.java:156)
> 	at com.google.common.util.concurrent.ExecutionList.add(ExecutionList.java:101)
> 	at com.google.common.util.concurrent.AbstractFuture.addListener(AbstractFuture.java:170)
> 	at com.google.common.util.concurrent.Futures.addCallback(Futures.java:1322)
> 	at org.apache.qpid.server.model.AbstractConfiguredObject.addFutureCallback(AbstractConfiguredObject.java:2618)
> 	at org.apache.qpid.server.model.AbstractConfiguredObject.doAfterAlways(AbstractConfiguredObject.java:2580)
> 	at org.apache.qpid.server.model.AbstractConfiguredObject.doAfterAlways(AbstractConfiguredObject.java:2572)
> 	at org.apache.qpid.server.virtualhost.AbstractVirtualHost.doDelete(AbstractVirtualHost.java:2299)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at org.apache.qpid.server.model.AbstractConfiguredObject.attainState(AbstractConfiguredObject.java:1523)
> 	at org.apache.qpid.server.model.AbstractConfiguredObject.access$2000(AbstractConfiguredObject.java:95)
> 	at org.apache.qpid.server.model.AbstractConfiguredObject$15.execute(AbstractConfiguredObject.java:1721)
> 	at org.apache.qpid.server.model.AbstractConfiguredObject$15.execute(AbstractConfiguredObject.java:1670)
> 	at org.apache.qpid.server.model.AbstractConfiguredObject$2.execute(AbstractConfiguredObject.java:636)
> 	at org.apache.qpid.server.model.AbstractConfiguredObject$2.execute(AbstractConfiguredObject.java:629)
> 	at org.apache.qpid.server.configuration.updater.TaskExecutorImpl$TaskLoggingWrapper.execute(TaskExecutorImpl.java:240)
> 	at org.apache.qpid.server.configuration.updater.TaskExecutorImpl$CallableWrapper$1.run(TaskExecutorImpl.java:312)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.security.auth.Subject.doAs(Subject.java:360)
> 	at org.apache.qpid.server.configuration.updater.TaskExecutorImpl$CallableWrapper.call(TaskExecutorImpl.java:305)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> 	at java.lang.Thread.run(Thread.java:748)
> {noformat}
> The broker survives.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message