Phil Steitz | 1 Jun 15:38 2015

[ANNOUNCEMENT] Apache Commons Pool 2.4.1 released

The Apache Commons Team is pleased to announce the release of Apache Commons Pool 2.4.1.

The Apache Commons Pool open source software library provides an object-pooling API and a number of object
pool implementations.

No client code changes are required to migrate from any of the 2.x versions to 2.4.1. Users of version 1.x
should consult the migration guide on the Commons Pool web site.

Source and binary distributions are available for download from the Apache Commons download site:

When downloading, please verify signatures using the KEYS file available at the above location.

Full details of all the changes in 2.4.1 can be found in the changelog:

For complete information on Commons Pool, including instructions on how to submit bug reports, patches,
or suggestions for improvement, see the Apache Commons Pool website:

Phil Steitz, on behalf of the Apache Commons community
Gilles | 1 Jun 14:38 2015

[Math] Allow empty "ConvexHull2D"


I have a question regarding

public Region<Euclidean2D> createRegion() throws 

in ConvexHull2D.
It throws the exception when the number of points is < 3.

One can imagine that rather than aborting it could return an "empty 
(which would seamlessly work with further operations on the Region).

What do you think?

Context: in the course of a program, a "valid" region can undergo 
transformation until it is indeed impossible to compute the hull; it 
that it would be interesting to not treat that as a hard-failure 
an exception).

Barry Lulas | 1 Jun 02:09 2015

[JCS] Error starting web service with JCS on WAS 8.5.5 (Linux only)


I have created a web service for WebSphere that uses a basic JCS configuration.  When I package and deploy for
WAS under Windows on my local machine I have no issues.  When I deploy that same .ear file to my WAS running on
Linux I get the following exception when I try to start my service in the WAS console:

