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

2015-05-26 Thread Gary Gregory
I've not seen VFS used in this configuration before. You could try updating to 
the current HDFS jar files.
Gary 

 Original message 
From: Roger Whitcomb  
Date: 05/26/2015  10:39  (GMT-08:00) 
To: Commons Users List  
Subject: [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


Re: Reflection Utils

2015-05-28 Thread Gary Gregory
Those are the first places I would look.

Gary

On Thu, May 28, 2015 at 1:55 PM, Timo  wrote:

> 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
>
> -
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>
>


-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition

JUnit in Action, Second Edition 
Spring Batch in Action 
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


Re: [dbcp] No operations allowed after statement closed

2015-05-28 Thread Gary Gregory
Please try version 2.1.

Gary

On Wed, May 27, 2015 at 3:10 PM, Ajay kumar Gour 
wrote:

> Hi there,
>
>
>
> One of the application I am working on is using commons-dbcp-1.2.2.jar.
> Below is my data source configuration –
>
>
>
> 
>
>   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 12 millisecond
>
>   NumTestsPerEvictionRun 5
>
>   TestWhileIdle false
>
>   TestOnBorrow true
>
>   ValidationQuery Select 1 from dual
>
> 
>
>
>
> Problem is, ever since I enabled eviction (also reduced
> MaxOpenPreparedStatement value), I am continuously getting following error
>
>
>
> Caused by:
> com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No
> operations allowed after statement closed.
>
> at
> sun.reflect.GeneratedConstructorAccessor421.newInstance(Unknown Source)
>
> at
>
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>
> at
> java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>
> at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
>
> at com.mysql.jdbc.Util.getInstance(Util.java:386)
>
> at
> com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1014)
>
> at
> com.mysql.jdbc.SQLError.createSQLException(SQLError.java:988)
>
> at
> com.mysql.jdbc.SQLError.createSQLException(SQLError.java:974)
>
> at
> com.mysql.jdbc.SQLError.createSQLException(SQLError.java:919)
>
> at
> com.mysql.jdbc.StatementImpl.checkClosed(StatementImpl.java:463)
>
> at
> com.mysql.jdbc.PreparedStatement.setInternal(PreparedStatement.java:3819)
>
> at
> com.mysql.jdbc.PreparedStatement.setLong(PreparedStatement.java:3849)
>
> at
>
> org.apache.commons.dbcp.DelegatingPreparedStatement.setLong(DelegatingPreparedStatement.java:123)
>
> at
>
> org.apache.commons.dbcp.DelegatingPreparedStatement.setLong(DelegatingPreparedStatement.java:123)
>
> at
>
> org.apache.commons.dbcp.DelegatingPreparedStatement.setLong(DelegatingPreparedStatement.java:123)
>
> at org.hibernate.type.LongType.set(LongType.java:42)
>
>
>
> I have tried updating dbcp-1.2.2 to dbcp-1.4, but same error. Could
> somebody please help me understand why is this happening? Is there a bug in
> DBCP’s statement pooling? It seems that statements are getting closed but
> they are not removed from the pool.
>
>
>
> Thanks,
>
> -Ajay
>



-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition

JUnit in Action, Second Edition 
Spring Batch in Action 
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


Re: [vfs] HDFS provider

2015-06-01 Thread Gary Gregory
HDFS support was added after 2.0. You'll need to checkout the sources and
build a 2.1 snapshot.

Gary

On Mon, Jun 1, 2015 at 6:56 AM, Sergio Hernández  wrote:

> Hi,
>
> I'm trying to use VFSJFileChooser to browse the Hadoop Distributed
> Filesystem of my cluster.
>
> According to documentation, HDFS is supported in read-only mode but when i
> download the apache-commons-vfs library hdfs provider is not included.
>
> How I can solve this?
>
> Thanks in advance
>
> Sergio
>



-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition

JUnit in Action, Second Edition 
Spring Batch in Action 
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


Re: [compress] Getting external attributes from a ZipArchiveEntry

2015-06-10 Thread Gary Gregory
I probably create a JIRA and attach the relevant files.

Gary

On Wed, Jun 10, 2015 at 7:08 AM, Kristina Chodorow 
wrote:

> ZipArchiveEntry.getExternalAttributes() is always returning 0 for me.  I
> have pasted a hex dump of the zip file I'm testing with at the bottom of
> email: 2 files of 0 bytes, one named x and one named y.  Both of their
> external attributes are 33184 (a081 in the hex dump).  However, running the
> following program gives me 0 for both of their external attributes:
>
> import org.apache.commons.compress.archivers.zip.ZipArchiveEntry;
> import org.apache.commons.compress.archivers.zip.ZipArchiveInputStream;
>
> import java.io.File;
> import java.io.FileInputStream;
> import java.io.InputStream;
> import java.io.IOException;
>
> public class Foo {
>   public static void main(String args[]) throws IOException {
> File archiveFile = new File("myzip.zip");
> try (InputStream is = new FileInputStream(archiveFile)) {
>   ZipArchiveInputStream in = new ZipArchiveInputStream(is);
>   ZipArchiveEntry entry = in.getNextZipEntry();
>   while (entry != null) {
> System.out.println("entry: " + entry);
> System.out.println("external: " + entry.getExternalAttributes());
> entry = in.getNextZipEntry();
>   }
> }
>   }
> }
>
> Do I need to do something different to get the external attributes?  Is
> this a bug?
>
> Hex dump of myzip.zip:
>
> 87654321  0011 2233 4455 6677 8899 aabb ccdd eeff  0123456789abcdef
>
>
> : 504b 0304 0a00   c766 c946   PK.f.F..
> 0010:      0100 1c00 7855  ..xU
> 0020: 5409 0003 361a 7733 441a 7755 7578 0b00  T...6.w3D.wUux..
> 0030: 0104 2c03 0300 0488 1300 0050 4b03 040a  ..,PK...
> 0040:   00c7 66c9 4600     ..f.F...
> 0050:   0001 001c 0079 5554 0900 0336  .yUT...6
> 0060: 1a77 5544 1a77 5575 780b 0001 042c 0303  .wUD.wUux,..
> 0070: 0004 8813  504b 0102 1e03 0a00   ..PK
> 0080:  c766 c946       ...f.F..
> 0090:  0100 1800     a081  
> 00a0:   7855 5405 0003 361a 7755 7578  xUT...6.wUux
> 00b0: 0b00 0104 2c03 0300 0488 1300 0050 4b01  ,PK.
> 00c0: 021e 030a   00c7 66c9 4600   ..f.F...
> 00d0:     0001 0018    
> 00e0:   00a0 813b  0079 5554 0500  ...;...yUT..
> 00f0: 0336 1a77 5575 780b 0001 042c 0303 0004  .6.wUux,
> 0100: 8813  504b 0506   0200 0200  PK..
> 0110: 8e00  7600   v.
>



-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition

JUnit in Action, Second Edition 
Spring Batch in Action 
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


Re: [compress] Getting external attributes from a ZipArchiveEntry

2015-06-10 Thread Gary Gregory
On Wed, Jun 10, 2015 at 9:29 PM, Stefan Bodewig  wrote:

> On 2015-06-10, Kristina Chodorow wrote:
>
> > ZipArchiveEntry.getExternalAttributes() is always returning 0 for me.  I
> > have pasted a hex dump of the zip file I'm testing with at the bottom of
> > email: 2 files of 0 bytes, one named x and one named y.  Both of their
> > external attributes are 33184 (a081 in the hex dump).  However, running
> the
> > following program gives me 0 for both of their external attributes:
>
> External attributes are stored inside the central directory which is at
> the end of the archive.  When using ZipArchiveInputStream the central
> directory is only ever reached once all entries have been read.
>
> If you need to access the information from the central directory you
> should use ZipFile rather than ZipArchiveInputStream.
>

Is that in the Javadoc?

Gary

>
> Stefan
>
> -
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>
>


-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition

JUnit in Action, Second Edition 
Spring Batch in Action 
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


[ANNOUNCEMENT] Apache Commons CSV 1.2

2015-08-25 Thread Gary Gregory
The Apache Commons CSV team is pleased to announce the 1.2 release!

The Apache Commons CSV library provides a simple interface for reading and
writing CSV files of various types.

This is our third release.

Apache Commons CSV requires at least Java 6.

This is a minor feature and bug fix release.

Changes in this version include:

NEW FEATURES


o CSV-157:  Add enum CSVFormat.Predefined that contains the default
CSVFormat values.

FIXED BUGS
==

o CSV-145:  CSVFormat.with* methods clear the header comments. Thanks to
Frank Ulbricht.
o CSV-156:  Incorrect Javadoc on QuoteMode.NONE. Thanks to Jason
Steenstra-Pickens.

Historical list of changes:
http://commons.apache.org/proper/commons-csv/changes-report.html

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

http://commons.apache.org/proper/commons-csv/

Happy Coding!
Gary Gregory on behalf of the Apache Commons CSV team



-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


Re: [dbutils] Statement Configuration, 1.7 release?

2015-09-03 Thread Gary Gregory
Any Apache committers willing to RM?

Gary

On Mon, Aug 31, 2015 at 9:57 AM, John Huffaker 
wrote:

> Hi All,
>
> I was curious if you were considering doing a 1.7 release anytime soon?  A
> patchset that allows us to set query timeouts on underlying statements was
> added (http://svn.apache.org/viewvc?view=revision&revision=1673781) and
> became more important for us when we moved from BoneCP (which sets it
> automatically) to hikari (which doesn't set it).
>
> Any other suggestions would be helpful.  I could use a snapshot build, but
> I'd prefer to use a maven published non-changing build.  I know I can rig
> this up, but I was curious if a new release was coming anyway, and I can
> wait.
>
> <3,
> John Huffaker
>



-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition

JUnit in Action, Second Edition 
Spring Batch in Action 
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


Re: [Imaging] 1.0 Release Date?

2015-10-27 Thread Gary Gregory
Hi,

There is no release date planned ATM. This is all based on volunteers being
willing to put in the time to push this through.

Gary

On Tue, Oct 27, 2015 at 2:49 AM, Schalk Cronjé  wrote:

> Hi folks,
>
> I am sure this questions has been asked before, I am just wondering if
> there is any 1.0 release planned?
>
> Or is it better to stick to 0.9.7?
>
>
> --
> Schalk W. Cronjé
> Twitter / Ello / Toeter : @ysb33r
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>
>


-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition

JUnit in Action, Second Edition 
Spring Batch in Action 
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


Re: [jexl] 3.0 release date?

2015-11-27 Thread Gary Gregory
Hi,

There is no release date planned. We need a team member to volunteer to be
the release manager.

Any takers?

Gary

On Thu, Nov 26, 2015 at 11:45 PM, Balázs Zsoldos 
wrote:

> Hi,
>
> Do you have any plan when JEXL 3.0 could be released? There are 46 resolved
> or closed issues in Jira and there is no unresolved one.
>
> Thanks and regards,
> *Balázs **Zsoldos*
>



-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition

JUnit in Action, Second Edition 
Spring Batch in Action 
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


Re: [configuration] 1.10 regression / backwards-incompatible change in MapConfiguration.convertPropertiesToMap ?

2016-01-11 Thread Gary Gregory
Sounds like we need a different fix for
https://issues.apache.org/jira/browse/CONFIGURATION-556 and another release
...

Gary

On Sun, Jan 10, 2016 at 11:42 AM, Norbert Kiesel 
wrote:

> Any chance we will see a 1.11?
>
> At least 1.10 release notes should be updated to note this, no? Right now
> it claims to be 100 backwards compatible.
>
> On Jan 10, 2016 11:34 AM, Oliver Heger 
> wrote:
> Hi,
>
> Am 07.01.2016 um 20:33 schrieb Norbert Kiesel:
> > Hi,
> >
> >
> > we just tried to upgrade from commons-configuration-1.9 to
> commons-configuration-1.10 and hit a blocking problem.  It manifests itself
> as:
> >
> > java.lang.UnsupportedOperationException
> > at java.util.AbstractMap.put(AbstractMap.java:209)
> > at
> org.apache.commons.configuration.MapConfiguration.addPropertyDirect(MapConfiguration.java:186)
> > at
> org.apache.commons.configuration.AbstractConfiguration.addPropertyValues(AbstractConfiguration.java:423)
> > at
> org.apache.commons.configuration.AbstractConfiguration.addProperty(AbstractConfiguration.java:393)
> > at
> org.apache.commons.configuration.AbstractConfiguration.setProperty(AbstractConfiguration.java:486)
> >
> >
> >
> > Looks like this happens because the map was created using the
> `MapConfiguration(Properties props)` constructor.  In 1.9, this creates a
> HashMap and fills it with the properties.  In 1.10, this now uses an
> AbstractMap that only overrides `entrySet` which makes this a read-only map.
> >
> >
> > Our code then tries to add more properties, which produces the above
> exception.
> >
> >
> > Are we doing something wrong here or is this really a regression in 1.10?
> >
>
> This seems to be a regression in 1.10, unfortunately. According to SVN
> history, the code in MapConfiguration has been patched to fix
> CONFIGURATION-556 [1]. The fact that the MapConfiguration can no longer
> be updated is probably an undesired side effect.
>
> I assume that this will work again with version 2.0. In this version,
> MapConfiguration just stores the Properties object passed to the
> constructor. So updates are not a problem.
>
> Oliver
>
> [1] https://issues.apache.org/jira/browse/CONFIGURATION-556
>
> >
> >
> >
> > 
> >
> > ---
> >
> >
> > Norbert Kiesel
> > Systems Architect | Engineering
> > MetricStream
> > 2600 E. Bayshore Road | Palo Alto, CA - 94303
> > +1-650-620-2954 | nkie...@metricstream.com | www.metricstream.com<
> http://www.metricstream.com>
> >
> > Confidentiality Notice:This email and any files transmitted with it are
> confidential and intended solely for the use of the individual or entity to
> whom they are addressed. This message contains confidential information and
> is intended only for the individual named. If you are not the named
> addressee you should not disseminate, distribute or copy this e-mail.
> Please notify the sender immediately by e-mail if you have received this
> e-mail by mistake and delete this e-mail from your system. If you are not
> the intended recipient you are notified that disclosing, copying,
> distributing or taking any action in reliance on the contents of this
> information is strictly prohibited
> >
>
> -
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>
>


-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition

JUnit in Action, Second Edition 
Spring Batch in Action 
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


Re: [configuration] 1.10 regression / backwards-incompatible change in MapConfiguration.convertPropertiesToMap ?

2016-01-11 Thread Gary Gregory
And a new unit test of course.

Gary

On Mon, Jan 11, 2016 at 10:49 AM, Gary Gregory 
wrote:

> Sounds like we need a different fix for
> https://issues.apache.org/jira/browse/CONFIGURATION-556 and another
> release ...
>
> Gary
>
> On Sun, Jan 10, 2016 at 11:42 AM, Norbert Kiesel  > wrote:
>
>> Any chance we will see a 1.11?
>>
>> At least 1.10 release notes should be updated to note this, no? Right now
>> it claims to be 100 backwards compatible.
>>
>> On Jan 10, 2016 11:34 AM, Oliver Heger 
>> wrote:
>> Hi,
>>
>> Am 07.01.2016 um 20:33 schrieb Norbert Kiesel:
>> > Hi,
>> >
>> >
>> > we just tried to upgrade from commons-configuration-1.9 to
>> commons-configuration-1.10 and hit a blocking problem.  It manifests itself
>> as:
>> >
>> > java.lang.UnsupportedOperationException
>> > at java.util.AbstractMap.put(AbstractMap.java:209)
>> > at
>> org.apache.commons.configuration.MapConfiguration.addPropertyDirect(MapConfiguration.java:186)
>> > at
>> org.apache.commons.configuration.AbstractConfiguration.addPropertyValues(AbstractConfiguration.java:423)
>> > at
>> org.apache.commons.configuration.AbstractConfiguration.addProperty(AbstractConfiguration.java:393)
>> > at
>> org.apache.commons.configuration.AbstractConfiguration.setProperty(AbstractConfiguration.java:486)
>> >
>> >
>> >
>> > Looks like this happens because the map was created using the
>> `MapConfiguration(Properties props)` constructor.  In 1.9, this creates a
>> HashMap and fills it with the properties.  In 1.10, this now uses an
>> AbstractMap that only overrides `entrySet` which makes this a read-only map.
>> >
>> >
>> > Our code then tries to add more properties, which produces the above
>> exception.
>> >
>> >
>> > Are we doing something wrong here or is this really a regression in
>> 1.10?
>> >
>>
>> This seems to be a regression in 1.10, unfortunately. According to SVN
>> history, the code in MapConfiguration has been patched to fix
>> CONFIGURATION-556 [1]. The fact that the MapConfiguration can no longer
>> be updated is probably an undesired side effect.
>>
>> I assume that this will work again with version 2.0. In this version,
>> MapConfiguration just stores the Properties object passed to the
>> constructor. So updates are not a problem.
>>
>> Oliver
>>
>> [1] https://issues.apache.org/jira/browse/CONFIGURATION-556
>>
>> >
>> >
>> >
>> > 
>> >
>> > ---
>> >
>> >
>> > Norbert Kiesel
>> > Systems Architect | Engineering
>> > MetricStream
>> > 2600 E. Bayshore Road | Palo Alto, CA - 94303
>> > +1-650-620-2954 | nkie...@metricstream.com | www.metricstream.com<
>> http://www.metricstream.com>
>> >
>> > Confidentiality Notice:This email and any files transmitted with it are
>> confidential and intended solely for the use of the individual or entity to
>> whom they are addressed. This message contains confidential information and
>> is intended only for the individual named. If you are not the named
>> addressee you should not disseminate, distribute or copy this e-mail.
>> Please notify the sender immediately by e-mail if you have received this
>> e-mail by mistake and delete this e-mail from your system. If you are not
>> the intended recipient you are notified that disclosing, copying,
>> distributing or taking any action in reliance on the contents of this
>> information is strictly prohibited
>> >
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
>> For additional commands, e-mail: user-h...@commons.apache.org
>>
>>
>
>
> --
> E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
> Java Persistence with Hibernate, Second Edition
> <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>



-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


Re: [configuration] 1.10 regression / backwards-incompatible change in MapConfiguration.convertPropertiesToMap ?

2016-01-13 Thread Gary Gregory
On Wed, Jan 13, 2016 at 11:43 AM, Norbert Kiesel 
wrote:

> > Hi Norbert,
> >
> > due to lack of time, I recently only focused on Configuration 2.0 and
> > intended to let the 1.x series slowly die. Therefore, my priority is to
> > get 2.0 ready and push the release out. If I understand correctly, the
> > implementation in 2.0 satisfies your needs, except that some generic
> > types still have to be adapted (passing a Map to the
> > constructor rather than a Map). Is this correct?
>
> Yes, 2.0 satifies our need (even the current version, though I agree with
> your
> suggested type change).
>
> >
> > Patches for a 1.11 fix release are of course welcome, but I cannot
> > promise that I will be able to actually do a 1.11 release in the near
> > future. If somebody else steps up and volunteers to do this, this would
> > of course be another story.
>
> Understood.  Really only trying to help here, not to produce more work for
> you
> or the community.  We will simply stick with 1.9 until 2.0 is out.
>
> >
> > ...
> >
> > >
> > > The way out for a potential 1.11 would be to override more of the the
> > > AbstractMap API to make that a mutable map backed by the Properties
> object.  Do
> > > you want me to provide a patch along these lines?
> >
> > This approach would probably work, but it seems like unnecessary
> > complexity. Accessing the passed in Properties object directly - as done
> > in 2.0 - is more straight-forward, isn't it?
>
> This would break backwards compatibility: 1.x promises to actively weed out
> entries with non-string keys from the passed Properties object. So anyone
> depending on this would be in for a surprise.  2.0 instead warns callers
> that they have to
> ensure that they don't pass such entries.  This makes life simpler for the
> implementation
> and is IMHO very good for an API-breaking 2.x but not for 1.x.
>
> I don't want to waste anyone's time here, so unless you tell me that you
> want to see the
> revised patch or otherwise actively engage, I will shut up on this topic.
> Was a pleasure to
> talk to you and thanks for your community work!
>

Thank you for your understanding and help. We are all volunteers short on
time.

You might want to submit a 1.x patch in case an RM decides to push out a
release. That would grease the wheels a bit. Just in case...

Gary

>
> 
>
> Confidentiality Notice:This email and any files transmitted with it are
> confidential and intended solely for the use of the individual or entity to
> whom they are addressed. This message contains confidential information and
> is intended only for the individual named. If you are not the named
> addressee you should not disseminate, distribute or copy this e-mail.
> Please notify the sender immediately by e-mail if you have received this
> e-mail by mistake and delete this e-mail from your system. If you are not
> the intended recipient you are notified that disclosing, copying,
> distributing or taking any action in reliance on the contents of this
> information is strictly prohibited
>
> -
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>
>


-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition

JUnit in Action, Second Edition 
Spring Batch in Action 
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


Re: SCXML project

2016-01-23 Thread Gary Gregory
Guilherme,

I have not seen much activity. We are all volunteers here, if you want the
project to move forward, feel free to talk on this list, create Jiras, and
provide patches.

Gary
On Jan 22, 2016 8:58 AM, "Guilherme Silveira" 
wrote:

> Hi Folks
>
> I am new to FSM and new to SCXML.On the other hand, I am expert in
> Simulink, expert in Java and expert in model based systems engineering.
>
> I am currently evaluating SCXML and I would like a*honest, non biased
> opinion *on the status of SCXML project.
>
> What I would like to assert if this project has a future, the number of
> developers, if the SCXML specification will ever reach a stable
> statusand so on
>
> So far, I have noticed few integrations with proprietary softwares
> Simulink Stateflow does not export to SCXML, neither does IBM Rhapsody.
>
> How difficult would it be to create custom tool for these integrations? And
> most important, is it REALLY possible to implement in Java all the
> functionalities of Simulink Stateflow, without any drawback, with a
> friendly user experience and a steep learning curve?
>
> ps: I am not from telecom industry
>


Re: [JCS]

2016-02-01 Thread Gary Gregory
It is, github is just a mirror. You submit a patch with the Jira if you
prefer.

Gary
On Feb 1, 2016 8:12 AM, "Mat Jaggard"  wrote:

> Ah, great, I thought JCS was on subversion at
> https://svn.apache.org/repos/asf/commons/proper/jcs/
>
> On Mon, 1 Feb 2016 at 16:07 Papendieck, Thomas <
> thomas.papendi...@opitz-consulting.com> wrote:
>
> > https://github.com/apache/commons-jcs
> >
> > create an account on github
> > make a fork
> > push your changes
> > initiate a pull request
> >
> > bye
> > Thomas
> >
> > -Ursprüngliche Nachricht-
> > Von: Mat Jaggard [mailto:apa...@jaggard.org.uk]
> > Gesendet: Montag, 1. Februar 2016 16:23
> > An: Commons Users List
> > Betreff: [JCS]
> >
> > Hi,
> > I have two patches to fix some problems I had running build and unit
> tests
> > on JCS 2.0 - who can I give them to?
> >
> > Thanks,
> > Mat.
> >
>


Re: [IO] Query on Veracode issue

2016-02-10 Thread Gary Gregory
On Wed, Feb 10, 2016 at 5:14 AM, Edson Richter 
wrote:

>
>
>  Mark Thomas escreveu 
>
> > On 10/02/2016 12:00, Parag Joshi wrote:
> > > Hi,
> > >
> > >
> > >
> > > I am using Apache Commons IO v2.4 (commons-io-2.4.jar) in one of my
> > > projects. My organization uses Veracode to scan the deliveries of my
> > > project. Veracode scans the projects for vulnerability issues and
> flags the
> > > flaws if the code and/or third-party libraries used in the project are
> > > vulnerable for some external attacks.
> > >
> > >
> > > During the recent scan the Veracode system flagged an issue in
> > > commons-io-2.4.jar.
> > >
> > >
> > > Below are the details:
> > >
> > >
> > > *CWE ID:* 78
> > >
> > > http://cwe.mitre.org/data/definitions/78.html
> > >
> > > *Name:* Improper Neutralization of Special Elements used in an OS
> Command
> > > ('OS Command Injection')
> > >
> > > *Module:* commons-io-2.4.jar
> > >
> > > *Source:* FileSystemUtils.java: *Line#* 535
> > >
> > > *Attack Vector: *java.lang.Runtime.exec
> > >
> > > *Description:* This call to java.lang.Runtime.exec() contains a command
> > > injection flaw. The argument to the function is constructed using
> > > user-supplied input. If an attacker is allowed to specify all or part
> of
> > > the command, it may be possible to execute commands on the server with
> the
> > > privileges of the executing process. The level of exposure depends on
> the
> > > effectiveness of input validation routines, if any. The first argument
> to
> > > exec() contains tainted data from the variable cmdAttribs. The tainted
> data
> > > originated from earlier calls to
> java.lang.string.!operator_javanewinit,
> > > java.io.file.!operator_javanewinit,
> > > org.apache.commons.io.filesystemutils.freespacekb,
> > > org.apache.commons.io.filesystemutils.freespacekb,
> > > org.apache.commons.io.filenameutils.normalize,
> > > org.apache.commons.io.filenameutils.getprefixlength, and
> > > org.apache.commons.io.filesystemutils.freespace.
> > >
> > > *Remediation:* Validate all user-supplied input to ensure that it
> conforms
> > > to the expected format, using centralized data validation routines when
> > > possible. When using black lists, be sure that the sanitizing routine
> > > performs a sufficient number of iterations to remove all instances of
> > > disallowed characters. Most APIs that execute system commands also
> have a
> > > "safe" version of the method that takes an array of strings as input
> rather
> > > than a single string, which protects against some forms of command
> > > injection.
> > >
> > > Now, my organization needs an assessment report for the above issue
> from
> > > the author of the third-party library which in this case it is Apache.
> Can
> > > you please provide me the assessment report for above issue?
> >
> > With my ASF security team member hat on:
> > No.
> >
> > > Is this a known issue?
> >
> > That question is based on the assumption that an issue exists.
> >
> > > And is it safe to use commons-io-2.4.jar keeping in mind the
> > > above issue?
> >
> > No idea. It is your code using the library so they only person who can
> > say how the library is used is you.
> >
> > Is if possible to use this library in such a way as to expose you to a
> > remote code execution vulnerability? Sure. It is also possible to use
> > the library safely. How you use it is up to you and you have to take
> > responsibility for that.
> >
> > Mark
> >
> >
> > -
> > To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> > For additional commands, e-mail: user-h...@commons.apache.org
>
> Also, considering Apache Commons is an Open Source software, you are
> welcome to download sources, develop a "patch" and contribute back, making
> world a safer place for all of us.
>

+1!

Gary


>
> Regards,
>
> Edson Richter




-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition

JUnit in Action, Second Edition 
Spring Batch in Action 
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


Re: dbutils isolation level

2016-04-16 Thread Gary Gregory
Are you asking a JDBC question? If so, please see
http://docs.oracle.com/javase/tutorial/jdbc/basics/transactions.html

Gary

On Mon, Mar 21, 2016 at 12:31 PM, Leonardo K. Shikida 
wrote:

> Hi
>
> how do I set the isolation level for dbutils?
>
> do I have to do this on the connection level?
>
> []
>
> Leo
>



-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition

JUnit in Action, Second Edition 
Spring Batch in Action 
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


Re: [configuration] use commons configuration 2 as PropertySource in Spring

2016-04-19 Thread Gary Gregory
Hi Dennis,

Patches welcome, or at least our own JIRA ticket.

Actually, if you are already an Apache committer, you can commit to Apache
Commons.

Gary

On Tue, Apr 19, 2016 at 5:24 AM, Dennis Kieselhorst  wrote:

> Hi Ron!
>
> > We are just now starting to assess Config 2, but I would assume these
> approaches would still work.
>
> You are right, just replace the imports and it works. Thanks for the
> hint. Btw the code would be simpler if this issue is fixed:
> https://jira.spring.io/browse/SPR-9631
>
> Cheers
> Dennis
>
> -
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>
>


-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition

JUnit in Action, Second Edition 
Spring Batch in Action 
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


Re: [exec] how to use watchdog / wrong javadoc

2016-04-26 Thread Gary Gregory
Woonsan,

Would you mind updating the Javadoc?

Thank you,
Gary
On Apr 26, 2016 1:32 PM, "Woonsan Ko"  wrote:

> The javadoc seems to have outdated info. It should have been like the
> following:
>
>   ExecuteWatchdog watchdog = new ExecuteWatchdog(3);
>   Executor exec = new DefaultExecutor();
>   exec.setStreamHandler(myStreamHandler);
>   exec.setWatchdog(watchdog);
>   int exitvalue = exec.execute(mycmdline);
>   if (DefaultExecutor.isFailure(exitvalue) && watchdog.killedProcess()) {
> // it was killed on purpose by the watchdog
>   }
>
> Regards,
>
> Woonsan
>
>
> On Tue, Apr 26, 2016 at 8:32 AM, Leonardo K. Shikida 
> wrote:
> > Hi
> >
> >
> https://commons.apache.org/proper/commons-exec/apidocs/org/apache/commons/exec/ExecuteWatchdog.html
> >
> > says
> >
> >  ExecuteWatchdog watchdog = new ExecuteWatchdog(3);
> >  Executer exec = new Executer(myloghandler, watchdog);
> >  exec.setCommandLine(mycmdline);
> >  int exitvalue = exec.execute();
> >  if (Execute.isFailure(exitvalue) && watchdog.killedProcess()) {
> >  // it was killed on purpose by the watchdog
> >  }
> >
> > but
> >
> > "Executer" does not exist
> >
> > "Executor" does exist but it is an interface
> >
> > DefaultExecutor implements Executor but does not set a watchdog in the
> > constructor
> >
> >
> >
> >
> > []
> >
> > Leo
>
> -
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>
>


Re: [exec] how to use watchdog / wrong javadoc

2016-04-26 Thread Gary Gregory
Thank you for doing it! :-)

Gary
On Apr 26, 2016 4:09 PM, "Woonsan Ko"  wrote:

> Hi Gary,
>
> I've just fixed the javadoc:
> -
> http://svn.apache.org/viewvc/commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/ExecuteWatchdog.java?r1=1741116&r2=1741115&pathrev=1741116
>
> Thanks for the suggestion! :-)
>
> Woonsan
>
>
> On Tue, Apr 26, 2016 at 5:23 PM, Gary Gregory 
> wrote:
> > Woonsan,
> >
> > Would you mind updating the Javadoc?
> >
> > Thank you,
> > Gary
> > On Apr 26, 2016 1:32 PM, "Woonsan Ko"  wrote:
> >
> >> The javadoc seems to have outdated info. It should have been like the
> >> following:
> >>
> >>   ExecuteWatchdog watchdog = new ExecuteWatchdog(3);
> >>   Executor exec = new DefaultExecutor();
> >>   exec.setStreamHandler(myStreamHandler);
> >>   exec.setWatchdog(watchdog);
> >>   int exitvalue = exec.execute(mycmdline);
> >>   if (DefaultExecutor.isFailure(exitvalue) && watchdog.killedProcess())
> {
> >> // it was killed on purpose by the watchdog
> >>   }
> >>
> >> Regards,
> >>
> >> Woonsan
> >>
> >>
> >> On Tue, Apr 26, 2016 at 8:32 AM, Leonardo K. Shikida  >
> >> wrote:
> >> > Hi
> >> >
> >> >
> >>
> https://commons.apache.org/proper/commons-exec/apidocs/org/apache/commons/exec/ExecuteWatchdog.html
> >> >
> >> > says
> >> >
> >> >  ExecuteWatchdog watchdog = new ExecuteWatchdog(3);
> >> >  Executer exec = new Executer(myloghandler, watchdog);
> >> >  exec.setCommandLine(mycmdline);
> >> >  int exitvalue = exec.execute();
> >> >  if (Execute.isFailure(exitvalue) && watchdog.killedProcess()) {
> >> >  // it was killed on purpose by the watchdog
> >> >  }
> >> >
> >> > but
> >> >
> >> > "Executer" does not exist
> >> >
> >> > "Executor" does exist but it is an interface
> >> >
> >> > DefaultExecutor implements Executor but does not set a watchdog in the
> >> > constructor
> >> >
> >> >
> >> >
> >> >
> >> > []
> >> >
> >> > Leo
> >>
> >> -
> >> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> >> For additional commands, e-mail: user-h...@commons.apache.org
> >>
> >>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>
>


