You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2010/11/25 06:22:36 UTC
DO NOT REPLY [Bug 50333] New: IllegalArgumentException occurs when
setting maxActive to smaller than 1.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50333
Summary: IllegalArgumentException occurs when setting maxActive
to smaller than 1.
Product: Tomcat Modules
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: jdbc-pool
AssignedTo: dev@tomcat.apache.org
ReportedBy: mashmk02@gmail.com
Created an attachment (id=26340)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=26340)
patch
IllegalArgumentException occurs when setting maxActive to smaller than 1.
-----
java.lang.IllegalArgumentException
at
java.util.concurrent.ArrayBlockingQueue.<init>(ArrayBlockingQueue.java:164)
at
org.apache.tomcat.jdbc.pool.ConnectionPool.init(ConnectionPool.java:365)
at
org.apache.tomcat.jdbc.pool.ConnectionPool.<init>(ConnectionPool.java:130)
at
org.apache.tomcat.jdbc.pool.DataSourceProxy.createPool(DataSourceProxy.java:93)
at
org.apache.tomcat.jdbc.pool.DataSourceFactory.createDataSource(DataSourceFactory.java:490)
at
org.apache.tomcat.jdbc.pool.DataSourceFactory.getObjectInstance(DataSourceFactory.java:219)
at
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:142)
at
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at org.apache.naming.NamingContext.lookup(NamingContext.java:826)
at org.apache.naming.NamingContext.lookup(NamingContext.java:145)
at org.apache.naming.NamingContext.lookup(NamingContext.java:814)
at org.apache.naming.NamingContext.lookup(NamingContext.java:159)
at
org.apache.catalina.core.NamingContextListener.addResource(NamingContextListener.java:1020)
at
org.apache.catalina.core.NamingContextListener.createNamingContext(NamingContextListener.java:631)
at
org.apache.catalina.core.NamingContextListener.lifecycleEvent(NamingContextListener.java:237)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:89)
at
org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:668)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140)
at org.apache.catalina.startup.Catalina.start(Catalina.java:596)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:303)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431)
---
In DBCP, if the negative value is set to maxActive, the pool size is unlimited.
However, because ArrayBlockingQueue is used in JDBC-Pool, values that are
smaller than 1 cannot be set to maxActive.
In my patch, if maxActive is smaller than 1, default value (100) is set to
maxActive.
Regards.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: DO NOT REPLY [Bug 50333] IllegalArgumentException occurs when
setting maxActive to smaller than 1.
Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
roger that Rainer, thank you!
On 1/10/2011 1:43 PM, Rainer Jung wrote:
> Hi Filip,
>
> On 10.01.2011 17:41, bugzilla@apache.org wrote:
>> https://issues.apache.org/bugzilla/show_bug.cgi?id=50333
>>
>> Filip Hanik<fh...@apache.org> changed:
>>
>> What |Removed |Added
>> ----------------------------------------------------------------------------
>> Status|NEW |RESOLVED
>> Resolution| |FIXED
>>
>> --- Comment #1 from Filip Hanik<fh...@apache.org> 2011-01-10 11:41:53 EST ---
>> svn r 1057268
>
> if you write it as r1057268 a regexp that I think Mark added sometime to Bugzilla will detect it and provide a nice link to the viewvc
> revision entry in the HTML view of the ticket. It does not work when whitespace is between the "r" and the revision number.
>
> Regards,
>
> Rainer
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>
>
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 10.0.1191 / Virus Database: 1435/3373 - Release Date: 01/11/11
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: DO NOT REPLY [Bug 50333] IllegalArgumentException occurs when
setting maxActive to smaller than 1.
Posted by Rainer Jung <ra...@kippdata.de>.
Hi Filip,
On 10.01.2011 17:41, bugzilla@apache.org wrote:
> https://issues.apache.org/bugzilla/show_bug.cgi?id=50333
>
> Filip Hanik<fh...@apache.org> changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> Status|NEW |RESOLVED
> Resolution| |FIXED
>
> --- Comment #1 from Filip Hanik<fh...@apache.org> 2011-01-10 11:41:53 EST ---
> svn r 1057268
if you write it as r1057268 a regexp that I think Mark added sometime to
Bugzilla will detect it and provide a nice link to the viewvc revision
entry in the HTML view of the ticket. It does not work when whitespace
is between the "r" and the revision number.
Regards,
Rainer
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 50333] IllegalArgumentException occurs when
setting maxActive to smaller than 1.
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50333
Filip Hanik <fh...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Filip Hanik <fh...@apache.org> 2011-01-10 11:41:53 EST ---
svn r 1057268
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org