Phil Steitz | 1 Jun 15:38 2015
Picon

[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:
http://commons.apache.org/proper/commons-pool/download_pool.cgi

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:
http://commons.apache.org/proper/commons-pool/changes-report.html

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:
http://commons.apache.org/proper/commons-pool/

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

[Math] Allow empty "ConvexHull2D"

Hi.

I have a question regarding

public Region<Euclidean2D> createRegion() throws 
InsufficientDataException

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 
Region"
(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 
successive
transformation until it is indeed impossible to compute the hull; it 
seems
that it would be interesting to not treat that as a hard-failure 
(warranting
an exception).

Regards,
Gilles
Barry Lulas | 1 Jun 02:09 2015

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

Hello,

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(Properties.java:356) at
org.apache.commons.jcs.jcache.JCSCachingManager.readConfig(JCSCachingManager.java:95) at
org.apache.commons.jcs.jcache.JCSCachingManager.<init>(JCSCachingManager.java:70) at
org.apache.commons.jcs.jcache.JCSCachingProvider.getCacheManager(JCSCachingProvider.java:56)
at
org.apache.commons.jcs.jcache.extras.cdi.ExtraJCacheExtension.addJCacheBeans(ExtraJCacheExtension.java:81)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:94) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55) at
java.lang.reflect.Method.invoke(Method.java:619) at
org.apache.webbeans.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:285) at
org.apache.webbeans.event.NotificationManager.fireEvent(NotificationManager.java:455) at
org.apache.webbeans.container.BeanManagerImpl.fireEvent(BeanManagerImpl.java:452) at
org.apache.webbeans.config.BeansDeployer.fireAfterBeanDiscoveryEvent(BeansDeployer.java:269)
at org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:180) at
org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:124)
at
org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:78)
at com.ibm.ws.webbeans.common.CommonLifeCycle.startApplication(CommonLifeCycle.java:106) at
com.ibm.ws.webbeans.services.JCDIServletContainerInitializer.onStartup(JCDIServletContainerInitializer.java:85)
at
com.ibm.ws.webcontainer.webapp.WebAppImpl.initializeServletContainerInitializers(WebAppImpl.java:613)
at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:409) at
(Continue reading)

Timo | 28 May 22:55 2015
Picon

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?

Thanks
Timo
Ajay kumar Gour | 28 May 00:10 2015
Picon

[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
Picon

[ANNOUNCE] Commons Email version 1.4 released

Hello.

The Apache Commons team is pleased to announce the release of
commons-email-1.4.

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:
  http://commons.apache.org/email/download_email.cgi

For information on Commons Email, please visit our website:
  http://commons.apache.org/email/

Details of the changes and bug fixes in this release can be found in the
release notes:
  http://www.apache.org/dist/commons/email/RELEASE-NOTES.txt

The changes are also available at:
  http://commons.apache.org/email/changes-report.html

Commons Email requires Java 5 or later.

The Maven coordinates are:
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-email</artifactId>
    <version>1.4</version>

Best regards,

(Continue reading)

Bernard GODARD | 14 May 16:40 2015
Picon

[math] ODE with Jacobian in commons math 3.5

Dear all,

The user guide on ordinary differential equations
http://commons.apache.org/proper/commons-math/userguide/ode.html
is very useful to understand how to use ODEWithJacobians and
ParameterizedODE.
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
Picon

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.)

Oliver

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> gmail.com> 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
Picon

[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.

httpClient.getState().setCredentials(AuthScope.ANY,new
UsernamePasswordCredentials(
                                                         username,
password));
httpClient.getParams().setAuthenticationPreemptive(true);

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.

1.
https://drive.google.com/file/d/0B4YeqhMGkQxvZzYzVEVZVWgyUXc/view?usp=sharing

Thanks & Regards,
M.Pirinthapan

<https://plus.google.com/u/0/+MahendranPirinthapan/about>
<http://lk.linkedin.com/in/pirinthapan>
(Continue reading)

Benedikt Ritter | 10 May 08:06 2015
Picon

[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:
https://dist.apache.org/repos/dist/release/commons/cli/RELEASE-NOTES.txt
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:
  http://commons.apache.org/proper/commons-cli/download_cli.cgi

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

Alternatively the release can be pulled via maven:
<dependency>
  <groupId>commons-cli</groupId>
  <artifactId>commons-cli</artifactId>
  <version>1.3</version>
</dependency>

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


Gmane