Re: commons vfs next release - ?

2016-05-15 Thread Gary Gregory
There is a VOTE in progress for 2.1. Please check the dev ML for details.

Gary

On Sun, May 15, 2016 at 10:50 AM, Dmitry Goldenberg <
dgoldenberg...@gmail.com> wrote:

> Hi,
>
> Apologies if this is posted somewhere already. What is the current roadmap
> for the release of commons vfs2 version 2.1?  Is there a specific target
> date when it'll become available on Maven Central?
>
> Is the HDFS provider in a completed state? It appears that the write to
> HDFS capability is there. Just curious if this is complete.
>
> Thanks.
>



-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition

JUnit in Action, Second Edition 
Spring Batch in Action 
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


Re: [ANNOUNCE] Apache Commons git repositories now writable for all ASF committers

2016-05-24 Thread Gary Gregory
The more this goes on the more I wish we'd switch all Commons components to
git lock stock and two smoking barrels.

Gary
On May 24, 2016 12:43 PM,  wrote:

> Hello Jochen,
>
> I think the announcement is refering to the Apache hosted Git (writeable)
> repositories (https://git-wip-us.apache.org/) - not the apache
> organisation on github or the public git mirror (https://git.apache.org).
> Those are always read-only mirrors. (Note that most commons projects are
> still in SVN, which means there is no writeable git master repo for them
> either)
>
> Gruss
> Bernd
>
> --
> http://bernd.eckenfels.net
>
> -Original Message-
> From: Jochen Wiedmann 
> To: Commons Developers List 
> Cc: Commons Users List , "annou...@apache.org" <
> annou...@apache.org>
> Sent: Di., 24 Mai 2016 12:24
> Subject: Re: [ANNOUNCE] Apache Commons git repositories now writable for
> all ASF committers
>
> On Sat, May 21, 2016 at 5:13 PM, Benedikt Ritter 
> wrote:
> > Hello,
> >
> > a while back, the Apache Commons project decided to grant write access to
> > all ASF committers [1]. While setting this up for our SVN repositories
> was
> > easy, we had some problems to grant the necessary karma to all ASF
> > committers for our git repositories. This problem has now been fixed [2].
> > All ASF committers should now be able to commit to our git repositories
> as
> > well. This includes the repositories of the following components:
> >
> > - Apache Commons Lang
> > - Apache Commons Math
> > - Apache Commons Compress
> > - Apache Commons SCXML
> >
> > If you experience any issues, please report them on
> d...@commons.apache.org.
> >
> > Have fun,
> > Benedikt, on behalf of the Apache Commons community
> >
> > [1] https://s.apache.org/RKWl
> > [2] https://issues.apache.org/jira/browse/INFRA-10636
>
> Doesn't work for my Github User (jochenw):
>
> $ git push
> Username for 'https://github.com':
> Password for 'https://joch...@github.com':
> remote: Permission to apache/commons-fileupload.git denied to jochenw.
> fatal: unable to access
> 'https://github.com/apache/commons-fileupload.git/': The requested URL
> returned error: 403
>
>
> --
> The next time you hear: "Don't reinvent the wheel!"
>
>
> http://www.keystonedevelopment.co.uk/wp-content/uploads/2014/10/evolution-of-the-wheel-300x85.jpg
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> For additional commands, e-mail: dev-h...@commons.apache.org
>
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> For additional commands, e-mail: dev-h...@commons.apache.org
>
>


Re: [pool] Any release plan for 2.4.3?

2016-05-31 Thread Gary Gregory
I'm ok with pushing out a new release.

Any one else?

Gary
On May 31, 2016 3:33 PM, "Jungtaek Lim"  wrote:

> Hi, I'm Jungtaek Lim, collaborator of Jedis (Java Redis Client).
>
> Jedis uses Commons Pool 2.x but stucks on POOL-303
> .
> It seems to be going to be released to 2.4.3, but 2.4.2 is released at Aug.
> 2015 which is 10 months ago.
>
> So I'd like to hear about news for new release. Please let me know if we
> have, or please have a release plan if we don't have any.
>
> Thanks!
> Jungtaek Lim (HeartSaVioR)
>


[ANNOUNCEMENT] Apache Commons CSV 1.4

2016-05-31 Thread Gary Gregory
The Apache Commons team is pleased to announce the release of Apache
Commons CSV 1.4.

The Apache Commons CSV library provides a simple interface for reading and
writing CSV files of various types.

The main changes are the addition of a few APIs to make low-GC use-cases
possible.

Details of all changes in 1.4 can be found in the changelog:

http://commons.apache.org/proper/commons-csv/changes-report.html

1.4 is fully binary compatible to the last release. No client code changes
are required to migrate from version 1.3 to 1.4. The minimum required JDK
version for this release is 1.6.

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

http://commons.apache.org/proper/commons-csv/download_csv.cgi

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

http://www.apache.org/dist/commons/KEYS

Alternatively the release can be fetched from Maven Central:

  org.apache.commons
  commons-csv
  1.4


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

http://commons.apache.org/proper/commons-csv/

Have fun!
Gary Gregory, on behalf of the Apache Commons Community


-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


Re: [vfs] commons-vfs2-sandbox-2.1 is missing from Maven Central Repository

2016-06-13 Thread Gary Gregory
Yeah, I think sandbox code is just that, play things not fit for release,
due to licensing or other reasons.

You'd have to build it yourself and then deploy it to your own
repository(ies).

Gary

On Mon, Jun 13, 2016 at 8:39 AM, Boris Petrov 
wrote:

> Hi, I want to include the CIFS provider, however the classes needed are
> in the sandbox jar which is not in Maven Central. Am I missing something
> here?
>
> Thanks!
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>
>


-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition

JUnit in Action, Second Edition 
Spring Batch in Action 
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


Re: [fileupload] UTF-8 encoding issue

2016-08-01 Thread Gary Gregory
I can see that
in org.apache.commons.fileupload.FileUploadBase.getBoundary(String) we have:

  boundary = boundaryStr.getBytes("ISO-8859-1");

Should that be:

  boundary = boundaryStr.getBytes(headerEncoding);

?

Gary

On Mon, Aug 1, 2016 at 11:01 AM, Campbell, Lance  wrote:

> There is still an issue.
> I had a typo in my email.  There should not have been the line
> resp.setContentType("UTF-8");
>
> Sorry.
>
>
>
> -Original Message-
> From: Campbell, Lance [mailto:la...@illinois.edu]
> Sent: Monday, August 01, 2016 12:51 PM
> To: 'user@commons.apache.org' 
> Subject: [fileupload] UTF-8 encoding issue
>
> Commons File Upload 1.3.2
>
> I am using the commons file upload version 1.3.2 via servlets for
> apache-tomcat 8.  All of my servlets work with UTF-8 except for when I am
> using the commons file upload library.  It seems to be setting the encoding
> to "ISO-8859-1" .  I have set both the request and response headers to
> UTF-8.  I have also set the Java VM to use UTF-8.
>
> How can I get around this issue?
>
> I have read online to do the following:
> req.setCharacterEncoding("UTF-8");
> resp.setContentType("UTF-8");
> resp.setCharacterEncoding("UTF-8");
>
> I have also read to set this at the form:
>
> accept-charset="UTF-8"
>
> It seems like your code is hardcoding the encoding to "ISO-8859-1" in the
> class FileUploadBase.
>
> Why not allow us to set the encoding in a method then use the "ISO-8859-1"
> as a fall back?
>
> Thanks,
>
> Lance Campbell
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>
>


-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition

JUnit in Action, Second Edition 
Spring Batch in Action 
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


Re: [dbutils] Confusion about the release process

2016-08-16 Thread Gary Gregory
On Tue, Aug 16, 2016 at 10:45 AM, Robert Huffman 
wrote:

> As nearly as I can tell, the latest release of dbutils is 1.6. However,
> there are hints there was a 1.7 at some point, though there is no branch or
> tag for that version on the GitHub Mirror. The GitHub mirror does have a RC
> for 2.0.
>
> This is an issue for me because our recent upgrade to OJDBC 12 causes
> AbstractQueryRunner.fillStatement to throw an SQL exception. That defect
> has been resolved, supposedly in 1.6. However, the sources.jar from
> MavenCentral for 1.6 does NOT include the fix.
>

I do not see a try-catch as there is in trunk now in 1.6:
https://svn.apache.org/repos/asf/commons/proper/dbutils/tags/DBUTILS_1_6/src/main/java/org/apache/commons/dbutils/AbstractQueryRunner.java

Gary


>
> So I have a couple of questions. Can someone publish the correct artifacts
> to Maven Central? And when can we expect 2.0 to be released?
>



-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition

JUnit in Action, Second Edition 
Spring Batch in Action 
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


Re: commons lang 3.5 - official release?

2016-09-02 Thread Gary Gregory
We do plan on releasing 3.5 but there is no ETA ATM.

Gary

On Fri, Sep 2, 2016 at 6:57 AM, Michael Knigge 
wrote:

> Hi,
>
> is there a plan for an official 3.5 release of apache commons lang? 3.4
> was released over two years ago…
>
> thank you,
> Michael
>
>
> Mit freundlichen Grüßen
>
> Michael Knigge
> Software Engineer
>
> SET GmbH
> Lister Straße 15
> 30163 Hannover
>
> phone: +49 511 39780-23
> fax: +49 511 39780-65
>
> www.set.de
> michael.kni...@set.de
>
> Handelsregister: HRB52778 Amtsgericht Hannover
> Geschäftsführer: Till Dammermann, Dr. Bernd Huber
>
> Weitere Informationen finden Sie auf unserer Homepage... >
>
>


-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition

JUnit in Action, Second Edition 
Spring Batch in Action 
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


Re: VFS stats

2016-10-03 Thread Gary Gregory
Great feature request. Would you create a Jira?

Gary

On Mon, Oct 3, 2016 at 5:15 AM, FLORENT Philippe <
philippe.flor...@edenred.com> wrote:

> Hello,
>
> Using common VFS, sftp, when I use copyFrom, I would like to have some
> stats on the file transfer
> Is it possible ? it's to give the user some feedback about the transfer
> speed
>
> thanks
>



-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition

JUnit in Action, Second Edition 
Spring Batch in Action 
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


Re: Brotli compression

2016-11-16 Thread Gary Gregory
There is Java implementation here https://github.com/meteogroup/jbrotli but
it is not 100% Java.

Gary

On Tue, Nov 15, 2016 at 11:33 PM, Philippe Mouawad <
philippe.moua...@gmail.com> wrote:

> Hi Gary,
> I created :
> https://issues.apache.org/jira/browse/COMPRESS-370
>
> Regards
>
> On Wed, Nov 16, 2016 at 12:14 AM, Gary Gregory 
> wrote:
>
> > I do not think so. This would be interesting to add to Commons Compress
> > though.
> >
> > Gary
> >
> > On Nov 15, 2016 11:51 AM, "Philippe Mouawad"  >
> > wrote:
> >
> > > Hello,
> > > Is Brotli (https://en.wikipedia.org/wiki/Brotli) compression supported
> > by
> > > HttpCore/HttpClient ?
> > >
> > > Thanks
> > > Regards
> > > Philippe
> > >
> >
>
>
>
> --
> Cordialement.
> Philippe Mouawad.
>



-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition
<https://www.amazon.com/gp/product/1617290459/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1617290459&linkCode=as2&tag=garygregory-20&linkId=cadb800f39946ec62ea2b1af9fe6a2b8>

<http:ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1617290459>
JUnit in Action, Second Edition
<https://www.amazon.com/gp/product/1935182021/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182021&linkCode=as2&tag=garygregory-20&linkId=31ecd1f6b6d1eaf8886ac902a24de418%22>

<http:ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1935182021>
Spring Batch in Action
<https://www.amazon.com/gp/product/1935182951/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182951&linkCode=%7B%7BlinkCode%7D%7D&tag=garygregory-20&linkId=%7B%7Blink_id%7D%7D%22%3ESpring+Batch+in+Action>
<http:ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1935182951>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


Re: [net] FTPClient Transfer succeeds but fails in cleanUp

2016-11-17 Thread Gary Gregory
Can you try version 3.5?

Gary

On Thu, Nov 17, 2016 at 9:19 AM, Seganti, Michael (DOF) <
segan...@finance.nyc.gov> wrote:

> I'm having a sporadic issue transferring files to a Mainframe, was
> wondering if anyone else has run into this.  I'm trying to figure out if
> this is a Mainframe issue, or a net commons issue.
>
> I'm using Java 1.7 and commons-net-3.3.jar
>
> The file transfer completes, but it looks like either the 200 OK is sent
> over the wrong connection, or is not properly being parsed and is causing
> the cleanup to fail.
>
> According to the reply: IBM FTP CS V2R2 is the version where the issue
> occurs.
>
> I have a second mainframe that is running IBM FTP CS V1R13 that doesn't
> seem to have this issue
>
> In a normal transfer, you would see:
>
> 250 Transfer completed successfully.
>File Transfer Completed Successfully at: 2016-11-17 04:30:51.569
> QUIT
> 221 Quit command received. Goodbye.
>
> This is what we are getting on the failures:
>
> 250 Transfer completed successfully.
> 200 OK
>
>File Transfer Failed at: 2016-11-17 04:36:50.246
> Error Occurred Transmitting File to Remote System, aborting...
>
> Read timed out
>
> Here's the full log from the failed transfer:
>
> Using FTPS Connection with Protocol: TLS and Explicit Security Request
> 220-FTPSECR1 IBM FTP CS V2R2 at MVSP.XXX, 09:27:29 on 2016-11-17.
> 220 Connection will close if idle for more than 5 minutes.
> AUTH TLS
> 234 Security environment established - ready for negotiation
> Connected to mvsp.xxx on 
> PBSZ 0
> 200 Protection buffer size accepted
> PROT P
> 200 Data connection protection set to private
> USER ***
> 331 Send password please.
> PASS ***
> 230 C836PTS is logged on.  Working directory is "C836PTS.".
> PWD
> 257 "'C836PTS.'" is working directory.
>
> Using a Packet Size of: 4096
> Control KeepAliveTimeOut: 60
> Control KeepAliveReplyTimeOut: 5000
> FEAT
> 211- Extensions supported
> AUTH TLS
> PBSZ
> PROT
> 211 End
>
> ...FTPClientUtil Connected Successfully!
> SITE TRAIL
> 200 SITE command was accepted
> SITE CYLINDERS PRIMARY=2100 SECONDARY=250
> 200 SITE command was accepted
> SITE RECFM=FB LRECL=1915 BLKSIZE=30640
> 200 SITE command was accepted
> SITE CONDDISP=delete
> 200 SITE command was accepted
>
>
> Sending:
> Local: d:\LargeExtracts\full.txt
> Remote: 'A836.ORG.CAMA2.FULL'
> Starting at: 2016-11-17 09:27:34.798
> Total Bytes To Send: 2101359588
> PASV
> 227 Entering Passive Mode (xx,xx,x,xx,xx,xx)
> STOR 'A836.ORG.CAMA2.FULL'
> 125 Storing data set A836.ORG.CAMA2.FULL
> 2016-11-17 09:27:47.721 - 5 Percent Complete, Total Bytes Transferred:
> 105070592
> 2016-11-17 09:28:01.190 - 10 Percent Complete, Total Bytes Transferred:
> 210137088
> ...
> 2016-11-17 09:32:21.127 - 100 Percent Complete, Total Bytes Transferred:
> 2101359588
> 250 Transfer completed successfully.
> 200 OK
>
> File Transfer Failed at: 2016-11-17 09:32:26.127
> Error Occurred Transmitting File to Remote System, aborting...
>
> Read timed out
> java.net.SocketTimeoutException: Read timed out
> at java.net.SocketInputStream.socketRead0(Native Method)
> at java.net.SocketInputStream.read(Unknown Source)
> at java.net.SocketInputStream.read(Unknown Source)
> at sun.security.ssl.InputRecord.readFully(Unknown Source)
> at sun.security.ssl.InputRecord.read(Unknown Source)
> at sun.security.ssl.SSLSocketImpl.readRecord(Unknown
> Source)
> at sun.security.ssl.SSLSocketImpl.readDataRecord(Unknown
> Source)
> at sun.security.ssl.AppInputStream.read(Unknown Source)
> at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
> at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
> at sun.nio.cs.StreamDecoder.read(Unknown Source)
> at java.io.InputStreamReader.read(Unknown Source)
> at java.io.BufferedReader.fill(Unknown Source)
> at java.io.BufferedReader.readLine(Unknown Source)
> at java.io.BufferedReader.readLine(Unknown Source)
> at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:314)
> at org.apache.commons.net.ftp.FTP.__getReplyNoReport(FTP.
> java:304)
> at org.apache.commons.net.ftp.FTPClient$CSL.cleanUp(
> FTPClient.java:3697)
> at org.apache.commons.net.ftp.FTPClient._storeFile(
> FTPClient.java:669)
> at org.apache.commons.net.ftp.FTPClient.__storeFile(
> FTPClient.java:624)
> at org.apache.commons.net.ftp.
> FTPClient.storeFile(FTPClient.java:1976)
> at gov.nyc.ftputils.FTPConnection.sendFile(
> FTPConnection.java:695)
> at gov.nyc.ftputils.FTPPropertyProcessor.putFile(
> FTPPropertyProcessor.java:54)
> at gov.nyc.ftputils.FTPPropertyProcessor.putFile(
> FTPProp

Re: [configuration] tension between auto-loading and synchronization

2016-11-27 Thread Gary Gregory
Do we need better Javadocs to make this obvious?

Gary

On Nov 27, 2016 7:02 AM, "Oliver Heger" 
wrote:

> Hi,
>
> Am 25.11.2016 um 22:55 schrieb Garret Wilson:
>
>> I'm reading the documentation for the new commons-configuration 2.x. I
>> have a simple need: load a configuration file from a properties file,
>> reload it when the file changes, and make the configuration thread-safe
>> for reading.
>>
>> From the documentation I understand that I shouldn't keep the
>> Configuration object around, because it may be reloaded if the file
>> changes. Instead I should keep a ConfigurationBuilder around. So my
>> application's getConfiguration() would look like this:
>>
>> public Configuration getConfiguration() {
>>   return configurationBuilder.getConfiguration();
>> }
>>
>> But I need it to be thread-safe. So I do this:
>>
>> public Configuration getConfiguration() {
>>   Configuration configuration=configurationBuilder.getConfiguration();
>>   configuration.setSynchronizer(new ReadWriteSynchronizer());
>>   return configuration;
>> }
>>
>> Oops! It turns out that we don't know if the builder returns the same
>> configuration or a new configuration, so we could be swapping out the
>> synchronizer on the same configuration. That introduces a race condition
>> and defeats the thread safety!
>>
>> So are we expected to keep a separate synchronizer around and make sure
>> the new/existing configuration uses it?
>>
>> private final Synchronizer synchronizer = new ReadWriteSynchronizer();
>>
>> public Configuration getConfiguration() {
>>   Configuration configuration=configurationBuilder.getConfiguration();
>>   configuration.setSynchronizer(synchronizer);
>>   return configuration;
>> }
>>
>> Wow, that's getting complicated. The problem is that Apache Commons
>> Configuration2 recommends that the builder be the ultimate source of the
>> configuration, yet it associates the syncrhonizer with the actual
>> configuration instance. Shouldn't we set the synchronizer on the builder
>> and let it manage the synchronizer of the new configurations? Or do you
>> want each configuration to potentially have different synchronizers? But
>> is that realistic---would synchronized and unsynchronized configurations
>> play well together if they are backed by the same builder? I'm trying to
>> understand what the expected usage is.
>>
>
> you configure the builder to set the correct synchronizer on newly created
> Configuration objects. To achieve this, call the builder's configure()
> method with a parameters object. Focused on the synchronizer, this looks as
> follows:
>
> Synchronizer sync = ...;
> Parameters params = new Parameters();
> BasicConfigurationBuilder builder =
> new BasicConfigurationBuilder(
> PropertiesConfiguration.class)
> .configure(params.basic()
> .setSynchronizer(sync));
>
> Just insert your type parameters for the configuration type. All
> properties configured this way are automatically set on the Configuration
> each time a new instance is created.
>
> Oliver
>
>
>> Garret
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
>> For additional commands, e-mail: user-h...@commons.apache.org
>>
>>
> -
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>
>


Re: [LANG] Object Merge Functionality

2016-11-29 Thread Gary Gregory
This feels out of scope to me. Nonetheless an interesting challenge.

Gary

On Tue, Nov 29, 2016 at 4:10 PM, Anthony Bonafide <
anthonymbonaf...@gmail.com> wrote:

> Hello All,
>
>  I was wondering if there is functionality within the commons-lang
> library to merge two or more objects together. The desired functionality
> would be, given a source and target object copy all the fields from the
> source to the target where the destination’s fields are null. This is
> similar to the behavior of Object.assign
>  Reference/Global_Objects/Object/assign>
> found
> in javascript. I think this is useful when dealing with hierarchies where
>  objects inherit defaults from other objects higher in the hierarchy. If
> this feature does not exist and you think it is useful, I would like to
> submit a pull request. Any thoughts?
>
>
> Thank you,
>
>
> Anthony Bonafide
>



-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition



JUnit in Action, Second Edition



Spring Batch in Action


Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


Re: Request to release BCEL 6.1

2016-12-29 Thread Gary Gregory
Do we have a volunteer PMC member to shepherd a release?

Gary

On Thu, Dec 29, 2016 at 6:04 AM, Kengo TODA  wrote:

> Hello,
>
> Currently I'm working on a problem in SpotBugs project [1], which
> needs BCEL-284 [2] to fix.
> But I heard that currently BCEL 6.1 is not scheduled [3]. Then can I
> ask someone in this ML to consider to release it?
>
> I personally believe that BCEL 6.1 will be really valuable release for
> all Java8 users.
>
>
> Thanks and regards,
> Kengo TODA
>
> [1] https://github.com/spotbugs/spotbugs
> [2] https://issues.apache.org/jira/browse/BCEL-284
> [3] https://github.com/spotbugs/spotbugs/pull/69
>
> -
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>
>


-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition



JUnit in Action, Second Edition



Spring Batch in Action


Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


Re: Read file into POJO

2017-01-19 Thread Gary Gregory
JAXB is included in Java.

Gary

On Wed, Jan 18, 2017 at 8:26 PM, Alfonso Via-Reque <
avia...@yahoo.com.invalid> wrote:

> Hello Commons Users,
> I'm looking for a way to read files directly into POJOs.  The idea is that
> the file layout would be defined in an "properties"-type file (XML or
> something).  The layout could be delimited or fixed-width, with the layout
> file defining the columns and which POJO member variable they should be set
> to.
> For example, a file might be tilde (~) delimited and follow this
> layout:ID~first name~last name~age~address~city~state~zip
>
>
> I'd like to read it into a class:
> public class Person {private Integer id;
> private String firstName;
> private String lastName;private Integer age;private String
> address;private String city;
> private String state;
> private String zip;
>
> // Getters and Setters ...
> }
>
> Is there a tool that do this?
>
>
> ThanksAlfonso




-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition



JUnit in Action, Second Edition



Spring Batch in Action


Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


Re: [EXTERNAL]Re: DBCP issuing more sessions than maxActive sessions in Oracle

2017-01-24 Thread Gary Gregory
ATM & FWIW, the only push I see is to release new versions of [pool2] and
[dbcp2] out of the current branches.

Gary

On Tue, Jan 24, 2017 at 5:37 PM, Shawn Heisey  wrote:

> On 1/24/2017 5:36 PM, Romero, René wrote:
> > Guys, do you think dbcp-1.4.1 is going to come out soon?
>
> I'm more familiar with the Lucene/Solr project than Commons, but if I
> had to guess, I would say that you're unlikely to see a new 1.x version
> of dbcp or pool.  The 1.4 version of dbcp was released nearly six years
> ago, the 1.6 version of pool was released five years ago.  They are
> quite old, and if a new version were planned, it is likely that it would
> have already been released.
>
> Typically when a new major version of an Apache project is released, the
> previous major version goes into maintenance mode, and the major version
> before that goes completely dead.  In maintenance mode, only extremely
> significant bugs with widespread effects are fixed.  After so much time,
> it is unlikely that any bug like this will be found, so the 1.x versions
> have become *effectively* dead, even though that is not technically
> their status.
>
> While it is possible that Commons works differently than a typical
> Apache project where previous major versions are concerned, I would be a
> little bit surprised if that were the case.
>
> Thanks,
> Shawn
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>
>


-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition



JUnit in Action, Second Edition



Spring Batch in Action


Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


Re: [pool] preparePool that only registers key, doesn't create new object

2017-02-05 Thread Gary Gregory
Anyone care to opine?

G

On Fri, Jan 20, 2017 at 7:38 AM, Martin Klepsch <
martinklep...@googlemail.com> wrote:

> Hey,
>
> With a KeyedObjectPool I can use `setMinIdlePerKey` &  `preparePool` to
> "bootstrap" an object pool. Now `preparePool` creates new objects
> synchronously and the evictor thread doesn't seem to ensure min idle
> objects if there are none yet (since it can't know the keys I guess).
>
> Because of that I run into the situation that the evictor thread creates
> objects for keys that are currently being created by `preparePool`. It's
> not an absolute deal breaker but it would be nice to be able to register
> keys without synchronously creating the minimum idle objects. Instead I'd
> like to wait for the evictor thread to pick up newly registered keys and
> create the required objects for it.
>
> Unfortunately `register` is private and I don't see another way to trigger
> key-registering. (Calling `preparePool` with `minIdlePerKey` set to 0 will
> short circuit and not register the key).
>
> Any suggestions welcome!
>
> Cheers :)
>



-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition



JUnit in Action, Second Edition



Spring Batch in Action


Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


Re: Compare directories

2017-02-12 Thread Gary Gregory
I would put that in its own class. FU is a bad name to start with, esp in
this case where you are comparing directories.

Gary

On Feb 12, 2017 8:21 AM, "J. Fiala"  wrote:

Hi there,

Currently it seems there is no utility method to compare two directory
structures:

http://stackoverflow.com/questions/14522239/test-two-directo
ry-trees-for-equality/42189853#42189853

I did a first rough implementation for Java 7 NIO and posted it at SO,
please advise if it makes sense to include this into FileUtils and if it
then needs to be backported to Java 6?

Best regards,
Johannes


-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org


Re: Compare directories

2017-02-13 Thread Gary Gregory
You can provide a diff file and attach it to a JIRA as a feature request.
Or, you can create a PR on GitHub. Unless you see mocks in the test
sources, we do not have them ;-) I do not recall seeing such mocks. Feel
free to come up with a design that is best for the community to understand
and maintain.

Gary

On Mon, Feb 13, 2017 at 12:05 AM, J. Fiala  wrote:

> Hello Gary,
>
> Thanks, yes DirectoryUtils is probably more descriptive :).
>
> I can provide the simple solution, of course this can be tuned & optimized
> as for the current solution the intersected files will be compared twice.
> But the current solution offers a low memory footprint as it doesn't have
> to store any state and is easy to understand.
>
> How should the test design look like for this? Do you want to use "real"
> directories/files or do you already have mocks for the File API?
>
> Can I supply this on github as a PR or do I need access to the SVN?
>
> Best regards,
>
> Johannes
>
>
> Am 12.02.2017 um 18:48 schrieb Gary Gregory:
>
>> I would put that in its own class. FU is a bad name to start with, esp in
>> this case where you are comparing directories.
>>
>> Gary
>>
>> On Feb 12, 2017 8:21 AM, "J. Fiala"  wrote:
>>
>> Hi there,
>>
>> Currently it seems there is no utility method to compare two directory
>> structures:
>>
>> http://stackoverflow.com/questions/14522239/test-two-directo
>> ry-trees-for-equality/42189853#42189853
>>
>> I did a first rough implementation for Java 7 NIO and posted it at SO,
>> please advise if it makes sense to include this into FileUtils and if it
>> then needs to be backported to Java 6?
>>
>> Best regards,
>> Johannes
>>
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
>> For additional commands, e-mail: user-h...@commons.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>
>


-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition
<https://www.amazon.com/gp/product/1617290459/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1617290459&linkCode=as2&tag=garygregory-20&linkId=cadb800f39946ec62ea2b1af9fe6a2b8>

<http:ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1617290459>
JUnit in Action, Second Edition
<https://www.amazon.com/gp/product/1935182021/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182021&linkCode=as2&tag=garygregory-20&linkId=31ecd1f6b6d1eaf8886ac902a24de418%22>

<http:ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1935182021>
Spring Batch in Action
<https://www.amazon.com/gp/product/1935182951/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182951&linkCode=%7B%7BlinkCode%7D%7D&tag=garygregory-20&linkId=%7B%7Blink_id%7D%7D%22%3ESpring+Batch+in+Action>
<http:ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1935182951>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


Re: Brotli compression

2017-04-29 Thread Gary Gregory
Should at least just bridge to the decompression code from Google for now?

Gary

On Thu, Apr 13, 2017 at 5:48 AM, Philippe Mouawad <
philippe.moua...@gmail.com> wrote:

> Hello,
> There appear to be a java decoder as per:
>
>
> https://github.com/google/brotli/issues/466
>
>
>
> https://github.com/google/brotli/tree/master/java/org/brotli
>
> Httpd 2.4 last release support Brotli  now on server side.
>
> Regards
> On Wednesday, November 16, 2016, Gary Gregory 
> wrote:
>
> > There is Java implementation here https://github.com/meteogroup/jbrotli
> > but
> > it is not 100% Java.
> >
> > Gary
> >
> > On Tue, Nov 15, 2016 at 11:33 PM, Philippe Mouawad <
> > philippe.moua...@gmail.com > wrote:
> >
> > > Hi Gary,
> > > I created :
> > > https://issues.apache.org/jira/browse/COMPRESS-370
> > >
> > > Regards
> > >
> > > On Wed, Nov 16, 2016 at 12:14 AM, Gary Gregory  > >
> > > wrote:
> > >
> > > > I do not think so. This would be interesting to add to Commons
> Compress
> > > > though.
> > > >
> > > > Gary
> > > >
> > > > On Nov 15, 2016 11:51 AM, "Philippe Mouawad" <
> > philippe.moua...@gmail.com 
> > > >
> > > > wrote:
> > > >
> > > > > Hello,
> > > > > Is Brotli (https://en.wikipedia.org/wiki/Brotli) compression
> > supported
> > > > by
> > > > > HttpCore/HttpClient ?
> > > > >
> > > > > Thanks
> > > > > Regards
> > > > > Philippe
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Cordialement.
> > > Philippe Mouawad.
> > >
> >
> >
> >
> > --
> > E-Mail: garydgreg...@gmail.com  | ggreg...@apache.org
> > 
> > Java Persistence with Hibernate, Second Edition
> > <https://www.amazon.com/gp/product/1617290459/ref=as_li_
> > tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1617290459&
> > linkCode=as2&tag=garygregory-20&linkId=cadb800f39946ec62ea2b1af9fe6a2b8>
> >
> > <http:ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=
> > 1617290459>
> > JUnit in Action, Second Edition
> > <https://www.amazon.com/gp/product/1935182021/ref=as_li_
> > tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182021&
> > linkCode=as2&tag=garygregory-20&linkId=31ecd1f6b6d1eaf8886ac902a24de4
> 18%22
> > >
> >
> > <http:ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=
> > 1935182021>
> > Spring Batch in Action
> > <https://www.amazon.com/gp/product/1935182951/ref=as_li_
> > tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182951&
> > linkCode=%7B%7BlinkCode%7D%7D&tag=garygregory-20&linkId=%7B%
> > 7Blink_id%7D%7D%22%3ESpring+Batch+in+Action>
> > <http:ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=
> > 1935182951>
> > Blog: http://garygregory.wordpress.com
> > Home: http://garygregory.com/
> > Tweet! http://twitter.com/GaryGregory
> >
>
>
> --
> Cordialement.
> Philippe Mouawad.
>



-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition
<https://www.amazon.com/gp/product/1617290459/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1617290459&linkCode=as2&tag=garygregory-20&linkId=cadb800f39946ec62ea2b1af9fe6a2b8>

<http:ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1617290459>
JUnit in Action, Second Edition
<https://www.amazon.com/gp/product/1935182021/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182021&linkCode=as2&tag=garygregory-20&linkId=31ecd1f6b6d1eaf8886ac902a24de418%22>

<http:ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1935182021>
Spring Batch in Action
<https://www.amazon.com/gp/product/1935182951/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182951&linkCode=%7B%7BlinkCode%7D%7D&tag=garygregory-20&linkId=%7B%7Blink_id%7D%7D%22%3ESpring+Batch+in+Action>
<http:ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1935182951>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


Re: [ALL] Video recordings of Apache Commons presentations at ApacheCON 2017 in Miami

2017-05-25 Thread Gary Gregory
Hi All,

These talks are great; well done guys! I encourage all to watch :-)

Gary

On Sun, May 21, 2017 at 4:40 PM, Benedikt Ritter  wrote:

> Hi,
>
> at this year’s ApacheCON we had some nice presentations. I’d like to share
> the video recordings with you (in order they were held at the event)
>
> Apache Commons - State of the Union by myself:
> https://www.youtube.com/watch?v=dejxS9qkfMc&index=5&list=
> PLbzoR-pLrL6pLDCyPxByWQwYTL-JrF5Rp  watch?v=dejxS9qkfMc&index=5&list=PLbzoR-pLrL6pLDCyPxByWQwYTL-JrF5Rp>
>
> Apache Commons Crypto: Another wheel of Apache Commons by Dapeng Sun:
> https://www.youtube.com/watch?v=Vwp8oHnut3k&index=6&list=
> PLbzoR-pLrL6pLDCyPxByWQwYTL-JrF5Rp  watch?v=Vwp8oHnut3k&index=6&list=PLbzoR-pLrL6pLDCyPxByWQwYTL-JrF5Rp>
>
> Introducing Apache Commons Text by Rob Tompkins:
> https://www.youtube.com/watch?v=rqBJHpQ5yvo&list=PLbzoR-
> pLrL6pLDCyPxByWQwYTL-JrF5Rp&index=9  watch?v=rqBJHpQ5yvo&list=PLbzoR-pLrL6pLDCyPxByWQwYTL-JrF5Rp&index=9>
>
> Apache Commons - Beyond StringUtils by myself:
> https://www.youtube.com/watch?v=eZB3P5VVIuc&list=PLbzoR-
> pLrL6pLDCyPxByWQwYTL-JrF5Rp&index=8  watch?v=eZB3P5VVIuc&list=PLbzoR-pLrL6pLDCyPxByWQwYTL-JrF5Rp&index=8>
>
> It was great meeting with other Commons committers. We had a great time.
> I’m looking forward to the next ApacheCON, where I hope to meet more of you
> in person.
>
> Regards,
> Benedikt




-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition



JUnit in Action, Second Edition



Spring Batch in Action


Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory


Re: Jcs 2.2 release

2017-06-09 Thread Gary Gregory
Hi Hege,

It all depends on an Apache Committer willing to volunteer and take the
time. This is the right place to ask :-)

