[jboss-jira] [JBoss JIRA] (AS7-3215) EJB remote client context does not survive server restart

jaikiran pai (JIRA) jira-events at lists.jboss.org
Thu Feb 9 02:28:49 EST 2012


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

jaikiran pai commented on AS7-3215:
-----------------------------------

Please do not forget to send in a pull request for these tests to AS7 upstream. We need this functionality to be always tested.

                
> EJB remote client context does not survive server restart
> ---------------------------------------------------------
>
>                 Key: AS7-3215
>                 URL: https://issues.jboss.org/browse/AS7-3215
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: EJB
>    Affects Versions: 7.1.0.CR1b
>            Reporter: Ivo Studensky
>            Assignee: jaikiran pai
>            Priority: Blocker
>              Labels: eap6_prd_req
>             Fix For: 7.1.0.Final
>
>
> Let's say we have an AS7 server with a stateless bean deployed at it and a client application which:
> 1. calls remotely the stateless bean
> 2. restarts the server
> 3. and calls the stateless bean again
> The first invocation of the stateless bean instantiates some static fields in EJBInvocationHandler, EJBClientContext, etc. like a new remote connection, an ejb receiver and so on, and returns a proxy for the bean and does the remote call successfully. But after the server is restarted, the second invocation of the stateless bean does not re-create/re-instantiate any new remote connection or other ejb client utils and fails with IllegalStateException: No EJB receiver available for handling ... combination. Note that EJBClientContext#ejbReceiverAssociations is empty at that time. See the following stacktrace snippet:
>  
> {noformat}
> java.lang.IllegalStateException: No EJB receiver available for handling [appName:,modulename:crash,distinctname:] combination
> 	at org.jboss.ejb.client.EJBClientContext.requireEJBReceiver(EJBClientContext.java:344)
> 	at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:92)
> 	at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:83)
> 	at $Proxy22.test(Unknown Source)
> 	at org.jboss.as.test.jbossts.ejbclienttest.EJBClientCrashTestCase.testCrashOnClient(EJBClientCrashTestCase.java:103)
> {noformat}
> Test-case for this issue can be found here:
> https://github.com/istudens/jboss-as/compare/crash_rec_tests#diff-36
> More detailed info how to reproduce the bug has been attached to 'Steps to Reproduce' of this jira.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list