[jboss-jira] [JBoss JIRA] (AS7-3215) EJB remote client context does not survive server restart
Ivo Studensky (JIRA)
jira-events at lists.jboss.org
Thu Feb 9 07:11:48 EST 2012
[ https://issues.jboss.org/browse/AS7-3215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12665318#comment-12665318 ]
Ivo Studensky commented on AS7-3215:
------------------------------------
A new pull request has been prepared for tests for this issue, see JBQA-5902.
> 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