Gary

On Fri, Jun 9, 2017 at 11:19 AM, Helge Waastad  wrote:

> Hi,
> Is it possible to release the JCS 2.2?
>
> Rmannibucau fixed a serious remote cache issue today and it's been there
> since 2.0-beta-1.
>
> /hw
>
> Sent from my Nokia 6110
>
> -
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>
>


Re: [ANNOUNCE] Apache Commons FileUpload 1.3.3 released.

2017-06-14 Thread Gary Gregory
Then maybe we need to document the fact that our code is still based on the
old RFC (is it?) and that we welcome contributions to modernize to the new
RFC...

On Jun 14, 2017 7:07 AM, "Julian Reschke"  wrote:

> ...
>
>> The Apache Commons FileUpload library parses HTTP requests which conform
>> to RFC
>> 1867, "Form-based File Upload in HTML." That is, if an HTTP request is
>> submitted using the POST method, and with a content type of
>> "multipart/form-data," then FileUpload can parse that request, and make
>> the
>> results available in a manner easily used by the caller.
>>
> ...
>
> FWIW, the definition has been update (at least) twice since. The current
> specification is https://tools.ietf.org/html/rfc7578.
>
> Best regards, Julian
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> For additional commands, e-mail: dev-h...@commons.apache.org
>
>


