[jboss-jira] [JBoss JIRA] (AS7-3215) EJB remote client context does not survive server restart
Ivo Studensky (Created) (JIRA)
jira-events at lists.jboss.org
Fri Jan 6 10:04:10 EST 2012
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: Application Client
Affects Versions: 7.1.0.CR1b
Reporter: Ivo Studensky
Assignee: Stuart Douglas
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