RE: RE: RE: RE: Exception when reloading my EAR / linked with pool of session bean ?

<[email protected]> Mon, 23 May 2011 16:41:38 +0200
Newsgroups gmane.comp.java.objectweb.jonas
Message-ID <B11765B89737A7498AF63EA84EC9F577954184@ftrdmel1>
After changing my Oracle Jrockit JDK to Sun JDK, it seems that all my problems are now gone...

Serge

 

De : [email protected] [mailto:[email protected]] 
Envoyé : mardi 17 mai 2011 11:54
À : [email protected]
Objet : [jonas] RE: RE: RE: Exception when reloading my EAR / linked with pool of session bean ?

 

In fact it is a random problem !! I've just noticed when I launch my client several times, it finally managed to work...

I don't know if the origin of the problem is a strange behaviour of Jonas due to bad design of my code, or really a Jonas bug.

Thanks

Serge

 

De : [email protected] [mailto:[email protected]] 
Envoyé : mardi 17 mai 2011 11:35
À : [email protected]
Objet : [jonas] RE: RE: Exception when reloading my EAR / linked with pool of session bean ?

 

Hello again 

 

Sorry but I am really stuck with this problem L

I solved some points by removing some @Remote and @Local annotations on my SL session bean.

But when I launch a remote EJB client, I got the same awful error :

 

Caused by: java.lang.IllegalArgumentException: Cannot get element in the pool

        at org.ow2.easybeans.container.session.stateless.StatelessSessionFactory.getBean(StatelessSessionFactory.java:107)

        at org.ow2.easybeans.container.session.stateless.StatelessSessionFactory.localCall(StatelessSessionFactory.java:124)

 

and 

 

Caused by: org.ow2.util.pool.api.PoolException: No more instances available

        at org.ow2.util.pool.impl.enhanced.EnhancedPool.get(EnhancedPool.java:201)

        at org.ow2.easybeans.container.session.PoolWrapper.get(PoolWrapper.java:71)

        at org.ow2.easybeans.container.session.PoolWrapper.get(PoolWrapper.java:40)

        at org.ow2.easybeans.container.session.stateless.StatelessSessionFactory.getBean(StatelessSessionFactory.java:105)

        ... 17 more

Caused by: org.ow2.util.pool.impl.enhanced.api.TimeoutPoolException

        at org.ow2.util.pool.impl.enhanced.impl.keepbusy.KeepBusyPool.get(KeepBusyPool.java:229)

        at org.ow2.util.pool.impl.enhanced.impl.limited.LimitedWaiterPool.get(LimitedWaiterPool.java:70)

        at org.ow2.util.pool.impl.enhanced.EnhancedPool.get(EnhancedPool.java:197)

        ... 20 more

 

I cannot see anything on Internet with these errors L

Thanks

Serge

 

De : [email protected] [mailto:[email protected]] 
Envoyé : vendredi 13 mai 2011 14:44
À : [email protected]
Objet : [jonas] RE: Exception when reloading my EAR / linked with pool of session bean ?

 

To be more precise, I noticed this when I stop Jonas, there is a kind of warning :

 

"WebappClassLoader.clearReferencesThreads : The web application [/OrangeOpenCloud] appears to have started a thread named [WorkThread-1/61] but has failed to stop it. This is very likely to create a memory leak."

 

Maybe it is the origin of the problem ?

 

De : [email protected] [mailto:[email protected]] 
Envoyé : vendredi 13 mai 2011 14:37
À : [email protected]
Objet : [jonas] Exception when reloading my EAR / linked with pool of session bean ?

 

Hello there,

 

When I redeploy my EAR on Jonas (5.2 version) I noticed this exception (not every time) : 

 

AbsTransactionInterceptor.handleContextContainerTransaction : Exception (not application exception) in business method

javax.ejb.EJBException: java.lang.IllegalArgumentException: Cannot get element in the pool at org.ow2.easybeans.proxy.client.AbsInvocationHandler.handleThrowable(AbsInvocationHandler.java:176)

 

It seems to be linked with the loading of a Timer session Bean and the associated pool : 

 

Caused by: org.ow2.util.pool.api.PoolException: No more instances available

                at org.ow2.util.pool.impl.enhanced.EnhancedPool.get(EnhancedPool.java:201)

                at org.ow2.easybeans.container.session.PoolWrapper.get(PoolWrapper.java:71)

                at org.ow2.easybeans.container.session.PoolWrapper.get(PoolWrapper.java:40)

                at org.ow2.easybeans.container.session.stateless.StatelessSessionFactory.getBean(StatelessSess

ionFactory.java:105)

                ... 51 more

Caused by: org.ow2.util.pool.impl.enhanced.api.TimeoutPoolException

                at org.ow2.util.pool.impl.enhanced.impl.keepbusy.KeepBusyPool.get(KeepBusyPool.java:229)

                at org.ow2.util.pool.impl.enhanced.impl.limited.LimitedWaiterPool.get(LimitedWaiterPool.java:7

0)

                at org.ow2.util.pool.impl.enhanced.EnhancedPool.get(EnhancedPool.java:197)

                ... 54 more

 

Please can you help me ? Is there a setting in Jonas to change to increase session bean pool ?

 

Thanks a lot.

Serge