Re: CLI2 - latest download link

2017-06-20 Thread Gary Gregory
The latest version of CLI is 1.4 which you can find here
https://commons.apache.org/proper/commons-cli/download_cli.cgi and in Maven
repositories.

There is no CLI 2.0 release, you may or may not find old 2.0-SNAPSHOT
builds in some Maven repositories.

Gary

On Tue, Jun 20, 2017 at 3:48 PM, Ashok K S  wrote:

> I am using CLI2 jar for past two years and downloaded around 2015.  Please
> let me know the latest download link of CLI2.
>


Re: [CSV] Record Separator query

2017-08-08 Thread Gary Gregory
Hi Nitin,

You _tell_ the parser what record separator to use, the parser does not
tell you.

Gary


On Aug 8, 2017 16:13, "nitin mahendru"  wrote:

Hello All,

I am trying to read in a csv file which may be 'crlf' or 'lf' seperated.
Then I want to change a particular column, say encrypt it and then write
back a new csv with that updated column. I want to use the same record
separator as was in the input file.

Is there a way to get the record separator back from the CSVParser object ?
I am planning to use the below method to get the writer.
CSVFormat.RFC4180.withRecordSeparator(

Re: [CSV] Record Separator query

2017-08-09 Thread Gary Gregory
If you look at the Javadoc or the code for CSVFormat.RFC4180 you will see
that this format uses CR LF.

Gary

On Wed, Aug 9, 2017 at 10:51 AM, nitin mahendru 
wrote:

> Hi Gary,
>
> Thanks for a quick turnaround. We are using the below code to parse our
> input csv:
> CSVFormat.RFC4180.withIgnoreEmptyLines(true).parse(new
> InputStreamReader(this.getStreamIn(), readerCharset))
>
> We never tell the parser what line separator to expect and it automatically
> figures it out. What I want to know is that is it possible to extract this
> knowledge from the CSVParser object returned by the above as to what line
> separator it found ?
>
> -Nitin
>
>
> On Tue, Aug 8, 2017 at 3:23 PM Gary Gregory 
> wrote:
>
> > Hi Nitin,
> >
> > You _tell_ the parser what record separator to use, the parser does not
> > tell you.
> >
> > Gary
> >
> >
> > On Aug 8, 2017 16:13, "nitin mahendru" 
> wrote:
> >
> > Hello All,
> >
> > I am trying to read in a csv file which may be 'crlf' or 'lf' seperated.
> > Then I want to change a particular column, say encrypt it and then write
> > back a new csv with that updated column. I want to use the same record
> > separator as was in the input file.
> >
> > Is there a way to get the record separator back from the CSVParser
> object ?
> > I am planning to use the below method to get the writer.
> > CSVFormat.RFC4180.withRecordSeparator( > separator).print()
> >
> > For using the above I need to know the record separator upfront which I
> > have no clue about as the Parser object does not expose that detail.
> >
> > thanks
> >
> > Nitin
> >
>


Re: [CSV] Record Separator query

2017-08-09 Thread Gary Gregory
On Wed, Aug 9, 2017 at 5:04 PM, Guang Chao 
wrote:

> On Wed, Aug 9, 2017 at 6:12 AM, nitin mahendru  >
> wrote:
>
> > Hello All,
> >
> > I am trying to read in a csv file which may be 'crlf' or 'lf' seperated.
> > Then I want to change a particular column, say encrypt it and then write
> > back a new csv with that updated column. I want to use the same record
> > separator as was in the input file.
> >
> > Is there a way to get the record separator back from the CSVParser
> object ?
> > I am planning to use the below method to get the writer.
> > CSVFormat.RFC4180.withRecordSeparator( > separator).print()
> >
> > For using the above I need to know the record separator upfront which I
> > have no clue about as the Parser object does not expose that detail.
> >
> > thanks
> >
> > Nitin
> >
>
> I think CSVParser is strict and may not work for both LF and CRLF.  Maybe
> try to scan the file first and see if line ending is lf or crlf, and then
> use a corresponding CSVParser instance that can handle each case.
>

That's not how it works now but feel free to provide a PR on GitHub ;-)

Gary

>
> --
> Guang 
>


Re: [CSV] Record Separator query

2017-08-10 Thread Gary Gregory
Use the button provided by GitHub to copy the repo URL to the clipboard,
then you can just use "git clone "

On Thu, Aug 10, 2017 at 1:05 PM, nitin mahendru 
wrote:

> Hello All,
>
> I raised a JIRA ticket(CSV-214) to make some changes to the code for what I
> a trying to do. The description on the ticket might help explain things
> better. Now I am trying to clone the repo to make a pull request but I am
> just stuck at this:
>
> git -c http.sslVerify=false clone https://github.com/apache/
> commons-csv.git
> Cloning into 'commons-csv'...
> fatal: https://github.com/apache/commons-csv.git/info/refs not valid: is
> this a git repository?
>
>
> Any Idea about this ?
>
> Thanks
>
> Nitin
>
>
>
>
>
> On Wed, Aug 9, 2017 at 5:17 PM Gary Gregory 
> wrote:
>
> > On Wed, Aug 9, 2017 at 5:04 PM, Guang Chao 
> > wrote:
> >
> > > On Wed, Aug 9, 2017 at 6:12 AM, nitin mahendru <
> > nitin.mahendr...@gmail.com
> > > >
> > > wrote:
> > >
> > > > Hello All,
> > > >
> > > > I am trying to read in a csv file which may be 'crlf' or 'lf'
> > seperated.
> > > > Then I want to change a particular column, say encrypt it and then
> > write
> > > > back a new csv with that updated column. I want to use the same
> record
> > > > separator as was in the input file.
> > > >
> > > > Is there a way to get the record separator back from the CSVParser
> > > object ?
> > > > I am planning to use the below method to get the writer.
> > > > CSVFormat.RFC4180.withRecordSeparator( > > > separator).print()
> > > >
> > > > For using the above I need to know the record separator upfront
> which I
> > > > have no clue about as the Parser object does not expose that detail.
> > > >
> > > > thanks
> > > >
> > > > Nitin
> > > >
> > >
> > > I think CSVParser is strict and may not work for both LF and CRLF.
> Maybe
> > > try to scan the file first and see if line ending is lf or crlf, and
> then
> > > use a corresponding CSVParser instance that can handle each case.
> > >
> >
> > That's not how it works now but feel free to provide a PR on GitHub ;-)
> >
> > Gary
> >
> > >
> > > --
> > > Guang <http://javadevnotes.com/java-string-split-newline-examples>
> > >
> >
>


Re: [CSV] Record Separator query

2017-08-12 Thread Gary Gregory
There is no one currently slated to volunteer to RM the release. Good time
to ask though!

Do have a committer here willing to volunteer to release Commons CSV 1.5?

Thank you,
Gary

On Fri, Aug 11, 2017 at 3:27 PM, nitin mahendru 
wrote:

> Thanks for accepting the pull request.
> Any pointers on when the version 1.5 will be released ?
>
>
>
>
> On Thu, Aug 10, 2017 at 2:19 PM nitin mahendru  >
> wrote:
>
> > Thanks Greg.
> > Well the problem actually was that I am behind a proxy.  So my mistake.
> > Sorry for that.
> >
> > I have raised a pull request and a JIRA item CSV-214. Looking forward to
> > your feedback.
> >
> > Thanks
> >
> > Nitin
> >
> >
> >
> >
> > On Thu, Aug 10, 2017 at 1:08 PM Gary Gregory 
> > wrote:
> >
> >> Use the button provided by GitHub to copy the repo URL to the clipboard,
> >> then you can just use "git clone "
> >>
> >> On Thu, Aug 10, 2017 at 1:05 PM, nitin mahendru <
> >> nitin.mahendr...@gmail.com>
> >> wrote:
> >>
> >> > Hello All,
> >> >
> >> > I raised a JIRA ticket(CSV-214) to make some changes to the code for
> >> what I
> >> > a trying to do. The description on the ticket might help explain
> things
> >> > better. Now I am trying to clone the repo to make a pull request but I
> >> am
> >> > just stuck at this:
> >> >
> >> > git -c http.sslVerify=false clone https://github.com/apache/
> >> > commons-csv.git
> >> > Cloning into 'commons-csv'...
> >> > fatal: https://github.com/apache/commons-csv.git/info/refs not valid:
> >> is
> >> > this a git repository?
> >> >
> >> >
> >> > Any Idea about this ?
> >> >
> >> > Thanks
> >> >
> >> > Nitin
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > On Wed, Aug 9, 2017 at 5:17 PM Gary Gregory 
> >> > wrote:
> >> >
> >> > > On Wed, Aug 9, 2017 at 5:04 PM, Guang Chao <
> guang.chao.1...@gmail.com
> >> >
> >> > > wrote:
> >> > >
> >> > > > On Wed, Aug 9, 2017 at 6:12 AM, nitin mahendru <
> >> > > nitin.mahendr...@gmail.com
> >> > > > >
> >> > > > wrote:
> >> > > >
> >> > > > > Hello All,
> >> > > > >
> >> > > > > I am trying to read in a csv file which may be 'crlf' or 'lf'
> >> > > seperated.
> >> > > > > Then I want to change a particular column, say encrypt it and
> then
> >> > > write
> >> > > > > back a new csv with that updated column. I want to use the same
> >> > record
> >> > > > > separator as was in the input file.
> >> > > > >
> >> > > > > Is there a way to get the record separator back from the
> CSVParser
> >> > > > object ?
> >> > > > > I am planning to use the below method to get the writer.
> >> > > > > CSVFormat.RFC4180.withRecordSeparator( >> > > > > separator).print()
> >> > > > >
> >> > > > > For using the above I need to know the record separator upfront
> >> > which I
> >> > > > > have no clue about as the Parser object does not expose that
> >> detail.
> >> > > > >
> >> > > > > thanks
> >> > > > >
> >> > > > > Nitin
> >> > > > >
> >> > > >
> >> > > > I think CSVParser is strict and may not work for both LF and CRLF.
> >> > Maybe
> >> > > > try to scan the file first and see if line ending is lf or crlf,
> and
> >> > then
> >> > > > use a corresponding CSVParser instance that can handle each case.
> >> > > >
> >> > >
> >> > > That's not how it works now but feel free to provide a PR on GitHub
> >> ;-)
> >> > >
> >> > > Gary
> >> > >
> >> > > >
> >> > > > --
> >> > > > Guang <http://javadevnotes.com/java-string-split-newline-examples
> >
> >> > > >
> >> > >
> >> >
> >>
> >
>


Re: [CSV] Record Separator query

2017-08-12 Thread Gary Gregory
On Sat, Aug 12, 2017 at 8:48 PM, Bruno P. Kinoshita <
brunodepau...@yahoo.com.br.invalid> wrote:

> Hmmm, for a while I have been considering learning how to release Commons
> components. Maybe I could start with Commons CSV, though I could do with
> some help :) I will start reading the docs at https://commons.apache.org/
> releases/index.html. Is there anything else I need to know to act as RM?
>

Patience :-) there are lots of details.

Gary


> CheersBruno
>
> On Sunday, 13 August 2017, 4:08:36 AM NZST, Gary Gregory <
> garydgreg...@gmail.com> wrote:
>
> There is no one currently slated to volunteer to RM the release. Good time
> to ask though!
>
> Do have a committer here willing to volunteer to release Commons CSV 1.5?
>
> Thank you,
> Gary
>
> On Fri, Aug 11, 2017 at 3:27 PM, nitin mahendru <
> nitin.mahendr...@gmail.com>
> wrote:
>
> > Thanks for accepting the pull request.
> > Any pointers on when the version 1.5 will be released ?
> >
> >
> >
> >
> > On Thu, Aug 10, 2017 at 2:19 PM nitin mahendru <
> nitin.mahendr...@gmail.com
> > >
> > wrote:
> >
> > > Thanks Greg.
> > > Well the problem actually was that I am behind a proxy.  So my mistake.
> > > Sorry for that.
> > >
> > > I have raised a pull request and a JIRA item CSV-214. Looking forward
> to
> > > your feedback.
> > >
> > > Thanks
> > >
> > > Nitin
> > >
> > >
> > >
> > >
> > > On Thu, Aug 10, 2017 at 1:08 PM Gary Gregory 
> > > wrote:
> > >
> > >> Use the button provided by GitHub to copy the repo URL to the
> clipboard,
> > >> then you can just use "git clone "
> > >>
> > >> On Thu, Aug 10, 2017 at 1:05 PM, nitin mahendru <
> > >> nitin.mahendr...@gmail.com>
> > >> wrote:
> > >>
> > >> > Hello All,
> > >> >
> > >> > I raised a JIRA ticket(CSV-214) to make some changes to the code for
> > >> what I
> > >> > a trying to do. The description on the ticket might help explain
> > things
> > >> > better. Now I am trying to clone the repo to make a pull request
> but I
> > >> am
> > >> > just stuck at this:
> > >> >
> > >> > git -c http.sslVerify=false clone https://github.com/apache/
> > >> > commons-csv.git
> > >> > Cloning into 'commons-csv'...
> > >> > fatal: https://github.com/apache/commons-csv.git/info/refs not
> valid:
> > >> is
> > >> > this a git repository?
> > >> >
> > >> >
> > >> > Any Idea about this ?
> > >> >
> > >> > Thanks
> > >> >
> > >> > Nitin
> > >> >
> > >> >
> > >> >
> > >> >
> > >> >
> > >> > On Wed, Aug 9, 2017 at 5:17 PM Gary Gregory  >
> > >> > wrote:
> > >> >
> > >> > > On Wed, Aug 9, 2017 at 5:04 PM, Guang Chao <
> > guang.chao.1...@gmail.com
> > >> >
> > >> > > wrote:
> > >> > >
> > >> > > > On Wed, Aug 9, 2017 at 6:12 AM, nitin mahendru <
> > >> > > nitin.mahendr...@gmail.com
> > >> > > > >
> > >> > > > wrote:
> > >> > > >
> > >> > > > > Hello All,
> > >> > > > >
> > >> > > > > I am trying to read in a csv file which may be 'crlf' or 'lf'
> > >> > > seperated.
> > >> > > > > Then I want to change a particular column, say encrypt it and
> > then
> > >> > > write
> > >> > > > > back a new csv with that updated column. I want to use the
> same
> > >> > record
> > >> > > > > separator as was in the input file.
> > >> > > > >
> > >> > > > > Is there a way to get the record separator back from the
> > CSVParser
> > >> > > > object ?
> > >> > > > > I am planning to use the below method to get the writer.
> > >> > > > > CSVFormat.RFC4180.withRecordSeparator( > >> > > > > separator).print()
> > >> > > > >
> > >> > > > > For using the above I need to know the record separator
> upfront
> > >> > which I
> > >> > > > > have no clue about as the Parser object does not expose that
> > >> detail.
> > >> > > > >
> > >> > > > > thanks
> > >> > > > >
> > >> > > > > Nitin
> > >> > > > >
> > >> > > >
> > >> > > > I think CSVParser is strict and may not work for both LF and
> CRLF.
> > >> > Maybe
> > >> > > > try to scan the file first and see if line ending is lf or crlf,
> > and
> > >> > then
> > >> > > > use a corresponding CSVParser instance that can handle each
> case.
> > >> > > >
> > >> > >
> > >> > > That's not how it works now but feel free to provide a PR on
> GitHub
> > >> ;-)
> > >> > >
> > >> > > Gary
> > >> > >
> > >> > > >
> > >> > > > --
> > >> > > > Guang <http://javadevnotes.com/java-
> string-split-newline-examples
> > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> > >
> >
>


Re: [CSV] CSVMutableRecord

2017-08-14 Thread Gary Gregory
Hi All:

Should we consider adding put(int,Object) and put(String, Object) to the
current CSVRecord class?

Gary

On Mon, Aug 14, 2017 at 2:54 PM, nitin mahendru 
wrote:

> Hi Everyone,
>
> I recently pushed a change(pull request 20) to get the line ending from the
> parser.
>
> Now I want to push another change which I feel will also be useful for the
> community. I want to add a CSVRecordMutable class which had a constructor
> which accepts a CSVRecord object. So when we have a CSVRecordMutable object
> from it then we can edit individual columns using it.
>
> I would be using this to write back my edited CSV file. My use case is to
> read a csv, mangle some columns, write back a new csv.
>
> I could have directly raised a pull request but I just wanted to float the
> idea before and see the reaction.
>
> Thanks
>
> Nitin
>


Re: [CSV] CSVMutableRecord

2017-08-14 Thread Gary Gregory
I think we've kept the design as YAGNI as possible... :-)

Gary

On Mon, Aug 14, 2017 at 3:25 PM, nitin mahendru 
wrote:

> Yeah that also is OK. I though there is a reason to keep the CSVRecord
> without setters. But maybe not!
>
> Nitin
>
>
>
>
> On Mon, Aug 14, 2017 at 2:22 PM Gary Gregory 
> wrote:
>
> > Hi All:
> >
> > Should we consider adding put(int,Object) and put(String, Object) to the
> > current CSVRecord class?
> >
> > Gary
> >
> > On Mon, Aug 14, 2017 at 2:54 PM, nitin mahendru <
> > nitin.mahendr...@gmail.com>
> > wrote:
> >
> > > Hi Everyone,
> > >
> > > I recently pushed a change(pull request 20) to get the line ending from
> > the
> > > parser.
> > >
> > > Now I want to push another change which I feel will also be useful for
> > the
> > > community. I want to add a CSVRecordMutable class which had a
> constructor
> > > which accepts a CSVRecord object. So when we have a CSVRecordMutable
> > object
> > > from it then we can edit individual columns using it.
> > >
> > > I would be using this to write back my edited CSV file. My use case is
> to
> > > read a csv, mangle some columns, write back a new csv.
> > >
> > > I could have directly raised a pull request but I just wanted to float
> > the
> > > idea before and see the reaction.
> > >
> > > Thanks
> > >
> > > Nitin
> > >
> >
>


Re: [CSV] CSVMutableRecord

2017-08-14 Thread Gary Gregory
Feel free to provide a PR on GitHub :-)

Gary

On Aug 14, 2017 15:29, "Gary Gregory"  wrote:

> I think we've kept the design as YAGNI as possible... :-)
>
> Gary
>
> On Mon, Aug 14, 2017 at 3:25 PM, nitin mahendru <
> nitin.mahendr...@gmail.com> wrote:
>
>> Yeah that also is OK. I though there is a reason to keep the CSVRecord
>> without setters. But maybe not!
>>
>> Nitin
>>
>>
>>
>>
>> On Mon, Aug 14, 2017 at 2:22 PM Gary Gregory 
>> wrote:
>>
>> > Hi All:
>> >
>> > Should we consider adding put(int,Object) and put(String, Object) to the
>> > current CSVRecord class?
>> >
>> > Gary
>> >
>> > On Mon, Aug 14, 2017 at 2:54 PM, nitin mahendru <
>> > nitin.mahendr...@gmail.com>
>> > wrote:
>> >
>> > > Hi Everyone,
>> > >
>> > > I recently pushed a change(pull request 20) to get the line ending
>> from
>> > the
>> > > parser.
>> > >
>> > > Now I want to push another change which I feel will also be useful for
>> > the
>> > > community. I want to add a CSVRecordMutable class which had a
>> constructor
>> > > which accepts a CSVRecord object. So when we have a CSVRecordMutable
>> > object
>> > > from it then we can edit individual columns using it.
>> > >
>> > > I would be using this to write back my edited CSV file. My use case
>> is to
>> > > read a csv, mangle some columns, write back a new csv.
>> > >
>> > > I could have directly raised a pull request but I just wanted to float
>> > the
>> > > idea before and see the reaction.
>> > >
>> > > Thanks
>> > >
>> > > Nitin
>> > >
>> >
>>
>
>


Re: [CSV] CSVMutableRecord

2017-08-15 Thread Gary Gregory
How does that work when you want to change more than one value?

Gary

On Aug 15, 2017 00:17, "Benedikt Ritter"  wrote:

> Hi,
>
> I very much like that CSVRecord is unmodifiable. So I’d suggest an API,
> that creates a new record instead of mutating the existing one:
>
> CSVRecord newRecord = myRecord.put(1, „value")
>
> I’m not sure about „put“ as a method name since it clashes with
> java.util.Map#put, which is mutation based...
>
> Regards,
> Benedikt
>
> > Am 15.08.2017 um 02:54 schrieb Gary Gregory :
> >
> > Feel free to provide a PR on GitHub :-)
> >
> > Gary
> >
> > On Aug 14, 2017 15:29, "Gary Gregory"  wrote:
> >
> >> I think we've kept the design as YAGNI as possible... :-)
> >>
> >> Gary
> >>
> >> On Mon, Aug 14, 2017 at 3:25 PM, nitin mahendru <
> >> nitin.mahendr...@gmail.com> wrote:
> >>
> >>> Yeah that also is OK. I though there is a reason to keep the CSVRecord
> >>> without setters. But maybe not!
> >>>
> >>> Nitin
> >>>
> >>>
> >>>
> >>>
> >>> On Mon, Aug 14, 2017 at 2:22 PM Gary Gregory 
> >>> wrote:
> >>>
> >>>> Hi All:
> >>>>
> >>>> Should we consider adding put(int,Object) and put(String, Object) to
> the
> >>>> current CSVRecord class?
> >>>>
> >>>> Gary
> >>>>
> >>>> On Mon, Aug 14, 2017 at 2:54 PM, nitin mahendru <
> >>>> nitin.mahendr...@gmail.com>
> >>>> wrote:
> >>>>
> >>>>> Hi Everyone,
> >>>>>
> >>>>> I recently pushed a change(pull request 20) to get the line ending
> >>> from
> >>>> the
> >>>>> parser.
> >>>>>
> >>>>> Now I want to push another change which I feel will also be useful
> for
> >>>> the
> >>>>> community. I want to add a CSVRecordMutable class which had a
> >>> constructor
> >>>>> which accepts a CSVRecord object. So when we have a CSVRecordMutable
> >>>> object
> >>>>> from it then we can edit individual columns using it.
> >>>>>
> >>>>> I would be using this to write back my edited CSV file. My use case
> >>> is to
> >>>>> read a csv, mangle some columns, write back a new csv.
> >>>>>
> >>>>> I could have directly raised a pull request but I just wanted to
> float
> >>>> the
> >>>>> idea before and see the reaction.
> >>>>>
> >>>>> Thanks
> >>>>>
> >>>>> Nitin
> >>>>>
> >>>>
> >>>
> >>
> >>
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>
>


Re: [CSV] CSVMutableRecord

2017-08-15 Thread Gary Gregory
That looks odd to me. What comes up for me is the use case where I want to
ETL a file of 10,000,000 records and update, say, one column. If am forced
to create a brand new record for every record read, that would be a shame.

If I had a mutable record, I could just keep on updating it and using it to
write each row. Read record, update it, write record. No extra memory
needed.

Either we can make the current record mutable (what's the harm?) or we can
make the parser serve out mutable records based on a config setting. This
could be a subclass of CSVRecord with the extra method I proposed.

Thoughts?

Gary

On Tue, Aug 15, 2017 at 8:33 AM, Gilles 
wrote:

> On Tue, 15 Aug 2017 08:01:53 -0600, Gary Gregory wrote:
>
>> How does that work when you want to change more than one value?
>>
>
> How about a "vararg" argument:
>
> /**
>  * @param orig Original to be copied.
>  * @param replace Fields to be replaced.
>  */
> public static CSVRecord createRecord(CSVRecord orig,
>  Pair ... replace) {
> // ...
> }
>
>
> Gilles
>
>
>
>> Gary
>>
>> On Aug 15, 2017 00:17, "Benedikt Ritter"  wrote:
>>
>> Hi,
>>>
>>> I very much like that CSVRecord is unmodifiable. So I’d suggest an API,
>>> that creates a new record instead of mutating the existing one:
>>>
>>> CSVRecord newRecord = myRecord.put(1, „value")
>>>
>>> I’m not sure about „put“ as a method name since it clashes with
>>> java.util.Map#put, which is mutation based...
>>>
>>> Regards,
>>> Benedikt
>>>
>>> > Am 15.08.2017 um 02:54 schrieb Gary Gregory :
>>> >
>>> > Feel free to provide a PR on GitHub :-)
>>> >
>>> > Gary
>>> >
>>> > On Aug 14, 2017 15:29, "Gary Gregory"  wrote:
>>> >
>>> >> I think we've kept the design as YAGNI as possible... :-)
>>> >>
>>> >> Gary
>>> >>
>>> >> On Mon, Aug 14, 2017 at 3:25 PM, nitin mahendru <
>>> >> nitin.mahendr...@gmail.com> wrote:
>>> >>
>>> >>> Yeah that also is OK. I though there is a reason to keep the
>>> CSVRecord
>>> >>> without setters. But maybe not!
>>> >>>
>>> >>> Nitin
>>> >>>
>>> >>>
>>> >>>
>>> >>>
>>> >>> On Mon, Aug 14, 2017 at 2:22 PM Gary Gregory >> >
>>> >>> wrote:
>>> >>>
>>> >>>> Hi All:
>>> >>>>
>>> >>>> Should we consider adding put(int,Object) and put(String, Object) to
>>> the
>>> >>>> current CSVRecord class?
>>> >>>>
>>> >>>> Gary
>>> >>>>
>>> >>>> On Mon, Aug 14, 2017 at 2:54 PM, nitin mahendru <
>>> >>>> nitin.mahendr...@gmail.com>
>>> >>>> wrote:
>>> >>>>
>>> >>>>> Hi Everyone,
>>> >>>>>
>>> >>>>> I recently pushed a change(pull request 20) to get the line ending
>>> >>> from
>>> >>>> the
>>> >>>>> parser.
>>> >>>>>
>>> >>>>> Now I want to push another change which I feel will also be useful
>>> for
>>> >>>> the
>>> >>>>> community. I want to add a CSVRecordMutable class which had a
>>> >>> constructor
>>> >>>>> which accepts a CSVRecord object. So when we have a
>>> CSVRecordMutable
>>> >>>> object
>>> >>>>> from it then we can edit individual columns using it.
>>> >>>>>
>>> >>>>> I would be using this to write back my edited CSV file. My use case
>>> >>> is to
>>> >>>>> read a csv, mangle some columns, write back a new csv.
>>> >>>>>
>>> >>>>> I could have directly raised a pull request but I just wanted to
>>> float
>>> >>>> the
>>> >>>>> idea before and see the reaction.
>>> >>>>>
>>> >>>>> Thanks
>>> >>>>>
>>> >>>>> Nitin
>>> >>>>>
>>> >>>>
>>> >>>
>>> >>
>>> >>
>>>
>>>
>>>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>
>


Re: [CSV] CSVMutableRecord

2017-08-15 Thread Gary Gregory
On Tue, Aug 15, 2017 at 10:38 AM, nitin mahendru  wrote:

> How about having a state in the class itself which says that it's mutable
> or not.
> If we call a setter on an immutable then it throws an exception.
> By default the records are immutable and you need to make them mutable
> using a new API.
> pros: Saves memory, Keeps the immutability benefits
> cons: people using "mutable" records need to be careful.(While threading
> maybe)
>

Interesting idea!

But I think I like the idea of a subclass better if we are going to split
the behavior b/w mutable and immutable.

For my money and the KISS principle, I would just add the put method in
CSVRecord.

Gary

>
> -Nitin
>
>
>
>
> On Tue, Aug 15, 2017 at 9:01 AM Gilles 
> wrote:
>
> > On Tue, 15 Aug 2017 09:49:04 -0600, Gary Gregory wrote:
> > > That looks odd to me. What comes up for me is the use case where I
> > > want to
> > > ETL a file of 10,000,000 records and update, say, one column. If am
> > > forced
> > > to create a brand new record for every record read, that would be a
> > > shame.
> >
> > Why?
> >
> > > If I had a mutable record, I could just keep on updating it and using
> > > it to
> > > write each row. Read record, update it, write record. No extra memory
> > > needed.
> >
> > How is the size of 1 additional record going to matter compared to the
> > size of the whole program?
> >
> > > Either we can make the current record mutable (what's the harm?) or
> > > we can
> > > make the parser serve out mutable records based on a config setting.
> > > This
> > > could be a subclass of CSVRecord with the extra method I proposed.
> >
> > The harm is that you loose all the promises of immutability.
> >
> > Regards,
> > Gilles
> >
> > >
> > > Thoughts?
> > >
> > > Gary
> > >
> > > On Tue, Aug 15, 2017 at 8:33 AM, Gilles
> > > 
> > > wrote:
> > >
> > >> On Tue, 15 Aug 2017 08:01:53 -0600, Gary Gregory wrote:
> > >>
> > >>> How does that work when you want to change more than one value?
> > >>>
> > >>
> > >> How about a "vararg" argument:
> > >>
> > >> /**
> > >>  * @param orig Original to be copied.
> > >>  * @param replace Fields to be replaced.
> > >>  */
> > >> public static CSVRecord createRecord(CSVRecord orig,
> > >>  Pair ...
> > >> replace) {
> > >> // ...
> > >> }
> > >>
> > >>
> > >> Gilles
> > >>
> > >>
> > >>
> > >>> Gary
> > >>>
> > >>> On Aug 15, 2017 00:17, "Benedikt Ritter" 
> > >>> wrote:
> > >>>
> > >>> Hi,
> > >>>>
> > >>>> I very much like that CSVRecord is unmodifiable. So I’d suggest an
> > >>>> API,
> > >>>> that creates a new record instead of mutating the existing one:
> > >>>>
> > >>>> CSVRecord newRecord = myRecord.put(1, „value")
> > >>>>
> > >>>> I’m not sure about „put“ as a method name since it clashes with
> > >>>> java.util.Map#put, which is mutation based...
> > >>>>
> > >>>> Regards,
> > >>>> Benedikt
> > >>>>
> > >>>> > Am 15.08.2017 um 02:54 schrieb Gary Gregory
> > >>>> :
> > >>>> >
> > >>>> > Feel free to provide a PR on GitHub :-)
> > >>>> >
> > >>>> > Gary
> > >>>> >
> > >>>> > On Aug 14, 2017 15:29, "Gary Gregory" 
> > >>>> wrote:
> > >>>> >
> > >>>> >> I think we've kept the design as YAGNI as possible... :-)
> > >>>> >>
> > >>>> >> Gary
> > >>>> >>
> > >>>> >> On Mon, Aug 14, 2017 at 3:25 PM, nitin mahendru <
> > >>>> >> nitin.mahendr...@gmail.com> wrote:
> > >>>> >>
> > >>>> >>> Yeah that also is OK. I though there is a reason to keep the
> > >>>> CSVRecord
> > >>>> >>> without setters. But maybe not!
> > >>>> 

Re: [CSV] CSVMutableRecord

2017-08-15 Thread Gary Gregory
On Tue, Aug 15, 2017 at 5:32 PM, Gilles 
wrote:

> On Tue, 15 Aug 2017 22:52:32 +, nitin mahendru wrote:
>
>> On Tue, 15 Aug 2017 12:02:20 -0600, Gary Gregory wrote:
>>
>>> On Tue, Aug 15, 2017 at 10:38 AM, nitin mahendru
>>> >>
>>>> wrote:
>>>>
>>>
>>> How about having a state in the class itself which says that it's
>>>> mutable
>>>> or not.
>>>> If we call a setter on an immutable then it throws an exception.
>>>> By default the records are immutable and you need to make them
>>>> mutable
>>>> using a new API.
>>>>
>>>
>> A code example would be useful...
>>
>>
>>
>>
>> Below is the pull request I added.
>> https://github.com/apache/commons-csv/pull/21
>>
>
> As I indicated in the previous message, this is functionally
> breaking. [I'm diverting this discussion over to the "dev"
> mailing list.]
>

Saying that making record mutable is "breaking" is a bit unfair when we do
NOT document the mutability of the class in the first place.

Gary


>
> The following should be an interesting read:
>   http://markmail.org/message/6ytvmxvy2ndsfp7h
>
>
> Regards,
> Gilles
>
>
>
>
>> On Tue, Aug 15, 2017 at 11:17 AM Gilles 
>> wrote:
>>
>> On Tue, 15 Aug 2017 12:02:20 -0600, Gary Gregory wrote:
>>> > On Tue, Aug 15, 2017 at 10:38 AM, nitin mahendru
>>> > >> >> wrote:
>>> >
>>> >> How about having a state in the class itself which says that it's
>>> >> mutable
>>> >> or not.
>>> >> If we call a setter on an immutable then it throws an exception.
>>> >> By default the records are immutable and you need to make them
>>> >> mutable
>>> >> using a new API.
>>>
>>> A code example would be useful...
>>>
>>> >> pros: Saves memory, Keeps the immutability benefits
>>>
>>> What kind of usage are you considering that a single transient
>>> record matters (as compared to the ~300 MB of the JVM itself...)?
>>>
>>> >> cons: people using "mutable" records need to be careful.(While
>>> >> threading
>>> >> maybe)
>>> >>
>>> >
>>> > Interesting idea!
>>> >
>>> > But I think I like the idea of a subclass better if we are going to
>>> > split
>>> > the behavior b/w mutable and immutable.
>>>
>>> Once you have a subclass that is able to modify the state of
>>> its parent, it's a mutable object. Period.
>>> There is no such thing as a "split".
>>>
>>> >
>>> > For my money and the KISS principle, I would just add the put method
>>> > in
>>> > CSVRecord.
>>>
>>> Then, any use that assumes immutability will be broken.
>>>
>>>
>>> Gilles
>>>
>>>
>>> > Gary
>>> >
>>> >>
>>> >> -Nitin
>>> >>
>>> >>
>>> >>
>>> >>
>>> >> On Tue, Aug 15, 2017 at 9:01 AM Gilles
>>> >> 
>>> >> wrote:
>>> >>
>>> >> > On Tue, 15 Aug 2017 09:49:04 -0600, Gary Gregory wrote:
>>> >> > > That looks odd to me. What comes up for me is the use case where
>>> >> I
>>> >> > > want to
>>> >> > > ETL a file of 10,000,000 records and update, say, one column. If
>>> >> am
>>> >> > > forced
>>> >> > > to create a brand new record for every record read, that would
>>> >> be a
>>> >> > > shame.
>>> >> >
>>> >> > Why?
>>> >> >
>>> >> > > If I had a mutable record, I could just keep on updating it and
>>> >> using
>>> >> > > it to
>>> >> > > write each row. Read record, update it, write record. No extra
>>> >> memory
>>> >> > > needed.
>>> >> >
>>> >> > How is the size of 1 additional record going to matter compared to
>>> >> the
>>> >> > size of the whole program?
>>> >> >
>>> >> > > Either we can make the current record mutable (what's the harm?)
>>> >> or
>>>

Re: [CSV] CSVMutableRecord

2017-08-17 Thread Gary Gregory
Not yet ;-)

On Aug 17, 2017 11:34, "nitin mahendru"  wrote:

> Hi All,
>
> Any consensus on this ?
>
> -Nitin
>
>
>
>
> On Tue, Aug 15, 2017 at 4:43 PM Gary Gregory 
> wrote:
>
> > On Tue, Aug 15, 2017 at 5:32 PM, Gilles 
> > wrote:
> >
> > > On Tue, 15 Aug 2017 22:52:32 +, nitin mahendru wrote:
> > >
> > >> On Tue, 15 Aug 2017 12:02:20 -0600, Gary Gregory wrote:
> > >>
> > >>> On Tue, Aug 15, 2017 at 10:38 AM, nitin mahendru
> > >>>  > >>>
> > >>>> wrote:
> > >>>>
> > >>>
> > >>> How about having a state in the class itself which says that it's
> > >>>> mutable
> > >>>> or not.
> > >>>> If we call a setter on an immutable then it throws an exception.
> > >>>> By default the records are immutable and you need to make them
> > >>>> mutable
> > >>>> using a new API.
> > >>>>
> > >>>
> > >> A code example would be useful...
> > >>
> > >>
> > >>
> > >>
> > >> Below is the pull request I added.
> > >> https://github.com/apache/commons-csv/pull/21
> > >>
> > >
> > > As I indicated in the previous message, this is functionally
> > > breaking. [I'm diverting this discussion over to the "dev"
> > > mailing list.]
> > >
> >
> > Saying that making record mutable is "breaking" is a bit unfair when we
> do
> > NOT document the mutability of the class in the first place.
> >
> > Gary
> >
> >
> > >
> > > The following should be an interesting read:
> > >   http://markmail.org/message/6ytvmxvy2ndsfp7h
> > >
> > >
> > > Regards,
> > > Gilles
> > >
> > >
> > >
> > >
> > >> On Tue, Aug 15, 2017 at 11:17 AM Gilles  >
> > >> wrote:
> > >>
> > >> On Tue, 15 Aug 2017 12:02:20 -0600, Gary Gregory wrote:
> > >>> > On Tue, Aug 15, 2017 at 10:38 AM, nitin mahendru
> > >>> >  > >>> >> wrote:
> > >>> >
> > >>> >> How about having a state in the class itself which says that it's
> > >>> >> mutable
> > >>> >> or not.
> > >>> >> If we call a setter on an immutable then it throws an exception.
> > >>> >> By default the records are immutable and you need to make them
> > >>> >> mutable
> > >>> >> using a new API.
> > >>>
> > >>> A code example would be useful...
> > >>>
> > >>> >> pros: Saves memory, Keeps the immutability benefits
> > >>>
> > >>> What kind of usage are you considering that a single transient
> > >>> record matters (as compared to the ~300 MB of the JVM itself...)?
> > >>>
> > >>> >> cons: people using "mutable" records need to be careful.(While
> > >>> >> threading
> > >>> >> maybe)
> > >>> >>
> > >>> >
> > >>> > Interesting idea!
> > >>> >
> > >>> > But I think I like the idea of a subclass better if we are going to
> > >>> > split
> > >>> > the behavior b/w mutable and immutable.
> > >>>
> > >>> Once you have a subclass that is able to modify the state of
> > >>> its parent, it's a mutable object. Period.
> > >>> There is no such thing as a "split".
> > >>>
> > >>> >
> > >>> > For my money and the KISS principle, I would just add the put
> method
> > >>> > in
> > >>> > CSVRecord.
> > >>>
> > >>> Then, any use that assumes immutability will be broken.
> > >>>
> > >>>
> > >>> Gilles
> > >>>
> > >>>
> > >>> > Gary
> > >>> >
> > >>> >>
> > >>> >> -Nitin
> > >>> >>
> > >>> >>
> > >>> >>
> > >>> >>
> > >>> >> On Tue, Aug 15, 2017 at 9:01 AM Gilles
> > >>> >> 
> 

Re: Release BCEL 6.1?

2017-08-25 Thread Gary Gregory
On Fri, Aug 25, 2017 at 8:53 AM, Benedikt Ritter  wrote:

> Hello Andreas,
>
> > Am 25.08.2017 um 15:24 schrieb Andreas Sewe  >:
> >
> > Hi,
> >
> > would it be possible to release a new version of BCEL? The last release
> > (6.0) was over a year ago (in July 2016 [1]).
> >
> > As a committer to the SpotBugs project (the successor of FindBugs), I
> > would like to see BCEL 6.1 out in the near future [2], as we suffer from
> > bug BCEL-284 [3]. Unfortunately, our last request for a BCEL 6.1 release
> > wasn't heard [4] and we are now considering forking BCEL [5] -- which I
> > consider to be a measure of last resort.
> >
> > Thus, it would be great if we could see an official BCEL 6.1 release.
> >
> > If you need any assistance or additional testing, I'd be happy to help
> out.
>
> I’ll have a look into this and come back to you. Probably on Sunday since
> I’ll be on the train then and will have some time.
>

Great news! Thank you B!

Gary

>
> Cheers,
> Benedikt
>
> >
> > Best wishes,
> >
> > Andreas
> >
> > [1]
> >  apache.bcel%22%20AND%20a%3A%22bcel%22>
> > [2] 
> > [3] 
> > [4]
> >  201612.mbox/ajax/%3CCAO1eWSCCQR%3Du0anpeXc6AixKfRZuSq6T2BPDYYj
> aPp%3Dh_S%2BN6Q%40mail.gmail.com%3E>
> > [5]  issuecomment-323340124>
> >
> > --
> > Codetrails GmbH
> > The best code possible
> >
> > Robert-Bosch-Str. 7, 64293 Darmstadt
> > Phone: +49-6151-276-7092
> > Mobile: +49-170-811-3791
> > http://www.codetrails.com/
> >
> > Managing Director: Dr. Marcel Bruch
> > Handelsregister: Darmstadt HRB 91940
> >
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>
>


Re: [CSV] CSVMutableRecord

2017-08-25 Thread Gary Gregory
On Fri, Aug 25, 2017 at 11:08 AM, nitin mahendru  wrote:

> Hi Everyone,
>
> Any decision on this yet ?
>

Not yet. Needs a bit more stewing and brewing...

Gary


> Thanks
>
> Nitin
>
>
>
>
> On Mon, Aug 21, 2017 at 2:51 PM nitin mahendru  >
> wrote:
>
> > Just another follow up. Anything new ?
> >
> > -Nitin
> >
> >
> >
> >
> > On Thu, Aug 17, 2017 at 10:58 AM Gary Gregory 
> > wrote:
> >
> >> Not yet ;-)
> >>
> >> On Aug 17, 2017 11:34, "nitin mahendru" 
> >> wrote:
> >>
> >> > Hi All,
> >> >
> >> > Any consensus on this ?
> >> >
> >> > -Nitin
> >> >
> >> >
> >> >
> >> >
> >> > On Tue, Aug 15, 2017 at 4:43 PM Gary Gregory 
> >> > wrote:
> >> >
> >> > > On Tue, Aug 15, 2017 at 5:32 PM, Gilles <
> gil...@harfang.homelinux.org
> >> >
> >> > > wrote:
> >> > >
> >> > > > On Tue, 15 Aug 2017 22:52:32 +, nitin mahendru wrote:
> >> > > >
> >> > > >> On Tue, 15 Aug 2017 12:02:20 -0600, Gary Gregory wrote:
> >> > > >>
> >> > > >>> On Tue, Aug 15, 2017 at 10:38 AM, nitin mahendru
> >> > > >>>  >> > > >>>
> >> > > >>>> wrote:
> >> > > >>>>
> >> > > >>>
> >> > > >>> How about having a state in the class itself which says that
> it's
> >> > > >>>> mutable
> >> > > >>>> or not.
> >> > > >>>> If we call a setter on an immutable then it throws an
> exception.
> >> > > >>>> By default the records are immutable and you need to make them
> >> > > >>>> mutable
> >> > > >>>> using a new API.
> >> > > >>>>
> >> > > >>>
> >> > > >> A code example would be useful...
> >> > > >>
> >> > > >>
> >> > > >>
> >> > > >>
> >> > > >> Below is the pull request I added.
> >> > > >> https://github.com/apache/commons-csv/pull/21
> >> > > >>
> >> > > >
> >> > > > As I indicated in the previous message, this is functionally
> >> > > > breaking. [I'm diverting this discussion over to the "dev"
> >> > > > mailing list.]
> >> > > >
> >> > >
> >> > > Saying that making record mutable is "breaking" is a bit unfair when
> >> we
> >> > do
> >> > > NOT document the mutability of the class in the first place.
> >> > >
> >> > > Gary
> >> > >
> >> > >
> >> > > >
> >> > > > The following should be an interesting read:
> >> > > >   http://markmail.org/message/6ytvmxvy2ndsfp7h
> >> > > >
> >> > > >
> >> > > > Regards,
> >> > > > Gilles
> >> > > >
> >> > > >
> >> > > >
> >> > > >
> >> > > >> On Tue, Aug 15, 2017 at 11:17 AM Gilles <
> >> gil...@harfang.homelinux.org
> >> > >
> >> > > >> wrote:
> >> > > >>
> >> > > >> On Tue, 15 Aug 2017 12:02:20 -0600, Gary Gregory wrote:
> >> > > >>> > On Tue, Aug 15, 2017 at 10:38 AM, nitin mahendru
> >> > > >>> >  >> > > >>> >> wrote:
> >> > > >>> >
> >> > > >>> >> How about having a state in the class itself which says that
> >> it's
> >> > > >>> >> mutable
> >> > > >>> >> or not.
> >> > > >>> >> If we call a setter on an immutable then it throws an
> >> exception.
> >> > > >>> >> By default the records are immutable and you need to make
> them
> >> > > >>> >> mutable
> >> > > >>> >> using a new API.
> >> > > >>>
> >> > > >>> A code example would be useful...
> >> > > >>>
> &

Re: [CSV] Record Separator query

2017-08-26 Thread Gary Gregory
Hi Bruno,

I think it is fine to proceed with a release for 1.5. The code seems stable
to me now. The mutable record issue does not sound settled and fully baked
to me. I like RERO and since you've kindly volunteered to RM this release,
I'd rather not break your stride.

Gary

On Sat, Aug 26, 2017 at 6:34 AM, Bruno P. Kinoshita <
brunodepau...@yahoo.com.br> wrote:

> Ok, so uploaded my keys, followed the steps at https://commons.apache.org/
> releases/prepare.html, used the commit logs in other commons repositories
> to see what was done for a new release.
>
> I stopped just before the step to Tag the Release Candidate.
>
> Should I proceed and give it a try at my first attempt at releasing a
> commons component and prepare the vote for CSV 1.5 RC1?
>
> Or should we wait for the mutable record ongoing discussion in the mailing
> list?
>
> If anyone would like to take a peek and check if I missed anything before
> I call the vote, any feedback would be welcome :)
> https://github.com/apache/commons-csv/compare/release...
> kinow:release?expand=1
>
> Cheers
> Bruno
>
>
> 
> From: Gary Gregory 
> To: Commons Users List ; Bruno P. Kinoshita <
> brunodepau...@yahoo.com.br>
> Sent: Sunday, 13 August 2017, 4:24:34 PM NZST
> Subject: Re: [CSV] Record Separator query
>
> On Sat, Aug 12, 2017 at 8:48 PM, Bruno P. Kinoshita <
> brunodepau...@yahoo.com.br.invalid> wrote:
> > Hmmm, for a while I have been considering learning how to release
> Commons components. Maybe I could start with Commons CSV, though I could do
> with some help :) I will start reading the docs at
> https://commons.apache.org/ releases/index.html. Is there anything else I
> need to know to act as RM?
>
> Patience :-) there are lots of details.
>
> Gary
>
> >  CheersBruno
> >
> >
> > On Sunday, 13 August 2017, 4:08:36 AM NZST, Gary Gregory <
> garydgreg...@gmail.com> wrote:
> >
> > There is no one currently slated to volunteer to RM the release. Good
> time
> > to ask though!
> >
> > Do have a committer here willing to volunteer to release Commons CSV 1.5?
> >
> > Thank you,
> > Gary
> >
> > On Fri, Aug 11, 2017 at 3:27 PM, nitin mahendru <
> nitin.mahendr...@gmail.com>
> > wrote:
> >
> >> Thanks for accepting the pull request.
> >> Any pointers on when the version 1.5 will be released ?
> >>
> >>
> >>
> >>
> >> On Thu, Aug 10, 2017 at 2:19 PM nitin mahendru <
> nitin.mahendr...@gmail.com
> >> >
> >> wrote:
> >>
> >> > Thanks Greg.
> >> > Well the problem actually was that I am behind a proxy.  So my
> mistake.
> >> > Sorry for that.
> >> >
> >> > I have raised a pull request and a JIRA item CSV-214. Looking forward
> to
> >> > your feedback.
> >> >
> >> > Thanks
> >> >
> >> > Nitin
> >> >
> >> >
> >> >
> >> >
> >> > On Thu, Aug 10, 2017 at 1:08 PM Gary Gregory 
> >> > wrote:
> >> >
> >> >> Use the button provided by GitHub to copy the repo URL to the
> clipboard,
> >> >> then you can just use "git clone "
> >> >>
> >> >> On Thu, Aug 10, 2017 at 1:05 PM, nitin mahendru <
> >> >> nitin.mahendr...@gmail.com>
> >> >> wrote:
> >> >>
> >> >> > Hello All,
> >> >> >
> >> >> > I raised a JIRA ticket(CSV-214) to make some changes to the code
> for
> >> >> what I
> >> >> > a trying to do. The description on the ticket might help explain
> >> things
> >> >> > better. Now I am trying to clone the repo to make a pull request
> but I
> >> >> am
> >> >> > just stuck at this:
> >> >> >
> >> >> > git -c http.sslVerify=false clone https://github.com/apache/
> >> >> > commons-csv.git
> >> >> > Cloning into 'commons-csv'...
> >> >> > fatal: https://github.com/apache/ commons-csv.git/info/refs not
> valid:
> >> >> is
> >> >> > this a git repository?
> >> >> >
> >> >> >
> >> >> > Any Idea about this ?
> >> >> >
> >> >> > Thanks
> >> >> >
> >> >> > Nitin
> >> >> >
> >> >> >
> >> >> >
&

