Oliver Heger | 25 Sep 21:25 2014

[ANNOUNCEMENT] Commons Configuration 2.0-alpha1 Released

The Apache Commons Team is pleased to announce the availability of
Apache Commons Configuration 2.0-alpha1.

The Commons Configuration software library provides a generic
configuration interface which enables an application to read
configuration data from a variety of sources.

This is the first alpha release for version 2.0 of Commons
Configuration. Version 2 is a major redesign of the Configuration API.
It breaks compatibility in many areas and, therefore, is not a drop-in
replacement for Commons Configuration 1.x. The main purpose of this
alpha release is to gather feedback from the community about the
reworked API. IT IS NOT YET PRODUCTION READY. It is expected that there
will still be some changes on the public API.

A full list of all changes can be found in the release notes at

There is also an upgrade guide available for users of version 1.x at

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 when downloading the release. (Note: Because this
is an alpha version, we decided that it will not be distributed to Maven
(Continue reading)

~ * ~ Srijith Unni ~ * ~ | 25 Sep 15:57 2014

Returning non-zero exit code in Windows

Hi All,

         I am making use of commons-daemon to get my java process started
as a Windows Service. I am installing the service and launching it in jvm
mode. I want to handle any error condition that occurs and I am returning a
non-zero exit code, and I have set Recovery Options for my service. However
I am not seeing the service being restarted. I have gone through
http://comments.gmane.org/gmane.comp.jakarta.commons.issues/19191 and
http://markmail.org/message/mkavfkirjqb37bqn and I see that this issue was
fixed long back in 1.0.11.

         What I am doing is having an UncaughtExceptionHandler for my Java
runtime and I am handling the same and doing a System.exit(-1). When I run
my service prunsrv.exe separately from command prompt I am seeing that the
exit code is -1, but somehow while running as a service, it is not working
as expected.

         Can you let me know what I am doing wrong / if I have missed


Thanks & Regards,
Mail ID : srijith.unni <at> gmail.com
Home Page : https://about.me/srijith
bobrobertsonjr | 17 Sep 21:18 2014

Re: [compress] checksums differ for same tar file created twice

OK, I've written a test case and convinced myself it's a bug. Will submit a

View this message in context: http://apache-commons.680414.n4.nabble.com/compress-checksums-differ-for-same-tar-file-created-twice-tp4666906p4666946.html
Sent from the Commons - User mailing list archive at Nabble.com.
Anjib Mulepati | 13 Sep 21:58 2014

[net] Telnet program doesn't terminate with write()

Hi All,

I couldn't understand why this program doesn't terminate if I send 
command? If I don't send the command it does terminate. I am trying to 
understand the way to issue sequence of command in telnet server.

public class TelnetSample {
     private TelnetClient telnet = new TelnetClient();
       private InputStream in;
       private PrintStream out;
       private char prompt = '.';

       public TelnetSample( String server, String user, String password ) {
        try {
          // Connect to the specified server
          telnet.connect( server, 23 );

          // Get input and output stream references
          in = telnet.getInputStream();
          out = new PrintStream( telnet.getOutputStream() );

          // Advance to a prompt
         readUntil( prompt + " " );
        catch( Exception e ) {

        public String readUntil( String pattern ) {
(Continue reading)

Nick Watts | 11 Sep 21:37 2014

[configuration] JXPathException when setting the default expression engine

Hello, I've run into a problem that looks to me like a bug. I thought I'd
get some input on it first though.

Here are two JUnit test cases that both pass with Commons Config 1.10:

import static org.junit.Assert.*;

import org.apache.commons.configuration.Configuration;
import org.apache.commons.configuration.ConfigurationBuilder;
import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.configuration.DefaultConfigurationBuilder;
import org.apache.commons.configuration.HierarchicalConfiguration;
import org.apache.commons.configuration.XMLConfiguration;
import org.apache.commons.configuration.tree.DefaultExpressionEngine;
import org.apache.commons.configuration.tree.xpath.XPathExpressionEngine;
import org.apache.commons.jxpath.JXPathException;
import org.junit.Before;

public class Test {

     <at> Before
    public void before() {

     <at> org.junit.Test
    public void testSetExpressionEngineAfterLoad() throws
ConfigurationException {
        ConfigurationBuilder builder = new
(Continue reading)

Johannes Wienke | 9 Sep 11:20 2014

Re: [SCXML] onentry executable content parallel to further transitions


On 09/08/2014 10:07 PM, Martin Gainty wrote:
> StringTokenizer st = new StringTokenizer(event); 
> int tkns = st.countTokens(); 
> TriggerEvent[] evts = new TriggerEvent[tkns]; 
> for (int i = 0; i < tkns; i++) { 
>    executor.triggerEvents();

But then I have to implement a custom logic to restart that loop once
new events arrive after it finished once. Moreover, this doesn't look



Johannes Wienke, Researcher at CoR-Lab / CITEC, Bielefeld University
Address: Inspiration 1, D-33619 Bielefeld, Germany (Room 1.307)
Phone: +49 521 106-67277

Anjib Mulepati | 8 Sep 21:05 2014

RE: [net] Handling sequence of sendCommand()

So is that mean TelnetClient run those command in different thread and parallel?

telnet.sendCommand("rand "); telnet.sendCommand("cal "); and telnet.sendCommand("date "); running
at same time?
If yes can you explain me why third command never executed or give output?

From: mgainty <at> hotmail.com
To: anjibcs <at> hotmail.com
Subject: RE: [net] Handling sequence of sendCommand()
Date: Mon, 8 Sep 2014 14:58:51 -0400

> From: anjibcs <at> hotmail.com
> To: user <at> commons.apache.org
> Subject: [net] Handling sequence of sendCommand()
> Date: Mon, 8 Sep 2014 10:52:52 -0500
> Hi All,
> I am using this AutomatedTelnetClient (http://stackoverflow.com/questions/1195809/looking-for-java-telnet-emulator)
> to send sequence of command to telehack.com:23. 
> AutomatedTelnetClient telnet = new AutomatedTelnetClient("telehack.com", "23");
> telnet.sendCommand("rand ");//run OK
> telnet.sendCommand("cal "); //run OK
> telnet.sendCommand("date "); //never run
> first two command run OK and gives me
> output but third one never runs. I change the order of cal and
(Continue reading)

Anjib Mulepati | 8 Sep 17:52 2014

[net] Handling sequence of sendCommand()

Hi All,

    I am using this AutomatedTelnetClient (http://stackoverflow.com/questions/1195809/looking-for-java-telnet-emulator)
      to send sequence of command to telehack.com:23. 
AutomatedTelnetClient telnet = new AutomatedTelnetClient("telehack.com", "23");
telnet.sendCommand("rand ");//run OK
telnet.sendCommand("cal "); //run OK
telnet.sendCommand("date "); //never run

    first two command run OK and gives me
        output but third one never runs. I change the order of cal and
        date this time rans and date execute but not cal. So it running
        first two commands only.

        So my question is do I have to use some kind of thread in that
        program to do read and write operation from the telnet server?


Konrad Zuse | 6 Sep 02:05 2014

[fileupload] - Question about uploading additional files other than the ones in the form?

Hello all,

I am basically uploading a file to my server, but within that file contains path information to images that
also need to be uploaded.  I am looking to read the file mid stream and get the data for the images to upload.  It
seems I am able to do this, but if this is not possible will I be able save the file, read it, and then be able to
get these images?

I am curious about how I will go about grabbing the additional files?  I see that streaming works with
InputStream from JavaIO as well as something from CommonsIO, so I figured I could configure something to
work with the fileupload stream.

I also thought that I could possibly try to create a form through my servlet and pass the data through that,
but I figured this would be the less favorable approach.

If anyone has any advice or thoughts I would appreciate it... Thanks!

Noriyuki Torii | 3 Sep 18:27 2014

[pool] Validation code invoked on unexpected timing.

Hi, all.

I found BasePooledObjectFactory.validateObject() of commons-pool
sometimes called
on unexpected timing and I cannot identify the cause.
So I would like to ask some advice.

I've configured the pool so as to the validateObject() would be
invoked only on instance
creation, but sometimes it was invoked for "non-fresh" instance on borrowing.

I also attach small reproduction code below.
Can anyone tell it is because some lack of configurations, or, actual
pool's bug?

Thanks in advance.
Noriyuki Torii

import java.io.*;
import java.util.*;

import org.apache.commons.pool2.*;
import org.apache.commons.pool2.impl.*;

public class reproduction
    private static class MyPooledObj
(Continue reading)

R.C. Hoekstra | 2 Sep 23:23 2014

SCXML: context thinks it is in no state at all in onentry of non atomic states.

Hi all at scxml.

In my project I found some behavior which I regarded as unexpected, but maybe I'm overlooking something. In
non-atomic states action execution the engine reports to be in no state at all.

I made a test Action class which only does one thing: it prints the result of
SCXMLExecutor.getStatus().getAllStates() in a listing to StdOut.

Consider the following simple scxml file:

<state id="entry">

   <transition event="to.test" target="1"/>


<state id="1">



This shows the following output:

entering entry

exiting entry

   my prints 1 state: "1"

(Continue reading)