[jboss-jira] [JBoss JIRA] Commented: (EJBTHREE-1870) stopDelivery on active MDB results in exception (Session not found)

Christian Strempfer (JIRA) jira-events at lists.jboss.org
Thu May 19 06:34:01 EDT 2011


    [ https://issues.jboss.org/browse/EJBTHREE-1870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12603163#comment-12603163 ] 

Christian Strempfer commented on EJBTHREE-1870:
-----------------------------------------------

Is there some kind of workaround?

> stopDelivery on active MDB results in exception (Session not found)
> -------------------------------------------------------------------
>
>                 Key: EJBTHREE-1870
>                 URL: https://issues.jboss.org/browse/EJBTHREE-1870
>             Project: EJB 3.0
>          Issue Type: Bug
>          Components: ejb3
>    Affects Versions: 1.1.3
>         Environment: Mac OS/X Leopard, JDK 6, JBoss 5.1.0GA
>            Reporter: Philip Dodds
>         Attachments: stopdelivery-mdb.zip
>
>
> If you start an MDB and introduce a messages to it then use the stopDelivery method of the MDB's MBean to stop it consuming messages you get an exception.  Note this problem only occurs if the MDB has a transaction in flight when the stopDelivery is called.
> 2009-05-20 12:30:52,499 ERROR [org.jboss.messaging.util.ExceptionUtil] (WorkManager(2)-44) Connectio
> nEndpoint[fe-oz919yuf-1-mj809yuf-bruz48-x21o4c5] sendTransaction [ur4-b6b39yuf-1-mj809yuf-bruz48-x21
> o4c5]
> javax.jms.IllegalStateException: Cannot find session with id ie-qz919yuf-1-mj809yuf-bruz48-x21o4c5
> 	at org.jboss.jms.server.endpoint.ServerConnectionEndpoint.processTransaction(ServerConnectionEndpoi
> nt.java:835)
> 	at org.jboss.jms.server.endpoint.ServerConnectionEndpoint.sendTransaction(ServerConnectionEndpoint.
> java:497)
> 	at org.jboss.jms.server.endpoint.advised.ConnectionAdvised.org$jboss$jms$server$endpoint$advised$Co
> nnectionAdvised$sendTransaction$aop(ConnectionAdvised.java:101)
> 	at org.jboss.jms.server.endpoint.advised.ConnectionAdvised$sendTransaction_N3268650789275322226.inv
> okeTarget(ConnectionAdvised$sendTransaction_N3268650789275322226.java)
> I have attached a slightly doctors version of the EJB3 MDB example code,  it has been changed to introduce a sleep of 5 seconds in the MDB (to keep the transaction active longer) and also introduces a higher volume of messages to give you a chance to get to the JMX console and call stopDelivery.  If you don't get an exception on the first attempt it is worth trying again as the transaction must be in flight for the problem to occur.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list