Re: [VFS] How to override a FileContent / FileContentInfo provider for an existing filesystem?

2017-09-25 Thread Gary Gregory
Hi Carl,

Do you mean org.apache.commons.vfs2.impl.DefaultFileContentInfo
and org.apache.commons.vfs2.impl.FileContentInfo?

Ralph, do have issue as to make this pluggable?

Gary

On Mon, Sep 25, 2017 at 8:31 AM, Carl Eric Codere  wrote:

> Greetings,I am interested in using the VFS library for one
> of my projects, as it has almost everything I need, but i have some
> questions on it though.
> My use case is as follows:* For the local file system, I use DESCRIPT.ION
> files to store attributes of files and directories, so I would need to
> override some methods of DefaultFileInfo() , mainly all the attribute
> related functions. How can I set my own FileInfo provider? I did not find
> any API in the interfaces to do this, maybe, i missed something.
> * The same is true of FileContent, how can I set my own FileContentInfo
> provider in FileContent ? I would probably use a feature of JDK 1.6 (the
> FileTypeMap class) to override the default implementation.
>
> Finally an unrelated question, why you do not use the DataSource interface
> in FileObject available in JDK 1.6, is it because of Android compatibility
> issues?
> Thanks in advance for your help,Carl
>
>
>
>
>
>


Re: [VFS] How to override a FileContent / FileContentInfo provider for an existing filesystem?

2017-09-25 Thread Gary Gregory
Hi Carl,

WRT DataSource, this is a JDBC interface, which does not seem appropriate
for a file system. Or do you mean javax.activation.DataSource. Apache
Commons VFS was started a long time ago and not adapted to newer JREs in
this area (obviously.)

Gary


On Mon, Sep 25, 2017 at 8:31 AM, Carl Eric Codere  wrote:

> Greetings,I am interested in using the VFS library for one
> of my projects, as it has almost everything I need, but i have some
> questions on it though.
> My use case is as follows:* For the local file system, I use DESCRIPT.ION
> files to store attributes of files and directories, so I would need to
> override some methods of DefaultFileInfo() , mainly all the attribute
> related functions. How can I set my own FileInfo provider? I did not find
> any API in the interfaces to do this, maybe, i missed something.
> * The same is true of FileContent, how can I set my own FileContentInfo
> provider in FileContent ? I would probably use a feature of JDK 1.6 (the
> FileTypeMap class) to override the default implementation.
>
> Finally an unrelated question, why you do not use the DataSource interface
> in FileObject available in JDK 1.6, is it because of Android compatibility
> issues?
> Thanks in advance for your help,Carl
>
>
>
>
>
>


Re: [VFS] How to override a FileContent / FileContentInfo provider for an existing filesystem?

2017-09-25 Thread Gary Gregory
I'm curious at what Ralph thinks. You could consider providing a PR to add
the feature to make the class pluggable and see how much code that
touches...

Gary

On Mon, Sep 25, 2017 at 10:23 AM, Carl Eric Codere <
cecod...@yahoo.ca.invalid> wrote:

> Greetings, Thanks for your quick reply!  Yes, you are
> correct.  I would like to have a way to change the provider, I would
> subclass the implementation that you have and use that as content and
> contentInfo provider. Otherwise, if its not the case, currently i need to
> reimplement everything, right?
>
> Best regards,Carl
>
>   From: Gary Gregory 
>  To: Commons Users List ; Carl Eric Codere <
> cecod...@yahoo.ca>
>  Sent: Monday, September 25, 2017 5:07 PM
>  Subject: Re: [VFS] How to override a FileContent / FileContentInfo
> provider for an existing filesystem?
>
> Hi Carl,
>
> Do you mean org.apache.commons.vfs2.impl.DefaultFileContentInfo
> and org.apache.commons.vfs2.impl.FileContentInfo?
>
> Ralph, do have issue as to make this pluggable?
>
> Gary
>
> On Mon, Sep 25, 2017 at 8:31 AM, Carl Eric Codere
>  > wrote:
>
> > Greetings,I am interested in using the VFS library for
> one
> > of my projects, as it has almost everything I need, but i have some
> > questions on it though.
> > My use case is as follows:* For the local file system, I use DESCRIPT.ION
> > files to store attributes of files and directories, so I would need to
> > override some methods of DefaultFileInfo() , mainly all the attribute
> > related functions. How can I set my own FileInfo provider? I did not find
> > any API in the interfaces to do this, maybe, i missed something.
> > * The same is true of FileContent, how can I set my own FileContentInfo
> > provider in FileContent ? I would probably use a feature of JDK 1.6 (the
> > FileTypeMap class) to override the default implementation.
> >
> > Finally an unrelated question, why you do not use the DataSource
> interface
> > in FileObject available in JDK 1.6, is it because of Android
> compatibility
> > issues?
> > Thanks in advance for your help,Carl
> >
> >
> >
> >
> >
> >
>
>
>


Re: Missing type information (not seen in visitor)

2017-09-25 Thread Gary Gregory
Which Commons component are you using?

Gary

On Sep 25, 2017 17:05, "Showalter, Jim"  wrote:

> We have two classes like this:
>
> package com.intuit.foo;
>
> public class Foo {
> }
>
> public class FooHolder {
>private List foos = new ArrayList<>();
> }
>
> After visiting both classes and dumping out the info, I see this:
>
> com/intuit/foo/Foo:
>   class, lines 0 to ~2, deletable, public
>
> com/intuit/foo/Foos:
>   class, lines 0 to ~2, not-deletable, public
>   type references
> 
>   field declarations
> com/intuit/obill/v1/quote/response/Quote:chargeDetails:
> Ljava/util/List;
>
> Note that the type Foo is not seen in when visiting the Foos. Because
> there are no other references to Foo anywhere, this results in a
> false-positive delete of Foo.java.
>
> I collect all of the referred-to types in the visitor like this:
>
>@Override
>public void visitConstantClass(final ConstantClass obj) {
>   String className = JavaUtils.dotsToSlashes(
> javaClass().getConstantPool().getConstant(obj.getNameIndex()).toString().replace("\")",
> "").replaceAll("^.*\"", ""));
>   if (ignore(className)) {
>  return;
>   }
>   type().addTypeReference(className);
>}
>
> What am I doing wrong?
>
> Jim Showalter
> Programmer
> Intuit, 2003H-265Z
> Garcia Avenue
> Mountain View, CA 94043
> (408) 353-4954 [home]
> (408) 204-1661 [personal cell]
> (669) 271-2257 [work cell]
>
>


Re: [configuration] Release date for commons-configuration2 ?

2017-09-26 Thread Gary Gregory
No plans that I know of... someone needs to go through JIRA and see if
there are any must dos...

Gary

On Tue, Sep 26, 2017 at 1:56 PM, Pascal Schumacher  wrote:

> No idea if there are concrete plans for a release date of
> commons-configuration 2.2 with the YAML feature.
>
> https://repository.apache.org/content/groups/snapshots/org/a
> pache/commons/commons-configuration2/ should have a snapshots with the
> feature.
>
> Kind regards,
> Pascal
>
>
> Am 26.09.2017 um 21:43 schrieb Andreas Kuhtz:
>
>> Hello,
>>
>> Is there a planned release date for commons-configuration2 or is a
>> SNAPSHOT
>> available in a public maven repo?
>>
>> I would like to use the YAML configuration in my project.
>>
>> Best regards,
>> Andreas
>>
>>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>
>


Re: [configuration] Release date for commons-configuration2 ?

2017-09-26 Thread Gary Gregory
On Tue, Sep 26, 2017 at 2:07 PM, Andreas Kuhtz 
wrote:

> Thank you for the response.
> I looked at http://repository.apache.org/snapshots/ already, but there is
> no 2.2-SNAPSHOT. If someone has permissions to publish the current
> 2.2-SNAPSHOT that would be great.
>

Unfortunately, it's more complicated than that. We have a release process
that requires a release manager from our team to volunteer and jump through
a bunch of hoops.

Gary


>
> 2017-09-26 21:59 GMT+02:00 Pascal Schumacher :
>
> > Sorry my response was less that clear. The public maven repo address is:
> > http://repository.apache.org/snapshots/
> >
> > See: https://www.apache.org/dev/repository-faq.html#basic
> >
> >
> > Am 26.09.2017 um 21:56 schrieb Pascal Schumacher:
> >
> >> No idea if there are concrete plans for a release date of
> >> commons-configuration 2.2 with the YAML feature.
> >>
> >> https://repository.apache.org/content/groups/snapshots/org/a
> >> pache/commons/commons-configuration2/ should have a snapshots with the
> >> feature.
> >>
> >> Kind regards,
> >> Pascal
> >>
> >> Am 26.09.2017 um 21:43 schrieb Andreas Kuhtz:
> >>
> >>> Hello,
> >>>
> >>> Is there a planned release date for commons-configuration2 or is a
> >>> SNAPSHOT
> >>> available in a public maven repo?
> >>>
> >>> I would like to use the YAML configuration in my project.
> >>>
> >>> Best regards,
> >>> Andreas
> >>>
> >>>
> >>
> >> -
> >> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> >> For additional commands, e-mail: user-h...@commons.apache.org
> >>
> >>
> >
> > -
> > To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> > For additional commands, e-mail: user-h...@commons.apache.org
> >
> >
>


[ANNOUNCEMENT] Apache Commons VFS 2.2 Released

2017-10-06 Thread Gary Gregory
The Apache Commons team is pleased to announce the release of Commons VFS
2.2.

Commons VFS provides a single API for accessing various different file
systems. It presents a uniform view of the files from various different
sources, such as the files on local disk, on an HTTP server, or inside a
Zip archive.

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

For information on Commons VFS please visit the VFS website:
  http://commons.apache.org/vfs/

Commons VFS can be downloaded from the following page:
 http://commons.apache.org/vfs/download_vfs.cgi

Allow 24 hours for the mirrors to catch up.

Gary Gregory
on behalf of the Apache Commons community


[ANNOUCEMENT] Apache Commons Codec 1.11 is available

2017-10-21 Thread Gary Gregory
The Apache Commons team is pleased to announce the release of Commons Codec
1.11.

Apache Commons Codec (TM) software provides implementations of common
encoders and decoders such as Base64, Hex, Phonetic and URLs.

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

For information on Commons VFS please visit the VFS website:
  http://commons.apache.org/codec/

Commons Codec can be downloaded from the following page:
 http://commons.apache.org/codec/download_codec.cgi

Allow a few more hours for all mirrors to catch up.

Gary Gregory
on behalf of the Apache Commons community


Re: [pool] Any release plan for 2.4.3?

2017-10-28 Thread Gary Gregory
Apache Commons Pool 2.4.3 is in the release process. Distributions are
propagating to mirrors...

Gary

On Tue, May 31, 2016 at 4:33 PM, Jungtaek Lim  wrote:

> Hi, I'm Jungtaek Lim, collaborator of Jedis (Java Redis Client).
>
> Jedis uses Commons Pool 2.x but stucks on POOL-303
> .
> It seems to be going to be released to 2.4.3, but 2.4.2 is released at Aug.
> 2015 which is 10 months ago.
>
> So I'd like to hear about news for new release. Please let me know if we
> have, or please have a release plan if we don't have any.
>
> Thanks!
> Jungtaek Lim (HeartSaVioR)
>


Re: unicode string in file

2017-10-31 Thread Gary Gregory
Hi,

In Java < 9, dot properties files are  ISO 8859-1. In Java 9, you can use
UTF-8, please see
https://docs.oracle.com/javase/9/intl/internationalization-enhancements-jdk-9.htm#JSINT-GUID-AF5AECA7-07C1-4E7D-BC10-BC7E73DC6C7F

Gary

On Tue, Oct 31, 2017 at 5:52 AM, Денис Матвеев  wrote:

