java.lang.IllegalStateException: There is already a delivery set for auto ack
-----------------------------------------------------------------------------
Key: JBMESSAGING-1848
URL:
https://issues.jboss.org/browse/JBMESSAGING-1848
Project: JBoss Messaging
Issue Type: Bug
Affects Versions: 1.4.3.GA
Reporter: philippe pinheiro
If I run mutiple Threads (30) inside JBoss sharing a common QueueSession created in
Session.AUTO_ACKNOWLEDGE mode
for sending and receiving messages from a Queue, after a while I get this exception :
java.lang.IllegalStateException: There is already a delivery set for auto ack 23964772 xa:
false
2011-02-18 11:52:02,501 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.jms.client.state.SessionState.setAutoAckInfo(SessionState.java:408)
2011-02-18 11:52:02,501 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.jms.client.container.SessionAspect.handlePreDeliver(SessionAspect.java:268)
2011-02-18 11:52:02,501 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.aop.advice.org.jboss.jms.client.container.SessionAspect_z_handlePreDeliver_4634459.invoke(SessionAspect_z_handlePreDeliver_4634459.java)
2011-02-18 11:52:02,501 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2011-02-18 11:52:02,501 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
2011-02-18 11:52:02,502 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)
2011-02-18 11:52:02,502 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2011-02-18 11:52:02,502 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.jms.client.delegate.ClientSessionDelegate.preDeliver(ClientSessionDelegate.java)
2011-02-18 11:52:02,502 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.jms.client.container.ClientConsumer.receive(ClientConsumer.java:550)
2011-02-18 11:52:02,502 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.jms.client.container.ConsumerAspect.handleReceive(ConsumerAspect.java:194)
2011-02-18 11:52:02,503 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.aop.advice.org.jboss.jms.client.container.ConsumerAspect_z_handleReceive_4634459.invoke(ConsumerAspect_z_handleReceive_4634459.java)
2011-02-18 11:52:02,503 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2011-02-18 11:52:02,503 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
2011-02-18 11:52:02,503 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)
2011-02-18 11:52:02,504 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2011-02-18 11:52:02,504 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.jms.client.delegate.ClientConsumerDelegate.receive(ClientConsumerDelegate.java)
2011-02-18 11:52:02,504 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.jms.client.JBossMessageConsumer.receive(JBossMessageConsumer.java:81)
2011-02-18 11:52:02,504 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
integra.jms.reportfactory.ReportFactoryJMSSoapClient.getResult(ReportFactoryJMSSoapClient.java:80)
2011-02-18 11:52:02,504 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
integra.jms.reportfactory.ReportFactoryJMSRestClient.execute(ReportFactoryJMSRestClient.java:175)
2011-02-18 11:52:02,505 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
integra.jms.reportfactory.ReportFactoryJMSCommonClient.execute(ReportFactoryJMSCommonClient.java:22)
2011-02-18 11:52:02,505 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
integra.test.ClientSingleton.executeReport(ClientSingleton.java:40)
2011-02-18 11:52:02,505 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
integra.test.TestCallBean.test(TestCallBean.java:20)
2011-02-18 11:52:02,505 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
sun.reflect.GeneratedMethodAccessor293.invoke(Unknown Source)
2011-02-18 11:52:02,505 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2011-02-18 11:52:02,505 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
java.lang.reflect.Method.invoke(Unknown Source)
2011-02-18 11:52:02,506 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.aop.joinpoint.MethodInvocation.invokeTarget(MethodInvocation.java:122)
2011-02-18 11:52:02,506 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
2011-02-18 11:52:02,506 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.ejb3.EJBContainerInvocationWrapper.invokeNext(EJBContainerInvocationWrapper.java:69)
2011-02-18 11:52:02,506 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.ejb3.interceptors.aop.InterceptorSequencer.invoke(InterceptorSequencer.java:73)
2011-02-18 11:52:02,506 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.ejb3.interceptors.aop.InterceptorSequencer.aroundInvoke(InterceptorSequencer.java:59)
2011-02-18 11:52:02,507 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
sun.reflect.GeneratedMethodAccessor287.invoke(Unknown Source)
2011-02-18 11:52:02,507 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2011-02-18 11:52:02,507 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
java.lang.reflect.Method.invoke(Unknown Source)
2011-02-18 11:52:02,507 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.aop.advice.PerJoinpointAdvice.invoke(PerJoinpointAdvice.java:174)
2011-02-18 11:52:02,507 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2011-02-18 11:52:02,507 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.fillMethod(InvocationContextInterceptor.java:72)
2011-02-18 11:52:02,508 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_fillMethod_4634459.invoke(InvocationContextInterceptor_z_fillMethod_4634459.java)
2011-02-18 11:52:02,508 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2011-02-18 11:52:02,508 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.setup(InvocationContextInterceptor.java:88)
2011-02-18 11:52:02,508 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_setup_4634459.invoke(InvocationContextInterceptor_z_setup_4634459.java)
2011-02-18 11:52:02,509 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2011-02-18 11:52:02,509 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.ejb3.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:62)
2011-02-18 11:52:02,509 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2011-02-18 11:52:02,509 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:56)
2011-02-18 11:52:02,509 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2011-02-18 11:52:02,509 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
2011-02-18 11:52:02,510 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2011-02-18 11:52:02,510 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
2011-02-18 11:52:02,510 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2011-02-18 11:52:02,510 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:68)
2011-02-18 11:52:02,510 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2011-02-18 11:52:02,511 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
2011-02-18 11:52:02,511 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:190)
2011-02-18 11:52:02,511 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2011-02-18 11:52:02,511 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
2011-02-18 11:52:02,511 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2011-02-18 11:52:02,512 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
2011-02-18 11:52:02,512 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2011-02-18 11:52:02,512 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:186)
2011-02-18 11:52:02,512 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2011-02-18 11:52:02,512 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)
2011-02-18 11:52:02,512 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2011-02-18 11:52:02,513 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)
2011-02-18 11:52:02,513 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2011-02-18 11:52:02,513 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
2011-02-18 11:52:02,513 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2011-02-18 11:52:02,513 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:421)
2011-02-18 11:52:02,514 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:53)
2011-02-18 11:52:02,514 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91)
2011-02-18 11:52:02,514 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
2011-02-18 11:52:02,514 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:891)
2011-02-18 11:52:02,514 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:744)
2011-02-18 11:52:02,515 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:697)
2011-02-18 11:52:02,515 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:551)
2011-02-18 11:52:02,515 ERROR [STDERR] (WorkerThread#24[10.20.0.75:50388]) at
org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:232)
It seems to be a problem of aspect in SessionAspect.handlePreDeliver and
SessionAspect.handlePostDeliver
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira