Re: Re: Re: Increase JOnAS-EJB / EasyBeans Pool Timeout ? (avoid org.ow2.util.pool.impl.enhanced.api.TimeoutPoolException)

Florent BENOIT <[email protected]> Thu, 08 Sep 2011 16:11:16 +0200
Newsgroups gmane.comp.java.objectweb.jonas
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------090702070004090105070004
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Maybe a bug, could you open a JIRA issue ?

Regards,

Florent

On 09/07/2011 08:49 PM, Hans J. Prueller wrote:
> Hi again,
>
> I was curious about setting the timeout value and gave it a try by 
> just setting it to  5 seconds (guess the value to be set is in millis):
>
> @Pool (timeout=5000)
>
> the problem ist, that I now get a ClassCastException when deploying 
> the EAR:
>
> Caused by: java.lang.ClassCastException: java.lang.Long cannot be cast 
> to java.lang.Integer
> at org.ow2.util.pool.impl.visitor.PoolVisitor.visit(PoolVisitor.java:122)
> at 
> org.ow2.util.scan.impl.ScanAnnotationVisitor.visit(ScanAnnotationVisitor.java:66)
>
> looks like abug in annotation processing or did I set something wrong ???
>
> regards,
> Hans
>
> Am Mittwoch, den 07.09.2011, 17:55 +0200 schrieb Florent BENOIT:
>>     Hi,
>>
>> You may use -Deasybeans.useSimplePool=true in JAVA_OPTS/JONAS_OPTS so 
>> that you'll get previous pool which is using lazy mode and do not 
>> populate the pool with an init size.
>>
>> Also, with @PoolConfiguration or <pool> element in 
>> META-INF/easybeans.xml, you can tune the size of the pool with the 
>> timeout value that you're expecting
>>
>> Regards,
>>
>> Florent
>>
>> On 09/07/2011 05:10 PM, Hans J. Prueller wrote:
>>> Hi all,
>>>
>>> it seems that sometimes when I am working and testing our JOnAS 5.2 
>>> based EAR on a slow machine or the machine is under heavy load,
>>> several org.ow2.util.pool.impl.enhanced.api.TimeoutPoolException are 
>>> occuring during startup / initialisation of the application.
>>>
>>> (the app is initialized by doing some EJB calls in a servlet init() 
>>> method after deployment)
>>>
>>> Is there a way to increase this timeout to a larger value on our dev 
>>> machines to avoid above error ?
>>>
>>>
>>> regards,
>>> Hans
>>>
>>
>


--------------090702070004090105070004
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<html>
  <head>
    <meta content=3D"text/html; charset=3DUTF-8" http-equiv=3D"Content-Ty=
pe">
  </head>
  <body bgcolor=3D"#FFFFFF" text=3D"#000000">
    Maybe a bug, could you open a JIRA issue ?<br>
    <br>
    Regards,<br>
    <br>
    Florent<br>
    <br>
    On 09/07/2011 08:49 PM, Hans J. Prueller wrote:
    <blockquote cite=3D"mid:1315421384.13515.10.camel@kodos" type=3D"cite=
">
      <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DU=
TF-8">
      <meta name=3D"GENERATOR" content=3D"GtkHTML/3.32.2">
      Hi again,<br>
      <br>
      I was curious about setting the timeout value and gave it a try by
      just setting it to=C2=A0 5 seconds (guess the value to be set is in
      millis):<br>
      <br>
      @Pool (timeout=3D5000)<br>
      <br>
      the problem ist, that I now get a ClassCastException when
      deploying the EAR:<br>
      <br>
      Caused by: java.lang.ClassCastException: java.lang.Long cannot be
      cast to java.lang.Integer<br>
      at
      org.ow2.util.pool.impl.visitor.PoolVisitor.visit(PoolVisitor.java:1=
22)<br>
      at
org.ow2.util.scan.impl.ScanAnnotationVisitor.visit(ScanAnnotationVisitor.=
java:66)<br>
      <br>
      looks like abug in annotation processing or did I set something
      wrong ??? <br>
      <br>
      regards,<br>
      Hans<br>
      <br>
      Am Mittwoch, den 07.09.2011, 17:55 +0200 schrieb Florent BENOIT:<br=
>
      <blockquote type=3D"CITE"> =C2=A0=C2=A0=C2=A0 Hi,<br>
        <br>
        You may use -Deasybeans.useSimplePool=3Dtrue in
        JAVA_OPTS/JONAS_OPTS so that you'll get previous pool which is
        using lazy mode and do not populate the pool with an init size.<b=
r>
        <br>
        Also, with @PoolConfiguration or &lt;pool&gt; element in
        META-INF/easybeans.xml, you can tune the size of the pool with
        the timeout value that you're expecting<br>
        <br>
        Regards,<br>
        <br>
        Florent<br>
        <br>
        On 09/07/2011 05:10 PM, Hans J. Prueller wrote: <br>
        <blockquote type=3D"CITE"> Hi all,<br>
          <br>
          it seems that sometimes when I am working and testing our
          JOnAS 5.2 based EAR on a slow machine or the machine is under
          heavy load,<br>
          several
          org.ow2.util.pool.impl.enhanced.api.TimeoutPoolException are
          occuring during startup / initialisation of the application.<br=
>
          <br>
          (the app is initialized by doing some EJB calls in a servlet
          init() method after deployment)<br>
          <br>
          Is there a way to increase this timeout to a larger value on
          our dev machines to avoid above error ?<br>
          <br>
          <br>
          regards,<br>
          Hans<br>
          <br>
        </blockquote>
        <br>
      </blockquote>
      <br>
    </blockquote>
    <br>
  </body>
</html>

--------------090702070004090105070004--