geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arunanthisivam Vimalathithen" <>
Subject Re: Failure when looking up an EJB consecutively
Date Tue, 26 Sep 2006 08:10:12 GMT
Hi Lasantha,

I had a look at your example and it differs in the following. Setting up the
initial context and lookup, narrowing, creation as well as the remote bean
method invocation are all within the same loop, and also the home object is
narrowed using PortableRemoteObject.narrow. I am providing you with some
sample code below. I suggest you modify your code as below to reproduce this
error. (if it works the first time which I doubt, please run again it will
throw up the error). We are currently testing this on Geronimo 1.1.1.

     for(int i=0;i<1000;i++){
     Properties properties = new Properties();
        try {
            InitialContext ic = new InitialContext(properties);
            Object o = ic.lookup("SessionTestBean");
            SessionTestRemoteHome sessionTestRemoteHome =
            SessionTestRemote sessionTestRemote =
        }catch(NamingException e) {
        } catch (RemoteException e) {
        } catch (CreateException e) {

On 9/26/06, Lasantha Ranaweera <> wrote:
> Hi Vimalan,
> I tested this problem with a 2000 consecutive requests in Geronimo v 1.1.1.
> But it doesn't happen to me at all. You can test it with the EJB samples
> application in
> replacing
> following files. We might able to help you if you are more specific and
> share your code with us.
> Regards,
> Lasantha Ranaweera
> Arunanthisivam Vimalathithen wrote:
> Hi,
> I am having a problem in an application I am trying to port to WebSphere
> community edition which basically uses Geronimo 1.0 (This problem exists
> in the latest version of Geronimo (1.1.1) as well). The client I am using
> looks up the service numerous times consecutively and invokes the services.
> The problem happens when this has gone past more than 630 times, the client
> simply fails to look up and produces the following error:
> *java.rmi.RemoteException*: Cannot access server: /*4201*Exception: ; nested
exception is:
> **: Cannot access server: / *Exception*:
> ** : Address already in use: connect
> The same error can be produced by looking up and invoking a simple hello
> world EJB in a loop of 700 times. This happens in the latest release of
> Geronimo (sometimes the loop might need to be increased to 1000). Any work
> arounds to this?
> Thanks and regards,
> Vimalan

View raw message