[6/1/15 2:00:51:875 CEST] 00000093 BeansDeployer E BeansDeployer deploy
java.lang.NullPointerException at java.util.Properties.load( at
org.apache.commons.jcs.jcache.JCSCachingManager.readConfig( at
org.apache.commons.jcs.jcache.JCSCachingManager.<init>( at
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke( at
sun.reflect.DelegatingMethodAccessorImpl.invoke( at
java.lang.reflect.Method.invoke( at
org.apache.webbeans.event.ObserverMethodImpl.notify( at
org.apache.webbeans.event.NotificationManager.fireEvent( at
org.apache.webbeans.container.BeanManagerImpl.fireEvent( at
at org.apache.webbeans.config.BeansDeployer.deploy( at
at at
at at
(Continue reading)

Timo | 28 May 22:55 2015

Reflection Utils

Hello everyone,

I was wondering if there is a utility somewhere in Commons with which
I can get all fields of a class with a given Annotation. Something
similar to Spring's (internal) ReflectionUtils.doWithFields(). I
couldn't find anything in Lang or BeanUtils. Anywhere else I should
take a look?

Ajay kumar Gour | 28 May 00:10 2015

[dbcp] No operations allowed after statement closed

Hi there,

One of the application I am working on is using commons-dbcp-1.2.2.jar.
Below is my data source configuration –

<Resource id="myDS" type="javax.sql.DataSource">

  JdbcDriver com.mysql.jdbc.Driver

  JdbcUrl jdbc:mysql://localhost:3306/test?relaxAutoCommit=true

  UserName root

  Password ****

  JtaManaged true

  MaxWait 0

  PoolPreparedStatements true

  MaxOpenPreparedStatements 20

  MaxActive 5

  MinEvictableIdleTime 5 minutes

  TimeBetweenEvictionRuns 120000 millisecond

  NumTestsPerEvictionRun 5
(Continue reading)

Roger Whitcomb | 26 May 19:39 2015

[VFS] Could the HDFS connector work with MapR systems?

Hi all,
                I'm using Commons VFS 2.1 along with the HDFS connector and everything is working brilliantly ... until,
that is, trying to access HDFS on a MapR system.  Then I get things like null host name exceptions and the
like.  So, anyone have any idea whether the HDFS connector even COULD work against MapR?  And if not, anyone
tried to build a MapR connector to Commons VFS 2.1?

Thanks in advance,
~Roger Whitcomb
Thomas Neidhart | 25 May 20:39 2015

[ANNOUNCE] Commons Email version 1.4 released


The Apache Commons team is pleased to announce the release of

Commons-Email aims to provide an API for sending email. It is built on
top of the JavaMail API, which it aims to simplify.

Commons Email can be downloaded from the following page:

For information on Commons Email, please visit our website:

Details of the changes and bug fixes in this release can be found in the
release notes:

The changes are also available at:

Commons Email requires Java 5 or later.

The Maven coordinates are:

Best regards,

(Continue reading)

Bernard GODARD | 14 May 16:40 2015

[math] ODE with Jacobian in commons math 3.5

Dear all,

The user guide on ordinary differential equations
is very useful to understand how to use ODEWithJacobians and
but not up to date.

From the latest documentation, it does not seem clear to me how to use
ParameterizedODE and ParameterJacobianProvider in math 3.5.

Moreover  ParameterJacobianProvider-> computeParameterJacobian looks like
it can only handle one parameter at a time and is computed independently
from the main dynamic equation. For the use case I am interested in
(integration of the orbit of a satellite with complex dynamic model of
several hundred parameters) I prefer to compute together the force model
and its partial derivatives with respect to all parameters together
because these computations share a lot of intermediate results. Otherwise I
have to either recompute or use a cache mechanism with a test on input
parameter change (which also may be invalidated by the ODE integrator
depending on the order of the evaluation calls). This design then seems
inefficient to me but there might be a good reason for it. I would
appreciate if someone could explain this choice.

I would rather have a method like:

void computeDerivativesWithJacobian(double t, double[] y,
parameterList,double[] yDot,double[][] Jacobian )
with parameterList an input specifying the ordered list of parameters for
which to compute the Jacobian.
(Continue reading)

Oliver Heger | 12 May 21:31 2015

Re: [configuration] Apache Commons Configuration Version 2

Just for the records: There have been 2 alpha releases for
[configuration] 2.0 so far that were not deployed to Maven central. The
feedback we got was close to zero.

(Just stating a fact, not meaning to push in either direction.)


Am 12.05.2015 um 14:13 schrieb James Carman:
> So, here we struggle with the notion that our releases have to be perfect
> before we let them go into the wild. We seem to have this almost coddling
> philosophy that we have to protect our users against themselves at all
> costs. Perhaps Java 9 and "jigsaw" will alleviate us from this burden and
> we can stop quibbling over such things in the future. Yes, "jar hell" is a
> pain, and our approach to handling it within the Java SE single-classloader
> environment (and maven) is unique and effective, but we can't let
> hypotheticals stand in the way of our progress. If (and this is a big if as
> Ralph points out) some downstream project decides to use an alpha release
> as their basis and publish to the world, it's egg on their face, not ours.
> While we sit around arguing over how to design our hairdryer so that it is
> waterproof in case some idiot takes it in the bath, someone else is busy
> coming up with a way people can clean themselves without water (thought I
> was done with my metaphor huh).
> On Sun, May 10, 2015 at 4:24 PM Phil Steitz <phil.steitz <at>> wrote:
>> On 5/10/15 9:10 AM, James Carman wrote:
>>> As do people who try to blow dry their hair while they are in the
>> bathtub,
>>> but they don't stop making hairdryers. They put a sticker on the cord
(Continue reading)

Mahendran Pirinthapan | 12 May 17:18 2015

[commons-httpclient] Continuously getting 401 response when using commons-httpclient

Hi all,

We are using apache commons-httpclient-3.1.0 in our project to send Rest
call requests to Jenkins server, which is deployed in our environment. We
have the following code to set the credentials for the requests.


In our production environment if one request is responded with 401 status
code by Jenkins then the subsequent requests also fails with 401 status
code. Please find the debug log in [1].

Since our production environment is a long running server we can not
restart it frequently. So the above issue affects all the users if it
occurred once.

I kindly expect your thoughts on resolving this issue.


Thanks & Regards,

(Continue reading)

Benedikt Ritter | 10 May 08:06 2015

[ANNOUNCE] Apache Commons CLI 1.3 released!

The Apache Commons Team is pleased to announce the release of Apache
Commons CLI 1.3.

The Apache Commons CLI library provides an API for parsing command line
options passed to programs. It's also able to print help messages detailing
the options available for a command line tool.

1.3 is binary compatible to the last release 1.2. The highlight of this
release is the introduction of a new API for defining Options for the
parser. More information about this, as well as the full details of all the
changes in 3.4 see the release notes:
The minimum required JDK version for this release is 1.5.

Source and binary distributions are available for download from the Apache
Commons download site:

When downloading, please verify signatures using the KEYS file available at
the above location.

Alternatively the release can be pulled via maven:

For complete information on Commons CLI, including instructions on how to
submit bug reports, patches, or suggestions for improvement, see the Apache
(Continue reading)