> Hello, anybody can help?
>
> I have such file properties
>
> File file = new File("aaa.cfg");
> Parameters params = new Parameters();
> FileBasedConfigurationBuilder builder =
> new FileBasedConfigurationBuilder<
> >(PropertiesConfiguration.class);
> builder.configure(params.properties()
> .setFile(file)
> .setEncoding("UTF-8")
> .setListDelimiterHandler(new DefaultListDelimiterHandler(';
> ')));
> PropertiesConfiguration defProps = builder.getConfiguration();
> props.setProperty("propname", "national encoding string");
> builder.save();
>
> How do I get Props not to save a string in file like this
> propname = \u0442\u0435\u0441\u0442\u043E\u0432\u0430\
>
> Comments saves well readable.
>
> Thanks
>
> -
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>
>


[ANNOUNCEMENT] Apache Commons Lang 3.7

2017-11-08 Thread Gary Gregory
The Apache Commons community is happy to announce the availability of
Apache Commons Lang 3.7.

Apache Commons Lang provides helper utilities for the java.lang API,
notably String manipulation methods, basic numerical methods, object
reflection, concurrency, creation and serialization and System properties.
Additionally it contains basic enhancements to java.util.Date and a series
of utilities dedicated to help with building methods, such as hashCode,
toString and equals.

Changes in this version include:

New features:
o LANG-1355: TimeZone.getTimeZone() in FastDateParser causes resource
contention (PR #296.) Thanks to Chas Honton.
o LANG-1360: Add methods to ObjectUtils to get various forms of class names
in a null-safe manner Thanks to Gary Gregory.

Fixed Bugs:
o LANG-1362: Fix tests DateUtilsTest for Java 9 with en_GB locale Thanks to
Stephen Colebourne.
o LANG-1365: Fix NullPointerException in isJavaVersionAtLeast on Java 10,
add SystemUtils.IS_JAVA_10, add JavaVersion.JAVA_10 Thanks to Gary Gregory.
o LANG-1348: StackOverflowError on TypeUtils.toString(...) for a generic
return type of Enum.valueOf Thanks to mbusso.
o LANG-1350: ConstructorUtils.invokeConstructor(Class, Object...)
regression Thanks to Brett Kail.
o LANG-1349: EqualsBuilder#isRegistered: swappedPair construction bug
Thanks to Naman Nigam.
o LANG-1357: org.apache.commons.lang3.time.FastDateParser should use
toUpperCase(Locale) Thanks to BruceKuiLiu.

Changes:
o LANG-1358: Improve StringUtils#replace throughput Thanks to Stephane
Landelle.
o LANG-1346: Remove deprecation from RandomStringUtils.
o LANG-1361: ExceptionUtils.getThrowableList() is using deprecated
ExceptionUtils.getCause() Thanks to Ana.

For more details see the release notes at:
http://www.apache.org/dist/commons/lang/RELEASE-NOTES.txt

Distribution packages can be downloaded from:
https://commons.apache.org/proper/commons-lang/download_lang.cgi

You may have to wait 24 hours for for all mirrors to catch sync up. The
release is available on Maven Central now.

When downloading, please verify signatures using the KEYS file available at:
http://www.apache.org/dist/commons

Maven artifacts are also available in the central Maven repository:


  org.apache.commons
  commons-lang3
  3.7


Have fun,
Gary Gregory, on behalf of the Apache Commons Community


Re: [net] Version 3.7

2017-11-18 Thread Gary Gregory
Nope, we need an RM to volunteer.

Gary

On Nov 18, 2017 10:54, "Robert Paasche"  wrote:

> Hi all,
>
> is there an estimated date of the release?
>
> Best
> Robert Paasche
>
> 2017-10-23 16:29 GMT+02:00 Robert Paasche :
>
> > Hi,
> >
> > is there a release schedule for commons-net 3.7? We need the fix/changes
> > from NET-584, but we are not allowed to use SNAPSHOT versions.
> >
> > Robert Paasche
> >
> >
> >
>


[ANNOUNCEMENT] Apache Commons BCEL 6.2 is out with better Java 9 support

2017-12-09 Thread Gary Gregory
The Apache Commons BCEL team is pleased to announce the release of Apache
Commons BCEL 6.2 with better Java 9 support!

The Byte Code Engineering Library (BCEL) is intended to give users a
convenient way to analyze, create, and manipulate compiled .class files.
Classes are represented by objects containing all the symbolic information
of the given class: methods, fields and byte code instructions.

Experimental Java 9 Support.

FIXED BUGS:
===

o BCEL-294: Incorrect comment in StackMap.java Thanks to Mark Roberts.
o BCEL-296: Incorrect comment in several classes. Thanks to Mark Roberts.
o BCEL-295: Fix local variable live range length; add test case. Thanks to
Mark Roberts.
o BCEL-300: org.apache.bcel.classfile.ClassFormatException: Invalid byte
tag in constant pool: 19.
o BCEL-301: org.apache.bcel.classfile.ClassFormatException: Invalid byte
tag in constant pool: 20.


Have fun!
-Apache Commons BCEL team

Feedback


Open source works best when you give feedback:

http://commons.apache.org/bcel

Please direct all bug reports to JIRA:

https://issues.apache.org/jira/browse/BCEL

Or subscribe to the commons-user mailing list

The Apache Commons Team


[ANNOUCEMENT] Apache Commons Pool 2.5.0

2017-12-20 Thread Gary Gregory
The Apache Commons Pool team is pleased to announce the release of Apache
Commons Pool 2.5.0.

Apache Commons Pool provides an object-pooling API and a number of object
pool implementations.
Version 2 contains a completely re-written pooling implementation compared
to the 1.x series.
In addition to performance and scalability improvements, version 2 includes
robust instance
tracking and pool monitoring. Version 2 requires JDK level 1.6 or above.

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

NOTE: The MBean interfaces (DefaultPooledObjectInfoMBean,
GenericKeyedObjectPoolMXBean
  and GenericKeyedObjectPoolMXBean) exist only to define the attributes
and methods
  that will be made available via JMX. They must not be implemented by
clients as
  they are subject to change between major, minor and patch version
releases of
  Commons Pool. Clients that implement any of these interfaces may not,
therefore,
  be able to upgrade to a new minor or patch release without requiring
code
  changes.

Changes in version 2.5.0 include:

New features:
o POOL-332:  ObjectPool and KeyedObject pool should extend Closeable.
o POOL-335:  Make abandoned logging stack trace requirements configurable.
This also reverts
 the default behavior introduced by POOL-320.


Changes:
o POOL-331:  Update from Java 6 to 7.
o POOL-333:  Update optional dependency asm-util from 5.2 to 6.0.
o POOL-334:  org.apache.commons.pool2.impl.ThrowableCallStack.Snapshot is
missing serialVersionUID.


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

http://commons.apache.org/proper/commons-pool/

Enjoy!
Gary Gregory, on behalf of the Apache Commons Team


[ANNOUNCEMENT] Apache Apache Commons DBCP 2.2.0

2017-12-27 Thread Gary Gregory
The Apache Commons DBCP team is pleased to announce the release of Apache
Apache Commons DBCP 2.2.0.

Apache Commons DBCP software implements Database Connection Pooling.

This is a minor release, including bug fixes and enhancements.

Changes in this version include:

New features:
o DBCP-451:  Add constructor DriverManagerConnectionFactory(String).
o DBCP-462:  Refactoring to prepare for a future patch to enable pooling of
all
 prepared and callable statements in PoolingConnection. Thanks
to Keiichi Fujino.
o DBCP-458:  Make it simpler to extend BasicDataSource to allow sub-classes
to
 provide custom GenericObjectPool implementations. Thanks to
Adrian Tarau.
o DBCP-474:  Enable pooling of all prepared and callable statements
 inPoolingConnection. Thanks to Keiichi Fujino.

Fixed Bugs:
o DBCP-481:  Update Apache Commons Pool from 2.4.2 to 2.5.0. Thanks to Gary
Gregory.
o DBCP-454:  OSGi declarations contain multiple import headers for
javax.transaction. Thanks to Philipp Marx, Matt Sicker.
o DBCP-478:  Wrong parameter name in site documentation for BasicDataSource
Configuration Parameters. Thanks to nicola mele.
o DBCP-452:  Add jmxName to properties set by BasicDataSourceFactory.  This
 enables container-managed pools created from JNDI Resource
 definitions to enable JMX by supplying a valid root JMX name.
o DBCP-446:  NullPointerException thrown when calling
ManagedConnection.isClosed(). Thanks to Gary Gregory, feng yang, Euclides
M, Phil Steitz.
o DBCP-444:  InvalidateConnection can result in closed connection returned
by getConnection.
o DBCP-449:  Complete the fix for DBCP-418, enabling PoolableConnection
class to load in environments
 (such as GAE) where the JMX ManagementFactory is not
available. Thanks to Grzegorz D.
o DBCP-455:  Ensure that the cacheState setting is used when statement
pooling is
 disabled. Thanks to Kyohei Nakamura.
o DBCP-453:  Ensure that setSoftMinEvictableIdleTimeMillis is used when
working with
 BasicDataSource. Thanks to Philipp Marx.
o DBCP-456:  Correct the name of the configuration attribute
 softMinEvictableIdleTimeMillis. Thanks to Kyohei Nakamura.
o DBCP-472:  Avoid potential infinite loops when checking if an
SQLException is fatal
 for a connection or not.
o DBCP-468:  Expand the fail-fast for fatal connection errors feature to
include
 managed connections.
o DBCP-463:  Correct a typo in the method name
 PoolableConnectionFactory#setMaxOpenPreparedStatements. The
old method
 remains but is deprecated so not to break clients currently
using the
 incorrect name.
o DBCP-459:  Ensure that a thread's interrupt status is visible to the
caller if the
 thread is interrupted during a call to
 PoolingDataSource.getConnection().
o DBCP-457:  When using a BasicDataSource, pass changes related to the
handling of
 abandoned connections to the underlying pool so that the pool
 configuration may be updated dynamically.


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

http://commons.apache.org/dbcp/

Gary Gregory
Apache Commons V.P., Chair.


Re: Error in commons collections4 Caused by java util ConcurrentModificationException

2017-12-28 Thread Gary Gregory
Just like it says on the Javadoc:
https://docs.oracle.com/javase/7/docs/api/java/util/ConcurrentModificationException.html

One piece of code must be reading while another is writing on the
collection.

Gary

On Thu, Dec 28, 2017 at 11:21 AM, durairaj t  wrote:

> Hi All,
>
> I'm using comm.coll4 with JBOSS EAP sever 7.0 runtime and getting the below
> error,
>
> I don't know whats going on, Any help?
>
>
> Error Message:
> __
>
> Caused by: java.util.ConcurrentModificationException
> at org.apache.commons.collections4.map.AbstractLinkedMap$LinkIt
> erator.nextEntry(AbstractLinkedMap.java:552)
> at org.apache.commons.collections4.map.AbstractLinkedMap$LinkMa
> pIterator.next(AbstractLinkedMap.java:357)
> at org.apache.commons.collections4.map.AbstractHashedMap.doWrit
> eObject(AbstractHashedMap.java:1233)
> at org.apache.commons.collections4.map.LinkedMap.writeObject(
> LinkedMap.java:124)
> at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
> thodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.jboss.marshalling.reflect.SerializableClass.callWriteObj
> ect(SerializableClass.java:271)
> at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializa
> bleObject(RiverMarshaller.java:976)
> at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(Ri
> verMarshaller.java:854)
> at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(Ri
> verMarshaller.java:1032)
> at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializa
> bleObject(RiverMarshaller.java:988)
> at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializa
> bleObject(RiverMarshaller.java:967)
> at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializa
> bleObject(RiverMarshaller.java:967)
> at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializa
> bleObject(RiverMarshaller.java:967)
> at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializa
> bleObject(RiverMarshaller.java:967)
> at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializa
> bleObject(RiverMarshaller.java:967)
> at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializa
> bleObject(RiverMarshaller.java:967)
> at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(Ri
> verMarshaller.java:854)
> at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(Ri
> verMarshaller.java:1032)
> at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializa
> bleObject(RiverMarshaller.java:988)
> at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(Ri
> verMarshaller.java:854)
> at org.jboss.marshalling.river.BlockMarshaller.doWriteObject(Bl
> ockMarshaller.java:65)
> at org.jboss.marshalling.river.BlockMarshaller.writeObject(Bloc
> kMarshaller.java:56)
> at org.jboss.marshalling.MarshallerObjectOutputStream.writeObje
> ctOverride(MarshallerObjectOutputStream.java:50)
> at org.jboss.marshalling.river.RiverObjectOutputStream.writeObj
> ectOverride(RiverObjectOutputStream.java:179)
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:344)
> at java.util.concurrent.CopyOnWriteArrayList.writeObject(CopyOn
> WriteArrayList.java:972)
> at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
> thodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.jboss.marshalling.reflect.SerializableClass.callWriteObj
> ect(SerializableClass.java:271)
> at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializa
> bleObject(RiverMarshaller.java:976)
> at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(Ri
> verMarshaller.java:854)
> at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(Ri
> verMarshaller.java:1032)
> at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializa
> bleObject(RiverMarshaller.java:988)
> at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(Ri
> verMarshaller.java:854)
> at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(Ri
> verMarshaller.java:1032)
> at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializa
> bleObject(RiverMarshaller.java:988)
> at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializa
> bleObject(RiverMarshaller.java:967)
> at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializa
> bleObject(RiverMarshaller.java:967)
> at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(Ri
> verMarshaller.java:854)
> at org.jboss.marshalling.river.BlockMarshaller.doWriteObject(Bl
> ockMarshaller.java:65)
> at org.jboss.marshalling.river.BlockMarshaller.writeObject(Bloc
> kMarshaller.java:56)
> at org.jboss.marshalling.MarshallerObjectOutputStream.writeObje
> ctOverride(MarshallerObjectOutputStream.java:50)
> at org.jboss.marshalling.river.RiverObjectOutputStream.writeObj
> ectOverride(RiverObjectOutputStream.java:179)
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:344)
> at java.util.

Re: Error in commons collections4 Caused by java util ConcurrentModificationException

2017-12-28 Thread Gary Gregory
Hi,

The Commons Collection code throws ConcurrentModificationException when it
detects error conditions. The JRE collections do the same (the ones that
are not thread-safe.)

That does not help much, sorry. I'm afraid you are left with a tricky
debugging session.

It is _possible_ that there is a bug in Commons Collections of course. In
which case, an analysis or reproducible test case would be most welcome.

Also, please make sure you are using the latest version: 4.1.

Thank you,
Gary

On Thu, Dec 28, 2017 at 12:51 PM, durairaj t  wrote:

> Thank you for your response,
>
> I have gone through the java specifications for the same, but I just would
> like to make sure that the error is not due to the "commons collections4"
> API *bug*.
>
> On Thu, Dec 28, 2017 at 2:30 PM, Gary Gregory 
> wrote:
>
> > Just like it says on the Javadoc:
> > https://docs.oracle.com/javase/7/docs/api/java/util/
> > ConcurrentModificationException.html
> >
> > One piece of code must be reading while another is writing on the
> > collection.
> >
> > Gary
> >
> > On Thu, Dec 28, 2017 at 11:21 AM, durairaj t 
> > wrote:
> >
> > > Hi All,
> > >
> > > I'm using comm.coll4 with JBOSS EAP sever 7.0 runtime and getting the
> > below
> > > error,
> > >
> > > I don't know whats going on, Any help?
> > >
> > >
> > > Error Message:
> > > __
> > >
> > > Caused by: java.util.ConcurrentModificationException
> > > at org.apache.commons.collections4.map.AbstractLinkedMap$LinkIt
> > > erator.nextEntry(AbstractLinkedMap.java:552)
> > > at org.apache.commons.collections4.map.AbstractLinkedMap$LinkMa
> > > pIterator.next(AbstractLinkedMap.java:357)
> > > at org.apache.commons.collections4.map.AbstractHashedMap.doWrit
> > > eObject(AbstractHashedMap.java:1233)
> > > at org.apache.commons.collections4.map.LinkedMap.writeObject(
> > > LinkedMap.java:124)
> > > at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
> > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
> > > thodAccessorImpl.java:43)
> > > at java.lang.reflect.Method.invoke(Method.java:498)
> > > at org.jboss.marshalling.reflect.SerializableClass.callWriteObj
> > > ect(SerializableClass.java:271)
> > > at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializa
> > > bleObject(RiverMarshaller.java:976)
> > > at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(Ri
> > > verMarshaller.java:854)
> > > at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(Ri
> > > verMarshaller.java:1032)
> > > at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializa
> > > bleObject(RiverMarshaller.java:988)
> > > at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializa
> > > bleObject(RiverMarshaller.java:967)
> > > at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializa
> > > bleObject(RiverMarshaller.java:967)
> > > at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializa
> > > bleObject(RiverMarshaller.java:967)
> > > at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializa
> > > bleObject(RiverMarshaller.java:967)
> > > at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializa
> > > bleObject(RiverMarshaller.java:967)
> > > at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializa
> > > bleObject(RiverMarshaller.java:967)
> > > at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(Ri
> > > verMarshaller.java:854)
> > > at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(Ri
> > > verMarshaller.java:1032)
> > > at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializa
> > > bleObject(RiverMarshaller.java:988)
> > > at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(Ri
> > > verMarshaller.java:854)
> > > at org.jboss.marshalling.river.BlockMarshaller.doWriteObject(Bl
> > > ockMarshaller.java:65)
> > > at org.jboss.marshalling.river.BlockMarshaller.writeObject(Bloc
> > > kMarshaller.java:56)
> > > at org.jboss.marshalling.MarshallerObjectOutputStream.writeObje
> > > ctOverride(MarshallerObjectOutputStream.java:50)
> > > at org.jboss.marshalling.river.RiverObjectOutputStream.writeObj
> > > ectOverride(RiverObjectOutputStream.java:179)
> > > at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:344)
> > > at java.util.concurrent.CopyOnWriteArrayList.wri

Re: [DBCP] Connection just obtained from datasource is invalid

2018-01-09 Thread Gary Gregory
Currious: are you using the current versions of DBCP and Pool?

Gary

On Jan 9, 2018 8:28 AM, "Shawn Heisey"  wrote:

> On 1/8/2018 11:19 PM, Chas Honton wrote:
> > Don’t forget about any proxies or routers between the client and the
> server. Most infrastructure components will close quiescent connections
> (within minutes)
>
> There are no proxies for the MySQL traffic.  The machines involved are
> on the same subnet (vlan), so it's only layer 2 switches made by Cisco
> that provide the networking -- no routing.  There is no QoS configured.
> The connections are gigabit and the switchports are not incrementing
> error counters.  The inter-switch connections are trunk ports and also
> show no incrementing error counters.
>
> Cisco switches tend to have enough backplane bandwidth to run every port
> at full line rate in both directions.  We don't run our infrastructure
> anywhere near full switching capacity, so dropped packets are unlikely,
> but even if that did happen, TCP is designed to handle that
> transparently to applications.
>
> Cisco routers and switches do not typically interfere in TCP
> communication.  Their firewalls do get involved in TCP, but even if this
> traffic was passing through our firewall (which it's not), our TCP idle
> timeout on the firewall is set to two hours, to accommodate long-lived
> TCP connections over the Internet.
>
> Thanks,
> Shawn
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>
>


Re: [DBCP] Connection just obtained from datasource is invalid

2018-01-09 Thread Gary Gregory
And of your JDBC driver?

Gary

On Jan 9, 2018 8:31 AM, "Gary Gregory"  wrote:

> Currious: are you using the current versions of DBCP and Pool?
>
> Gary
>
> On Jan 9, 2018 8:28 AM, "Shawn Heisey"  wrote:
>
>> On 1/8/2018 11:19 PM, Chas Honton wrote:
>> > Don’t forget about any proxies or routers between the client and the
>> server. Most infrastructure components will close quiescent connections
>> (within minutes)
>>
>> There are no proxies for the MySQL traffic.  The machines involved are
>> on the same subnet (vlan), so it's only layer 2 switches made by Cisco
>> that provide the networking -- no routing.  There is no QoS configured.
>> The connections are gigabit and the switchports are not incrementing
>> error counters.  The inter-switch connections are trunk ports and also
>> show no incrementing error counters.
>>
>> Cisco switches tend to have enough backplane bandwidth to run every port
>> at full line rate in both directions.  We don't run our infrastructure
>> anywhere near full switching capacity, so dropped packets are unlikely,
>> but even if that did happen, TCP is designed to handle that
>> transparently to applications.
>>
>> Cisco routers and switches do not typically interfere in TCP
>> communication.  Their firewalls do get involved in TCP, but even if this
>> traffic was passing through our firewall (which it's not), our TCP idle
>> timeout on the firewall is set to two hours, to accommodate long-lived
>> TCP connections over the Internet.
>>
>> Thanks,
>> Shawn
>>
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
>> For additional commands, e-mail: user-h...@commons.apache.org
>>
>>


Re: [CSV]: Ignore newline in record value while using Apache Common CSV?

2018-01-29 Thread Gary Gregory
I replied on SO.

Gary

On Mon, Jan 29, 2018 at 9:59 AM, piyush gajjariya <
piyush.gajjar...@gmail.com> wrote:

> Hi All,
>
> Anyone knows how to address issue mentioned in below post?
>
> https://stackoverflow.com/questions/48501028/ignore-
> newline-in-record-value-while-using-apache-common-csv
>
> -Piyush
>


Re: [CSV]: Ignore newline in record value while using Apache Common CSV?

2018-01-29 Thread Gary Gregory
You can also submit a unit test patch if you think you can demonstrate a
bug.

Gary

On Mon, Jan 29, 2018 at 2:02 PM, Gary Gregory 
wrote:

> I replied on SO.
>
> Gary
>
> On Mon, Jan 29, 2018 at 9:59 AM, piyush gajjariya <
> piyush.gajjar...@gmail.com> wrote:
>
>> Hi All,
>>
>> Anyone knows how to address issue mentioned in below post?
>>
>> https://stackoverflow.com/questions/48501028/ignore-newline-
>> in-record-value-while-using-apache-common-csv
>>
>> -Piyush
>>
>
>


Re: [POOL] EvictionTimer daemon thread

2018-01-30 Thread Gary Gregory
I cannot find a POOL-351 issue. Can you double check please?

Gary

On Jan 31, 2018 00:15, "Wegrzyn, Jakub"  wrote:

> Hi,
>
> We want to upgrade dbcp2 from version 2.1.1 to version 2.2.0. It requires
> upgrading commons-pool2 from version 2.4.2 to 2.5.0. However, during the
> upgrade we encountered a problem.
> It seems that commons-pool2 Evictor thread has been changed from daemon to
> non-daemon thread (Issue POOL-351, commit: 4a20cdca923bd342360f821d702053
> 8e985d9ec2).
>
> We cannot find any documentation describing the reason or the change
> itself. Can you provide more insight why that was changed and add it to the
> changes-report.
>
> Best regards,
> Jakub
>


Re: [POOL] EvictionTimer daemon thread

2018-01-31 Thread Gary Gregory
On Wed, Jan 31, 2018 at 1:49 AM, Mark Thomas  wrote:

> On 31/01/18 08:15, Bruno P. Kinoshita wrote:
> > Not sure if it was intentional.
> >
> > But here's the reason: https://github.com/apache/commons-pool/commit/
> 4a20cdca923bd342360f821d7020538e985d9ec2#diff-
> 38e254894b87bdf9a1758778c7ffd50fL167
> >
> > Instead of a `new Timer("", /* isDaemon */ true)`, now we have an
> implementation of `ThreadFactory` that when it creates new `Thread`s, it
> doesn't set the `setDaemon(true)`. So it just creates a thread with default
> behaviour of daemon set to false.
> >
> > As the previous behaviour was to have the threads as daemon, and there
> doesn't seem to have any arguments for dropping it, we could raise a new
> issue, with a patch, and ping Mark to see what he thinks?
>
> There is a typo in the commit message. The issue is POOL-315. It looks
> like I had finger trouble that day. I've spotted another typo in the
> changelog which I have now fixed.
>
> I don't recall any discussion of whether or not the threads should be
> daemon threads.
>
> Starting with a clean slate, I'd turn this around. What is the argument
> that the threads should be daemon threads?
>
> If the pool is correctly shutdown it should not matter as the evictor
> thread will be stopped at shutdown.
>

Are we sure that our shutdown logic always cleans up the thread-pool no
matter what?

Gary


>
> The only reason I can see for changing back to using a daemon thread is
> that it used to be a daemon thread and that allowed pools to be used
> without shutting them down cleanly.
>
> Overall, I guess I am neutral on changing it.
>
> Mark
>
>
> >
> > Cheers
> > Bruno
> >
> > (ps: the threads have a typo in their names, but it has been fixed in
> the master branch already)
> >
> >
> > 
> > From: "Wegrzyn, Jakub" 
> > To: Commons Users List 
> > Sent: Wednesday, 31 January 2018 8:54 PM
> > Subject: RE: [POOL] EvictionTimer daemon thread
> >
> >
> >
> > I couldn’t find it either.
> > Pool-351 was a commit message.
> > https://git-wip-us.apache.org/repos/asf?p=commons-pool.git;a=commit;h=
> 4a20cdca923bd342360f821d7020538e985d9ec2
> >
> > Jakub
> >
> >
> > -Original Message-
> > From: Gary Gregory [mailto:garydgreg...@gmail.com]
> > Sent: Wednesday, January 31, 2018 8:28 AM
> > To: Commons Users List 
> > Subject: Re: [POOL] EvictionTimer daemon thread
> >
> > I cannot find a POOL-351 issue. Can you double check please?
> >
> > Gary
> >
> > On Jan 31, 2018 00:15, "Wegrzyn, Jakub"  wrote:
> >
> >> Hi,
> >>
> >> We want to upgrade dbcp2 from version 2.1.1 to version 2.2.0. It
> >> requires upgrading commons-pool2 from version 2.4.2 to 2.5.0. However,
> >> during the upgrade we encountered a problem.
> >> It seems that commons-pool2 Evictor thread has been changed from
> >> daemon to non-daemon thread (Issue POOL-351, commit:
> >> 4a20cdca923bd342360f821d702053 8e985d9ec2).
> >>
> >> We cannot find any documentation describing the reason or the change
> >> itself. Can you provide more insight why that was changed and add it
> >> to the changes-report.
> >>
> >> Best regards,
> >> Jakub
> >>
> >
> > -
> > To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> > For additional commands, e-mail: user-h...@commons.apache.org
> >
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>
>


Re: [primitives] I would like to contribute two methods to the array lists

2018-02-19 Thread Gary Gregory
Hi Michael,

I'm not sure how alive the primitives component is, but the best way to
contribute new methods like these is to provide a GitHub PR with unit
tests. It is very unlikely that new code like this would be accepted
without unit tests and decent code coverage. But, this component is not
mirrored on GitHub so you'll have to do it the old fashioned way:
- Create a JIRA
- Attach a patch in unified diff format for your new methods and their unit
tests

Thank you!
Gary

On Mon, Feb 19, 2018 at 5:34 PM, Michael Mirwaldt 
wrote:

> Hi.
> I am using your library for one of my projects.
>
> Given the ByteArrayList, the following two methods can be very handy:
>
> public byte[] removeElementsFromTo(int fromIndex,int toIndex,boolean
> returnArray) {
> if (fromIndex <0 ||this._size < fromIndex) {
> throw new IndexOutOfBoundsException("From-index should be at
> least 0 and less than " +this._size +", found " + fromIndex);
> }
> if (toIndex <1 ||this._size <= toIndex) {
> throw new IndexOutOfBoundsException("To-index should be at least
> 1 and less than or equal to " +this._size +", found " + toIndex);
> }
> if (toIndex <= fromIndex) {
> throw new IndexOutOfBoundsException("From-index must lie before
> to-index." +"from-index=" + fromIndex +", to-index=" + toIndex);
> }
>
> int length = toIndex - fromIndex;
> byte[] removedBytes =null;
> this.incrModCount();
> if (0 < length) {
> if (returnArray) {
> removedBytes =new byte[length];
> System.arraycopy(this._data, fromIndex, removedBytes,0,
> length);
> }
>
> System.arraycopy(this._data, fromIndex + length,this._data,
> fromIndex, length);
> this._size -= length;
> }else {
> if (returnArray) {
> removedBytes =new byte[0];
> }
> }
>
> return removedBytes;
> }
>
> public void addElementsAt(int index,byte[] elements) {
> this.checkRangeIncludingEndpoint(index);
> this.incrModCount();
> this.ensureCapacity(this._size + elements.length);
> int numtomove =this._size - index - elements.length;
> System.arraycopy(this._data, index,this._data, index +
> elements.length, numtomove);
> System.arraycopy(elements,0,this._data, index, elements.length);
> this._size+=elements.length;
> }
>
> They avoid copying arrays for every single byte.
>
> Maybe you want to add them.
>
> Best regards,'
> Michael MIrwaldt
>


Re: [DBCP] Connection pool not behaving as I expect

2018-03-01 Thread Gary Gregory
On Thu, Mar 1, 2018 at 3:33 PM, Shawn Heisey  wrote:

> We have been having some problems lately where our MySQL server hits the
> max connection limit (600) and then everything breaks.  When I look into
> the problem, I find that our application servers have each made nearly a
> hundred connections to the DB and haven't closed any of them for hours.
>
> I'm also using connection pooling in my programs, with the latest DBCP
> version.  Those servers don't open nearly as many connections, and have
> idle eviction to keep the connection count down.  But when the limit is
> reached, these programs suddenly stop working too.
>
> Investigating these problems, I manage to get connected and kill off the
> surplus of idle connections, and everything starts working.
>
> Today, a couple of days after the last incident, I realized that we
> should *NOT* be having these problems -- because we're using connection
> pooling.  The application has open and idle connections to the DB server
> ... so why is trying to open MORE connections (and obviously failing)
> instead of using one of the perfectly good connections that's already
> sitting there, unused?
>
> I'm writing here specifically for DBCP on my programs, so I know you
> guys probably can't help with Tomcat's connection pooling ... but for
> either case my question stands:  Why isn't connection pooling doing its
> job?
>

I do not think this is a question I, or anyone here, can answer
generically. I can read between that lines that you must feel frustrated
and I certainly empathize with that. I think you might want to debug your
application and come up with some parameters for us to start helping you. A
reproducible example is always best but I understand it might be hard to
provide in this particular case.

Gary


> Thanks,
> Shawn
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>
>


Re: [daemon] Problem with Working Directory

2018-03-06 Thread Gary Gregory
Have you tried using --StartPath? See
https://commons.apache.org/proper/commons-daemon/procrun.html

Gary

On Tue, Mar 6, 2018 at 2:07 PM, Gil Baruch  wrote:

> Seems like I hit a well known issue although I couldn't find documentation
> about it in the FAQ (unfortunately).
>
> It seems that Java does not fully support changing the working directory
> (AKA system property 'user.dir').
>
> Some functionality, such as new File(relativePath) will not be affected by
> a change of 'user.dir' system property and instead, the file path would be
> constructed out of the actual working directory that the JVM started from.
>
> However, when using the Daemon, I cannot specify the directory from where
> to perform the execution of the JVM...
>
> what am I missing?
>
> thanks,
> GBa.
>


Re: [VALIDATOR] Update of packages used by Validator?

2018-03-13 Thread Gary Gregory
I just updated in svn trunk the dependency Apache Commons BeanUtils from
1.9.2 to 1.9.3.

My hope is to see the community:

- Release Apache Commons Release Maven Pplugin 1.1 (this one is DONE :-)
- Release Apache Commons Parent 45 (referencing  Apache Commons Release
plugin 1.1)
- Release other Apache Commons components like Validator.

Gary


On Wed, Feb 14, 2018 at 2:11 PM, Jon Champlin 
wrote:

>  We have an internal product that we use that includes the
> commons-validator package from the central Maven repository and when
> running a third-party library scanner (Black Duck) on the jar file it
> flagged commons-beanutils and commons-collections as having security
> vulnerabilities.  I was wondering if there were plans in the near future to
> release a new version of commons-validator that had the latest version of
> compile dependencies for commons-beanutils, commons-collections and
> commons-digester?
>


Re: [VALIDATOR] Update of packages used by Validator?

2018-03-13 Thread Gary Gregory
On Tue, Mar 13, 2018 at 1:47 PM, Rob Tompkins  wrote:

>
>
> > On Mar 13, 2018, at 3:20 PM, Gary Gregory 
> wrote:
> >
> > I just updated in svn trunk the dependency Apache Commons BeanUtils from
> > 1.9.2 to 1.9.3.
> >
> > My hope is to see the community:
> >
> > - Release Apache Commons Release Maven Pplugin 1.1 (this one is DONE :-)
> > - Release Apache Commons Parent 45 (referencing  Apache Commons Release
> > plugin 1.1)
> > - Release other Apache Commons components like Validator.
>
> My plan is to test run commons-parent 45 on the next release. I’m
> indifferent over whether it’s Commons Text or Commons Validator. Is there a
> preference?
>

Selfishly, I have a need for new Commons Text sooner rather than later.

Gary


>
> -Rob
>
> >
> > Gary
> >
> >
> > On Wed, Feb 14, 2018 at 2:11 PM, Jon Champlin 
> > wrote:
> >
> >> We have an internal product that we use that includes the
> >> commons-validator package from the central Maven repository and when
> >> running a third-party library scanner (Black Duck) on the jar file it
> >> flagged commons-beanutils and commons-collections as having security
> >> vulnerabilities.  I was wondering if there were plans in the near
> future to
> >> release a new version of commons-validator that had the latest version
> of
> >> compile dependencies for commons-beanutils, commons-collections and
> >> commons-digester?
> >>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>
>


Re: [dbcp] DBCP2 Under Java 8?

2018-04-23 Thread Gary Gregory
I've been building DBCP2 locally with Java 8 and all is well.

Gary

On Mon, Apr 23, 2018 at 5:21 PM, Matt Sicker  wrote:

> I've been using DBCP2 in Java 8 for years now. DBCP2 is also used in
> Tomcat, and recent versions of Tomcat require Java 8, so it's been well
> tested in that realm as well.
>
> On 23 April 2018 at 16:10, Frank  wrote:
>
> > Hi folks,
> >
> > The subject says it all! :-)  The DBCP Overview page indicates "DBCP 2
> > compiles and runs under Java 7 only".  I assume it would be good for
> Java 8
> > as well, but has any testing been done along the Java 8 lines?
> >
> > Thanks,
> >
> > -Frank
> >
> >
>
>
> --
> Matt Sicker 
>


Re: [IO] Security issues from v2.2?

2018-05-05 Thread Gary Gregory
I do not see any references to any CVE on
https://commons.apache.org/proper/commons-io/changes-report.html or
https://commons.apache.org/proper/commons-io/jira-report.html

Gary

On Thu, May 3, 2018 at 5:24 AM, vaibhav singh 
wrote:

> Hi,
>
> I wanted to know if there are any security fixes which went through to
> Commons IO, from released v2.2 to released v2.6. The page
> http://commons.apache.org/security.html**seems to hint that no security
> fixes went in to Commons IO, but wanted to confirm.
>
> Thanks,
>
> Vaibhav
>
> --
>
>
>


[ANNOUCEMENT] Apache Commons DBCP 2.3.0

2018-05-13 Thread Gary Gregory
The Apache Commons DBCP team is pleased to announce the release of Apache
Apache Commons DBCP 2.3.0-SNAPSHOT.

Apache Commons DBCP software implements Database Connection Pooling.

This is a minor release, including bug fixes and enhancements.

Changes in this version include:

Fixed Bugs:
o DBCP-476:  AbandonedTrace.getTrace() contains race condition Thanks to
Gary Evesson, Richard Cordova.
o DBCP-482:  Avoid javax.management.InstanceNotFoundException on shutdown
when a bean is not registered. Thanks to Dennis Lloyd, Gary Gregory.

Changes:
o DBCP-483:  Make constant public:
org.apache.commons.dbcp2.PoolingDriver.URL_PREFIX. Thanks to Gary Gregory.
o DBCP-486:  DriverAdapterCPDS.setUser(), setPassword(), and
getPooledConnection() with null arguments throw NullPointerExceptions when
connection properties are set. Thanks to Gary Gregory.
o DBCP-487:  Add API
org.apache.commons.dbcp2.datasources.PerUserPoolDataSource.clear(). Thanks
to Gary Gregory.
o DBCP-488:  NPE for
org.apache.commons.dbcp2.cpdsadapter.DriverAdapterCPDS.setConnectionProperties(null).
Thanks to Gary Gregory.
o DBCP-490:  The method
org.apache.commons.dbcp2.PoolingDriver.getConnectionPool(String) does not
tell you which pool name is not registered when it throws an exception.
Thanks to Gary Gregory.


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

http://commons.apache.org/dbcp/

On behalf of Apache Commons,
Gary Gregory


Apache Commons Text 1.4

2018-06-12 Thread Gary Gregory
The Apache Commons Team is pleased to announce the release of Apache
Commons Text 1.4.

The Apache Commons Text open source software library provides a host of
algorithms focused on working with strings and blocks of text.

Source and binary distributions are available for download from the Apache
Commons download site:
  http://commons.apache.org/proper/commons-text/download_text.cgi

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

Alternatively the release can be pulled via Maven:
  org.apache.commons
  commons-text
  1.4

The release notes can be reviewed at:
  http://www.apache.org/dist/commons/text/RELEASE-NOTES.txt

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

http://commons.apache.org/proper/commons-text/

This component requires Java 8.

Changes in this version include:

Fixed Bugs:
o TEXT-120:  StringEscapeUtils#unescapeJson does not unescape double quotes
and forward slash.
o TEXT-119:  Remove mention of SQL escaping from user guide.
o TEXT-123:  WordUtils.wrap throws StringIndexOutOfBoundsException when
wrapLength is Integer.MAX_VALUE. Thanks to Takanobu Asanuma.

Changes:
o TEXT-121:  Update Java requirement from version 7 to 8. Thanks to
pschumacher.
o TEXT-122:  Allow full customization with new API
org.apache.commons.text.lookup.StringLookupFactory.interpolatorStringLookup(Map, StringLookup, boolean).

Best regards,
Gary Gregory
on behalf of the Apache Commons community


[ANNOUNCEMENT] Apache Commons DBCP 2.4.0 Released.

2018-06-17 Thread Gary Gregory
The Apache Commons DBCP team is pleased to announce the release of Apache
Apache Commons DBCP 2.4.0-SNAPSHOT.

Apache Commons DBCP software implements Database Connection Pooling.

This is a minor release, including bug fixes and enhancements.

Changes in this version include:

Fixed Bugs:
o DBCP-484:  Connection leak during XATransaction in high load. Thanks to
Emanuel Freitas.
o DBCP-496:  Add support for pooling CallableStatements to the
org.apache.commons.dbcp2.cpdsadapter package. Thanks to Gary Gregory.

Changes:
o DBCP-492:  Drop Ant build. Thanks to Gary Gregory.
o DBCP-491:  Ensure DBCP ConnectionListener can deal with transaction
managers which invoke rollback in a separate thread. Thanks to Zheng Feng,
Gary Gregory.
o DBCP-494:  org.apache.commons.dbcp2.PStmtKey should make copies of given
arrays in constructors. Thanks to Gary Gregory.
o DBCP-495:  Remove duplicate code in
org.apache.commons.dbcp2.cpdsadapter.PStmtKeyCPDS. Thanks to Gary Gregory.
o DBCP-497:  Deprecate use of PStmtKeyCPDS in favor of PStmtKey. Thanks to
Gary Gregory.
o DBCP-498:  org.apache.commons.dbcp2.DataSourceConnectionFactory should
use a char[] instead of a String to store passwords. Thanks to Gary Gregory.
o DBCP-499:  org.apache.commons.dbcp2.managed.DataSourceXAConnectionFactory
should use a char[] instead of a String to store passwords. Thanks to Gary
Gregory.
o DBCP-500:  org.apache.commons.dbcp2.cpdsadapter.DriverAdapterCPDS should
use a char[] instead of a String to store passwords. Thanks to Gary Gregory.
o DBCP-501:  org.apache.commons.dbcp2.datasources.CPDSConnectionFactory
should use a char[] instead of a String to store passwords. Thanks to Gary
Gregory.
o DBCP-502:  org.apache.commons.dbcp2.datasources internals should use a
char[] instead of a String to store passwords. Thanks to Gary Gregory.
o DBCP-503:
org.apache.commons.dbcp2.datasources.InstanceKeyDataSourceFactory.closeAll()
does not close all. Thanks to Gary Gregory.

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

http://commons.apache.org/dbcp/


Re: [compress] Problem setting ZipEntry extended timestamps

2018-07-05 Thread Gary Gregory
Let's update to Java 8.

Gary

On Thu, Jul 5, 2018, 03:25 Stefan Bodewig  wrote:

> On 2018-07-04, Luís Filipe Nassif wrote:
>
> > I am trying to create a zip file saving its entries accessTime and
> > CreationTime, but when I open the zip file with 7zip, those dates are not
> > shown,
>
> ...
>
> > entry.setLastAccessTime(FileTime.fromMillis(System.currentTimeMillis()));
>
> ...
>
> > Any idea why it does not work?
>
> Commons Compress' ZipArchiveEntry inherits this method from ZipEntry. It
> was added in Java8 and as Commons Compress currently targets Java7 we
> haven't added any support for the new fields, yet.
>
> Basically our code base doesn't know you have set the values at all.
>
> The way you set the dates using Commons Compress' API is by creating a
> X5455_ExtendedTimestamp extra field and attaching it to the
> ZipArchiveEntry. If you want to be extra sure you create an additional
> X000A_NTFS extra field. I'm not sure which of the two (maybe both?)
> Java8 would use or which one 7z would consult (InfoZIP only uses the
> ExtendedTimestamp IIRC).
>
> Stefan
>
> -
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>
>


[ANNOUNCEMENT] Apache Commons Pool 2.6.0 released.

2018-07-07 Thread Gary Gregory
The Apache Commons Pool team is pleased to announce the release of Apache
Commons Pool 2.6.0.

Apache Commons Pool provides an object-pooling API and a number of object
pool implementations.
Version 2 contains a completely re-written pooling implementation compared
to the 1.x series.
In addition to performance and scalability improvements, version 2 includes
robust instance
tracking and pool monitoring.

- Version 2.6.0 requires Java 7 or above.
- Version 2.5.0 requires Java 7 or above.
- Version 2.0 requires 6 or above.

No client code changes are required to migrate from versions 2.0-2.3 to
version 2.4.3.
Users of version 1.x should consult the migration guide on the Commons Pool
web site.

NOTE: The MBean interfaces (DefaultPooledObjectInfoMBean,
GenericKeyedObjectPoolMXBean
  and GenericKeyedObjectPoolMXBean) exist only to define the attributes
and methods
  that will be made available via JMX. They must not be implemented by
clients as
  they are subject to change between major, minor and patch version
releases of
  Commons Pool. Clients that implement any of these interfaces may not,
therefore,
  be able to upgrade to a new minor or patch release without requiring
code
  changes.

This is a maintenance release.

Changes in version 2.6.0 include:

Fixed Bugs:
o POOL-337:  Ensure cancelled eviction tasks are removed from scheduler.
Thanks to Reinald Verheij.
o POOL-338:  GenericObjectPool constructor may throw an exception under
OSGi. Thanks to Michael C, Gary Gregory.
o POOL-324:
org.apache.commons.pool2.impl.GenericObjectPool.getFactoryType() throws
java.lang.ClassCastException. Thanks to Jay Xu, Gary Gregory.
o POOL-344:  Delete repeated call startEvictor. Thanks to Yulin Wang.

Changes:
o POOL-336:  GenericObjectPool's borrowObject lock if create() fails with
Error. Thanks to Wolfgang Glas.
o POOL-339:  Update optional library cglib from 3.2.5 to 3.2.6.
o POOL-341:  Update optional library asm-util from 6.0 to 6.1.1.
o POOL-342:  Update optional library asm-util from 6.1.1 to 6.2.

Note that Clirr reports one warning:
"Value of field DEFAULT_EVICTION_POLICY_CLASS_NAME is no longer a
compile-time constant."
The value is initialized as "public static final String
DEFAULT_EVICTION_POLICY_CLASS_NAME = DefaultEvictionPolicy.class.getName();"
The value should not change from one run to the next.

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

http://commons.apache.org/proper/commons-pool/

Gary Gregory
On behalf of the Apache Commons community


Re: [vfs] Is VFS2 suitable for production use?

2018-07-15 Thread Gary Gregory
VFS is stable and maintained. Feel free to provide PRs :-)

Gary

On Sun, Jul 15, 2018, 03:00 Jurrie Overgoor  wrote:

> Hello everyone,
>
> At the moment, my team is using Apache VFS2 in production. We use it for
> HTTP(S) and for (S)FTP. However, we are having some problems with this.
>
> SFTP is implemented using JSCH. That project now seems abandoned. I had
> to cook up my own fix for issue JSCH-111 (see
> https://github.com/Jurrie/jsch-111-bugfix).
>
> HTTP(S) is implemented using Apache Httpclient 3.x, which is end of life
> (see https://hc.apache.org/httpclient-3.x/). Its replacement is Apache
> HttpComponents, but that is not a plug-and-play direct replacement.
>
> That leads me to wonder whether Apache VFS2 is still under active
> development? Are there any plans to fix the above things? Is it still
> advised to use Apache VSF2 in production software?
>
> With kind regards,
>
> Jurrie
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>
>


[ANNOUCEMENT] Apache Commons DBCP Version 2.5.0

2018-07-16 Thread Gary Gregory
The Apache Commons DBCP team is pleased to announce the release of Apache
Apache Commons DBCP 2.5.0-SNAPSHOT.

Apache Commons DBCP software implements Database Connection Pooling.

This is a minor release, including bug fixes and enhancements and requires
Java 8 to support JDBC 4.2.

Changes in this version include:

New features:
o DBCP-506:  Support JDBC 4.2. Thanks to Gary Gregory.
o DBCP-479:  Support default schema in configuration. Thanks to Guillaume
Husta, Gary Gregory.

Fixed Bugs:
o DBCP-508:  Prepared statement keys should take a Connection's schema into
account. Thanks to Gary Gregory.
o DBCP-512:  Avoid exceptions when closing a connection in mutli-threaded
use case. Thanks to Gary Gregory.

Changes:
o DBCP-505:  Update Java requirement from version 7 to 8. Thanks to Gary
Gregory.
o DBCP-427:  Examines 'SQLException's thrown by underlying connections or
statements for fatal (disconnection) errors. Thanks to Vladimir Konkov,
Phil Steitz, Gary Gregory.
o DBCP-507:  Change default for fail-fast connections from false to true.
Thanks to Vladimir Konkov, Phil Steitz, Gary Gregory.
o DBCP-504:  Increase test coverage. Thanks to Bruno P. Kinoshita.
o DBCP-510:  Update Apache Commons Pool from 2.5.0 to 2.6.0. Thanks to Gary
Gregory.

Note that Clirr incorrectly reports one binary incompatible change because
it is not aware of Java 8 and default methods:
[ERROR] 7012: org.apache.commons.dbcp2.BasicDataSourceMXBean: Method
'public java.lang.String getDefaultSchema()' has been added to an interface

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

http://commons.apache.org/dbcp/

Download from
http://commons.apache.org/proper/commons-dbcp/download_dbcp.cgi

Gary Gregory


Re: [ANNOUNCEMENT] Apache Commons RNG 1.1 Released

2018-08-15 Thread Gary Gregory
Thank you Rob for your diligence and patience RM'ing this release through
so many RCs! :-)

Gary

On Wed, Aug 15, 2018 at 7:06 AM Rob Tompkins  wrote:

> The Apache Commons Team is pleased to announce the release of
> Apache Commons RNG 1.1.
>
>
> The Apache Commons RNG open source software library provides a collection
> of
> implementations of random numbers generators.
>
> Source and binary distributions are available for download from the Apache
> Commons download site:
>   http://commons.apache.org/proper/commons-rng/download_rng.cgi
>
>
> When downloading, please verify signatures using the KEYS file available at
> the above location when downloading the release.
>
>
> Alternatively the release components can be pulled via maven:
> 
>   org.apache.commons
>   commons-rng-client-api
>   1.1
> 
>   org.apache.commons
>   commons-rng-core
>   1.1
> 
>   org.apache.commons
>   commons-rng-sampling
>   1.1
> 
>   org.apache.commons
>   commons-rng-simple
>   1.1
> 
>
> The release notes can be reviewed at:
>   http://www.apache.org/dist/commons/rng/RELEASE-NOTES.txt
>
>
> For complete information on Commons RNG, including instructions on how to
> submit bug reports, patches, or suggestions for improvement, see the Apache
> Commons RNG website:
>   http://commons.apache.org/proper/commons-rng/
>
> Also consider viewing our userguide:
>   http://commons.apache.org/proper/commons-rng/userguide/index.html
>
>
> Best regards,
> Rob Tompkins
> on behalf of the Apache Commons Community
>
> -
> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
> For additional commands, e-mail: user-h...@commons.apache.org
>
>


Re: commons-validator and commons-beanutils 1.9.2

2018-08-29 Thread Gary Gregory
Probably at some point yes, in the meantime you can just update the
dependency in your POM.

Gary

On Wed, Aug 29, 2018 at 1:05 AM Greg Huber  wrote:

> Hello,
>
> Noticed that commons-validator uses commons-beanutils 1.9.2, there is 1.9.3
> available without the vulnerable commons-collections 3.2.1.  Although
> commons-validator uses commons-collections 3.2.2 (overrides the 3.2.1).  I
> still get the commons-beanutils 1.9.2.
>
> Will commons-validator be updated to use commons-beanutils 1.9.3?
>
> Cheers Greg
>


  1   2   3   4   5   6   7   >