Re: [io] OutOfMemory exception in IOUtils.toByteArray

2016-03-08 Thread James Carman
Do you need the entire thing in memory? What are you trying to do? You typically can't do much with Errors (which don't extend Exception, but Throwable) as it means a catastrophic event for the JVM. On Tue, Mar 8, 2016 at 7:50 AM Zishan J. wrote: > Hello, > > I am using

Re: [configuration] Apache Commons Configuration Version 2

2015-05-12 Thread James Carman
with a way people can clean themselves without water (thought I was done with my metaphor huh). On Sun, May 10, 2015 at 4:24 PM Phil Steitz phil.ste...@gmail.com wrote: On 5/10/15 9:10 AM, James Carman wrote: As do people who try to blow dry their hair while they are in the bathtub, but they don't

Re: [DBCP] Apparent deadlock related to getConnection

2015-04-14 Thread James Carman
You may want to consider something like Spring's JdbcTemplate class to avoid a lot of this. On Sunday, April 12, 2015, Shawn Heisey apa...@elyograg.org wrote: On 4/12/2015 12:43 PM, Phil Steitz wrote: On 4/12/15 10:31 AM, Shawn Heisey wrote: http://apaste.info/6pX Several methods,

Re: [POOL2] Pooling mutable objects

2015-02-09 Thread James Carman
Premature optimization. UUIDs aren't slow. On Monday, February 9, 2015, Matthew Hall mh...@mhcomputing.net wrote: On Sun, Feb 08, 2015 at 11:07:59AM +0100, Michael Osipov wrote: How would you propose to use it? I would still need a random number or do you recomment to use a static one

Re: [POOL2] Pooling mutable objects

2015-02-08 Thread James Carman
You aren't guaranteed for them not to collide. So, yes, it could happen. On Saturday, February 7, 2015, Michael Osipov 1983-01...@gmx.net wrote: Am 2015-02-06 um 17:14 schrieb James Carman: Try UUID.randomUUID().toString() rather than RandomStringUtils if you really want unique keys

Re: [POOL2] Pooling mutable objects

2015-02-08 Thread James Carman
On 8 February 2015 at 12:12, James Carman ja...@carmanconsulting.com javascript:; wrote: You aren't guaranteed for them not to collide. So, yes, it could happen. On Saturday, February 7, 2015, Michael Osipov 1983-01...@gmx.net javascript:; wrote: Am 2015-02-06 um 17:14 schrieb James

Re: [POOL2] Pooling mutable objects

2015-02-06 Thread James Carman
Or just let your IDE generate the methods. On Fri, Feb 6, 2015 at 9:05 AM, William Speirs wspe...@apache.org wrote: I'd think adding a UUID then overriding equals and hashCode would do the trick. To aid you in doing this, commons-lang has EqualsBuilder [1] and HashCodeBuilder [2], I highly

Re: Re: [POOL2] Pooling mutable objects

2015-02-06 Thread James Carman
. Februar 2015 um 16:47 Uhr Von: James Carman ja...@carmanconsulting.com An: Commons Users List user@commons.apache.org Betreff: Re: [POOL2] Pooling mutable objects Or just let your IDE generate the methods. On Fri, Feb 6, 2015 at 9:05 AM, William Speirs wspe...@apache.org wrote: I'd think

Re: Apache common pooling 2

2015-02-03 Thread James Carman
On Tue, Feb 3, 2015 at 5:07 PM, Matthew Huckaby matthew.huck...@gmail.com wrote: JC Perhaps you'd be more interested in a cache rather than a pool? If the intention is to share an SFTP session/client reference between threads, check-in and check-out could be important. I was assuming that

Re: Apache common pooling 2

2015-02-03 Thread James Carman
Perhaps you'd be more interested in a cache rather than a pool? On Tue, Feb 3, 2015 at 3:20 PM, Syed Mudassir syed.mudas...@gaiatv.in wrote: Guys, I have a question. I am using GenericKeyedObjectPool for pooling SFTP sessions. Suppose I have one session in the pool. Can this session

Re: commons pool benchmark issue

2013-09-30 Thread James Carman
Perhaps you would care to share your implementation with Commons Pool and help make the library better? On Mon, Sep 30, 2013 at 3:58 AM, Daniel Wu daniel.y@gmail.com wrote: Hi Thomas, Thanks a lot. For now, I have to use my own implementation which is 50 times faster than CP but lack of

Re: [dbcp] GenericObjectPool.borrowObject: Timeout waiting for idle object

2013-09-29 Thread James Carman
Try running FindBugs on your code (using something like Sonar or an IDE plugin). The rules you're going to be looking for would be these: http://findbugs.sourceforge.net/bugDescriptions.html#ODR_OPEN_DATABASE_RESOURCE On Sun, Sep 29, 2013 at 12:41 PM, Phil Steitz phil.ste...@gmail.com wrote:

Re: Apache Commons Pool performance issue

2013-09-05 Thread James Carman
Try printing out the location from the ProtectionDomain's CodeSource of one of the classes in pool. On Thursday, September 5, 2013, Phil Steitz wrote: On 9/5/13 9:58 AM, Programmer wrote: Thanks for the reply guys. I use 1.6 JAR in my classpath. Is there anyway I can verify the 'when

Re: Apache Commons Pool performance issue

2013-09-05 Thread James Carman
No problem. That's a very useful little trick for figuring out class loading issues. On Thursday, September 5, 2013, Programmer wrote: Thanks for the tip James. I was able to trace the class to com.bea.core.apache.commons.pool_1.3.0.jar :) -- View this message in context:

Re: Apache Commons in a Cloud IDE

2013-08-12 Thread James Carman
Any thoughts of granting some of us a license to this? :) On Mon, Aug 12, 2013 at 5:26 PM, Eric Cavazos ecava...@codenvy.com wrote: We have done a tutorial on using Apache Commons with Codenvy here: http://docs.codenvy.com/tutorials/apache-commons-file-upload/

Re: [proxy] Remove Remoting Providers in 2.x...

2013-07-29 Thread James Carman
Well, I wanted a broader audience, since it would impact users (if there are any). On Mon, Jul 29, 2013 at 7:10 AM, Benedikt Ritter brit...@apache.org wrote: Hi James, I guess this was supposed to go to the dev ML? Benedikt 2013/7/28 James Carman jcar...@savoirtech.com All, I would

Re: [proxy] Remove Remoting Providers in 2.x...

2013-07-29 Thread James Carman
wrote: Okay so you intended to send it to the dev ML and the user ML once? Because it appears that you've send it to the user ML twice instead ;-) Benedikt 2013/7/29 James Carman ja...@carmanconsulting.com Well, I wanted a broader audience, since it would impact users (if there are any

[proxy] Remove Remoting Providers in 2.x...

2013-07-28 Thread James Carman
All, I would doubt the remoting providers are really used by anyone, but we should probably ask before removing them. We currently support the following remoting protocols: - Burlap - Hessian - Jax-RPC - RMI - Session Beans Are there any objections to removing them? These technologies are

Re: [fileupload] Cancel FileUpload when FileSizeMax is exceeded

2013-01-29 Thread James Carman
) and not with servlets directly. This FileUploadFilter implements the javax.servlet.Filter interface. Best Regards - Von:James Carman jcar...@carmanconsulting.com An: Commons Users List user@commons.apache.org Datum: 28.01.2013

Re: [fileupload] Cancel FileUpload when FileSizeMax is exceeded

2013-01-28 Thread James Carman
The container itself has to stop this. Have you tried this: http://www.ryanchapin.com/fv-b-4-667/Adding-MultipartConfig-Configuration-to-web-xml-in-JBoss-6-x-for-a-Servlet-3-0-File-Upload-Servlet.html See if that helps. On Jan 25, 2013, at 6:18 AM, ku...@dakosy.de wrote: Hi All, I have

Re: [fileupload] Cancel FileUpload when FileSizeMax is exceeded

2013-01-28 Thread James Carman
directly. This FileUploadFilter implements the javax.servlet.Filter interface. Best Regards - Von:James Carman jcar...@carmanconsulting.com An: Commons Users List user@commons.apache.org Datum: 28.01.2013 12:09

Re: [compress] uncompress utility?

2012-12-20 Thread James Carman
You could perhaps use Commons VFS. It supports all the file types you mention and gives you a common API to deal with. On Thu, Dec 20, 2012 at 1:30 AM, Ryan McKinley ryan...@gmail.com wrote: I'm looking at options for how to take an archive file (zip,gz,tar,etc) and extract it to the file

Re: Where is OGNL's realy project site, apache or github or other?

2012-11-01 Thread James Carman
We have not released OGNL since it found its way to Apache Commons: http://svn.apache.org/repos/asf/commons/proper/ognl/tags/ The first Apache-released version will be 4.0. Feel free to download the source and build it. Let us know if you experience any issues with it. If you would like to

Re: [io] Are FileUtils and IOUtils thread safe?

2012-10-01 Thread James Carman
Would you have two different threads attempting to write to the same file? On Mon, Oct 1, 2012 at 12:55 PM, Yungwei Chen yung...@resolvity.com wrote: Specifically FileUtils.writeStringToFile(file, data, encoding, false), which in turn calls IOUtils.write(). Thanks. -Original

Re: [javaflow] Working with dynamic proxies

2012-06-11 Thread James Carman
InvocationHandlers don't implement the interface. You'd have to have the proxy instance itself. Sent from tablet device. Please excuse typos and brevity. On Jun 11, 2012 4:55 AM, George Georgovassilis g.georgovassi...@gmail.com wrote: Hello list, I am trying to suspend a call where the

Re: [vfs] How to resolve a share path to a FileObject

2012-06-11 Thread James Carman
Do you have all of the dependencies you need? Turn up logging to see what providers VFS is loading. In trunk it looks like the SMB stuff is in the sandbox. It requires JCIFS, it looks like. Do you have that? On Mon, Jun 11, 2012 at 8:28 AM, ldp l.dellipa...@reply.it wrote: I get the same

[DBCP] BasicManagedDataSource and Spring...

2012-04-27 Thread James Carman
I'm trying to use a BasicManagedDataSource inside FuseESB/ServiceMix using Spring's transaction management and Aries' provided transaction manager. I'm setting the transactionManager property of the BMDS, but I don't see my transactions actually committing. I see in:

Re: [vfs] FTPS

2012-04-23 Thread James Carman
The patch needs to go through jira for us to accept it. Please open a jira issue and attach it. Thanks! On Apr 23, 2012 11:34 AM, Jose Juan Montiel josejuan.mont...@gmail.com wrote: The patch... 2012/4/23 Jose Juan Montiel josejuan.mont...@gmail.com Hi, Did you figure this out? i

Re: [io] org.apache.commons.io.ThreadMonitor.class ?

2012-03-28 Thread James Carman
Since it's Apache licensed, feel free to copy it for your needs, though. :) On Mar 28, 2012 6:45 PM, Jörg Schaible joerg.schai...@gmx.de wrote: Hi Steve, Steve Cohen wrote: Someone has suggested that our team look at the Apache Thread Monitor as a way of timing out some classes that don't

Re: [Collections] Circular Buffer

2012-03-07 Thread James Carman
Does the header include a record size? On Mar 7, 2012 5:32 AM, manoj mokashi manojmoka...@gmail.com wrote: Sorry for always replying to the main thread, i have not subscribed to the list, so my in-reply-to headers are not correct. its more like a circular array i guess. i needed to parse a

Re: [Collections] Circular Buffer

2012-03-06 Thread James Carman
what exactly are you trying to do? Perhaps a circular buffer isn't what you're looking for. On Mar 6, 2012 1:48 AM, manoj mokashi manojmoka...@gmail.com wrote: The existing CircularFifoBuffer would suffice if it had an efficient get(index) method, which gets an element with the specified

Re: [Collections] Circular Buffer

2012-03-05 Thread James Carman
Does CircularFifoBuffer not suffice? On Mar 5, 2012 10:47 AM, manoj mokashi manojmoka...@gmail.com wrote: Hi, Recently i needed a circular buffer for parsing some binary data and thought maybe somebody else too finds it useful. It overwrites the previous stored data. i see there are

Re: Class metadata repository

2012-02-19 Thread James Carman
Chas, the scannotation library works quite well if you don't want to wait for us to finish up work on meiyo/classscan. Glad to hear from you again! On Sun, Feb 19, 2012 at 1:36 AM, Chas Honton c...@honton.org wrote: I need to find classes in a jar file marked with an @Entity annotation

Re: [lang] Advise needed for broken reflectionEquals in WebLogic 10.3.5

2011-07-28 Thread James Carman
If you're going to be enumerating the fields anyway, why not use an EqualsBuilder? On Thu, Jul 28, 2011 at 4:45 AM, Cancrinus, Bas cancrinu...@schiphol.nl wrote: Thanks for sharing your thoughts! I reflected on this issue again and I think that the excludeFields array is the root of my

Re: Help with change directory

2011-07-25 Thread James Carman
Try vfs On Jul 25, 2011 4:42 PM, Diane Baumgartner poindex...@yahoo.com wrote: I'm new to Apache Commons (3.0.1), and am writing a Java program to FTP a file on my local server to an FTP server on the same network. First, I'd like to make sure that changeWorkingDirectory() changes the

Re: [VFS] vfs2 provider guide

2011-07-21 Thread James Carman
Use the source! :-) Sent from tablet device. Please excuse typos and brevity. On Jul 21, 2011 7:49 PM, Alex Xin xinxi...@gmail.com wrote: Hi, I'd like to develop a VFS plugin to support Bluetooth OBEX FTP file management, I need to implement a VFS provider. Where I can find a getting

Re: [email] Email attachment is inline for some reason

2011-07-06 Thread James Carman
Are you sure you have a clean classpath? Sent from my Android device. Please excuse typos and brevity. On Jul 6, 2011 8:12 AM, David Hoffer dhoff...@gmail.com wrote: I've had another email failure this time it's usage with no attachment. I'll paste the code below. It's dropping the

Re: [pool] Smart (aka auto-configure) pools

2010-11-05 Thread James Carman
On Fri, Nov 5, 2010 at 10:47 AM, Phil Steitz phil.ste...@gmail.com wrote: We should probably take this discussion to the dev list at this point. +1 - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional

Re: [Primitives] Does anyone use this?

2010-11-02 Thread James Carman
Premature optimization with JDK5. I'd say stick to the JDK classes if you can and only try to beef up space/performance if you need to. On Tue, Nov 2, 2010 at 11:11 AM, Haswell, Joe josiah.d.hasw...@hp.com wrote: Consider using Gnu Trove (http://trove4j.sourceforge.net/). Joe H. | HP Software

Re: [Primitives] Does anyone use this?

2010-11-02 Thread James Carman
Yet another dependency to add to the mix. On Tue, Nov 2, 2010 at 1:17 PM, Cogen, David - 1008 - MITLL co...@ll.mit.edu wrote: From: jcar...@carmanconsulting.com [jcar...@carmanconsulting.com] On Behalf Of James Carman [ja...@carmanconsulting.com

Re: RE: [Primitives] Does anyone use this?

2010-11-02 Thread James Carman
My point was that the Jdk classes can do this with type safety already and box/inbox it for you automatically. If that works for you, then I wouldn't suggest adding another dependency to the mix. If you absolutely need the space/speed improvement , then by all means use it. Adding dependencies

Re: [io] is 2.0 on Maven?

2010-10-29 Thread James Carman
The confusion is probably because most folks assume we would be using the new group id which commons io (for some strange reason) did not. On Fri, Oct 29, 2010 at 7:51 AM, Niall Pemberton niall.pember...@gmail.com wrote: Its been there since the day after it was released - see:

Re: [io] is 2.0 on Maven?

2010-10-29 Thread James Carman
On Fri, Oct 29, 2010 at 9:07 AM, Niall Pemberton niall.pember...@gmail.com wrote: I believe it does, but for example if a put a redirection pom in for commons-io:commons-io:1.4 to org.apache.commons:commons-io:1.4 the problem is that people will already have the old 1.4 pom in their local

Re: [io] is 2.0 on Maven?

2010-10-29 Thread James Carman
On Fri, Oct 29, 2010 at 9:31 AM, Niall Pemberton niall.pember...@gmail.com wrote: We could, but I would suggest a slightly different approach. This has been discussed in the past and from memory there is more than one approach that could be taken. The problem with starting a discussion is

Re: [io] is 2.0 on Maven?

2010-10-28 Thread James Carman
I wonder if it doesn't auto-sync since we changed the groupId/artifactId? On Thu, Oct 28, 2010 at 8:38 PM, Paul Benedict pbened...@apache.org wrote: It's been released. Curiously too, i can't find it in the central Maven repo. On Thu, Oct 28, 2010 at 3:46 PM, Benson Margulies

Re: [VFS] Connecting to a FTP server hungs up (sample included)

2010-10-18 Thread James Carman
It works for me. Are you behind a firewall/proxy? On Mon, Oct 18, 2010 at 2:21 PM, J-Pro jpro@gmail.com wrote:  Good afternoon. Please help me solve my problem. I'm trying to download a file CBCP.TXT from ftp://ftp.microsoft.com:21/MISC;, but VFS hangs up after this log:   10-18

Re: [VFS][SOLVED] Connecting to a FTP server hungs up (sample included)

2010-10-18 Thread James Carman
from outside, but active FTP mode needs that to be. Sorry for disturbing you guys, the problem is solved. On 18.10.2010 22:02, James Carman wrote: It works for me.  Are you behind a firewall/proxy? On Mon, Oct 18, 2010 at 2:21 PM, J-Projpro@gmail.com  wrote:  Good afternoon. Please

Re: How can I get Commons-net-2.1 Source and Binaries

2010-10-14 Thread James Carman
Why does the site list it in the release notes? Do we need to move all of the jira issues to 2.2? On Oct 14, 2010 3:36 AM, Jörg Schaible joerg.schai...@gmx.de wrote: 陳雪傑 wrote: Hi all How can I get Commons-net-2.1 Source and Binaries? I want get publiced Commons-net-2.1 Source and

Re: [VFS][SFTP] Unable to navigate to directory

2010-09-15 Thread James Carman
I committed a patch a while ago in the FTP provider to have it support symbolic links better: https://issues.apache.org/jira/browse/VFS-196 Perhaps we need to do that with SFTP too? On Wed, Sep 15, 2010 at 11:52 AM, Ralph Goers ralph.go...@dslextreme.com wrote: So the data directory is a link

Re: persistent connection with https (Apache commons-httpClient 3.0)

2010-09-07 Thread James Carman
This is no longer the mailing list for HttpClient. Check out: http://hc.apache.org/httpclient-3.x/mail-lists.html On Tue, Sep 7, 2010 at 12:30 PM, vinod jadhav vinodjjad...@gmail.com wrote: Hi , I am using the Apache commons-httpclient 3.0 library. I have set the

Re: [vfs] Does VFS already has support for FTPS (FTP over SSL)?

2010-09-07 Thread James Carman
an FtpsProviderTestCase and verify that it works then I'll go ahead and apply this along with the test case. Ralph On Aug 9, 2010, at 5:31 PM, James Carman wrote: Actually, the issue is still listed as Open, so I doubt the patch has been applied. On Mon, Aug 9, 2010 at 6:58 PM, Steve

Re: [vfs] Does VFS already has support for FTPS (FTP over SSL)?

2010-09-07 Thread James Carman
... Thanks for the answer. James Carman wrote: Those people are probably monitoring this list.  This is the best way to reach them.  We prefer that the discussions happen on-list so that it's an open discussion that everyone can follow. On Tue, Sep 7, 2010 at 4:38 PM, J-Pro jpro@gmail.com

Re: [vfs] Does VFS already has support for FTPS (FTP over SSL)?

2010-09-07 Thread James Carman
Patch applied. Check out trunk to get the changes. On Tue, Sep 7, 2010 at 5:03 PM, James Carman ja...@carmanconsulting.com wrote: Either way, you're having the discussion in the right place. Remember, this stuff is all done by volunteers.  We try to be responsive, but sometimes life gets

Re: [Logging] : Can commons.logging be used without log4j

2010-08-09 Thread James Carman
Sounds like a classloader configuration issue. OC4J probably has a version of log4j on their classpath and it's bleeding over into the classpath of your webapps. Is there a webapp-classpath-first setting somewhere? On Mon, Aug 9, 2010 at 10:06 AM, Jasmin Mehta jasmin_me...@nexweb.org wrote:

Re: [vfs] Does VFS already has support for FTPS (FTP over SSL)?

2010-08-09 Thread James Carman
Actually, the issue is still listed as Open, so I doubt the patch has been applied. On Mon, Aug 9, 2010 at 6:58 PM, Steve smsi...@gmail.com wrote: Wools! Looks like was included in the 2.0 build back in 2009. https://issues.apache.org/jira/browse/VFS-264 S On Aug 9, 2010, at 3:59 PM,

Re: [beanutils] beanutils library cannot invoke the correct accessor

2010-06-07 Thread James Carman
Or, you could possibly use MethodUtils to find the best matching setter method. On Mon, Jun 7, 2010 at 2:53 AM, henrib hen...@apache.org wrote: I gather you need to invoke get/set methods through signature introspection rather than JavaBean spec. I dont know if this is possible for you to use

Re: [beanutils] beanutils library cannot invoke the correct accessor

2010-06-07 Thread James Carman
with that library, instead of enhancing the beanutils library. On 2010-06-07, at 5:49 AM, James Carman wrote: Why not have another calculated property (myPropertyAsB) that can do the translation from ClassTypeB to/from ClassTypeA and store it into myProperty?  That way, you don't have to modify

Re: [beanutils] beanutils library cannot invoke the correct accessor

2010-06-07 Thread James Carman
On Mon, Jun 7, 2010 at 1:05 PM, Dimitris Tsitses 4.biz@gmail.com wrote: Hi James, actually replacing: BeanUtils.setProperty(myBeanInst, myProperty, instanceOfClassTypeX); with: MethodUtils.invokeMethod(myBeanInst, myPropertySetter, instanceOfClassTypeX); works like a dream, thanks for

Re: [beanutils] beanutils library cannot invoke the correct accessor

2010-06-07 Thread James Carman
) {               this.myProperty = Converter.convertBtoA(anObj);       } } On 2010-06-07, at 2:05 PM, James Carman wrote: On Mon, Jun 7, 2010 at 1:05 PM, Dimitris Tsitses 4.biz@gmail.com wrote: Hi James, actually replacing: BeanUtils.setProperty(myBeanInst, myProperty

Re: [beanutils] beanutils library cannot invoke the correct accessor

2010-06-06 Thread James Carman
That violates the JavaBeans specification. myProperty is supposed to be of one type only. On Sat, Jun 5, 2010 at 10:02 PM, Dimitris Tsitses 4.biz@gmail.com wrote: Hi all, I'm trying to do something really simple but I can't seem to figure it out, I hope someone can help. I have a simple

Re: Problems with old and new group id

2010-04-15 Thread James Carman
I would suggest you bring this up to the Velocity community: http://velocity.apache.org/contact.html What we would hopefully do here in Apache Commons is that we would change the package name so that there are no naming collisions even if both jars are on the classpath. On Thu, Apr 15, 2010 at

Re: Problems with old and new group id

2010-04-15 Thread James Carman
if there is a correct one available, right? And this was just an example. There are lot of other dependencies that create the same problem. /Ludwig -Original Message- From: jcar...@carmanconsulting.com [mailto:jcar...@carmanconsulting.com] On Behalf Of James Carman Sent: den 15 april 2010 16:21

Re: Problems with old and new group id

2010-04-15 Thread James Carman
: jcar...@carmanconsulting.com [mailto:jcar...@carmanconsulting.com] On Behalf Of James Carman Sent: den 15 april 2010 16:34 To: Commons Users List Subject: Re: Problems with old and new group id Well, I'd play around with doing excludes in your maven setup. On Thu, Apr 15, 2010 at 10:31 AM

Re: [LANG] incompatibility of jar with svn

2010-04-15 Thread James Carman
The Commons Lang library isn't intended to be mixed and matched between releases like that. The package is released as a whole. You can't expect to pick stuff out of different releases and then just combine them and somehow expect them to work. The reason the package name is changing is so that

Re: [LANG] incompatibility of jar with svn

2010-04-15 Thread James Carman
the lang3. So the code that depends on the old stuff don't work. -- Wellington B. de Carvalho On Thu, Apr 15, 2010 at 12:27 PM, James Carman ja...@carmanconsulting.comwrote: The Commons Lang library isn't intended to be mixed and matched between releases like that.  The package is released

Re: [LANG] incompatibility of jar with svn

2010-04-15 Thread James Carman
No, they're not supposed to be the same. That's why we changed the package name so that we have more leeway to change things. We don't guarantee backward (or binary) compatibility between major revisions. On Thu, Apr 15, 2010 at 12:44 PM, Tom Brito brito@gmail.com wrote: The trunk and the

Re: [LANG] incompatibility of jar with svn

2010-04-15 Thread James Carman
On Thu, Apr 15, 2010 at 12:37 PM, Paul Benedict pbened...@apache.org wrote: Great, Thanks James and sebb. Then all a user needs to do is declare both jars in a POM and things should be fine. Well, yes, once there's a lang3 release in maven (or you build it on your own into your local repo).

Re: [LANG] incompatibility of jar with svn

2010-04-15 Thread James Carman
Carvalho On Thu, Apr 15, 2010 at 12:27 PM, James Carman ja...@carmanconsulting.comwrote: The Commons Lang library isn't intended to be mixed and matched between releases like that.  The package is released as a whole.  You can't expect to pick stuff out of different releases and then just

Re: Connection reset exceptions

2010-04-05 Thread James Carman
you've tried supplying a validation query? On Mon, Apr 5, 2010 at 4:13 PM, Bruno Melloni bruno.mell...@chickasaw.net wrote: I started getting these on a long-running command-line application, with Spring, SQL Server and DBCP for the DataSource.   What I found by googling seems to point

Re: Connection reset exceptions

2010-04-05 Thread James Carman
...@carmanconsulting.com [mailto:jcar...@carmanconsulting.com] On Behalf Of James Carman Sent: Monday, April 05, 2010 3:17 PM To: Commons Users List Cc: Bruno Melloni Subject: Re: Connection reset exceptions you've tried supplying a validation query? On Mon, Apr 5, 2010 at 4:13 PM, Bruno Melloni bruno.mell

Re: International characters [FTPClient / VFS]

2010-03-25 Thread James Carman
File a JIRA. On Thu, Mar 25, 2010 at 6:21 AM, Tom t...@tbee.org wrote: But there should be a better way. I notice that FileZilla automatically switches to UTF8, so I assume the FTP server informs the client what it is using? And that common-net FTP should be modified? Tom

Re: FTP findFiles vs FILE bug

2010-03-17 Thread James Carman
and appendFileStream with the same fix. I assume that the FTP server of Alfresco is the culprit. Tom On 2010-03-16 19:26, James Carman wrote: I would say open up a JIRA and someone will take a look at it.  Make sure you attach your patch and check the box that says you allow the ASF to use your code

Re: FTP findFiles vs FILE bug

2010-03-16 Thread James Carman
I would say open up a JIRA and someone will take a look at it. Make sure you attach your patch and check the box that says you allow the ASF to use your code (or whatever it says). On Tue, Mar 16, 2010 at 2:23 PM, Tom t...@tbee.org wrote: What are the chances of this patch (I can give you the

Re: FTP findFiles vs FILE

2010-03-15 Thread James Carman
Can you not just use getChildren()? On Mon, Mar 15, 2010 at 10:54 AM, Tom t...@tbee.org wrote: Slowly making progress on using VFS for FTP access after all kinds of exception that did not make sense. Anyhow, I have a tree that shows a directory structure. If I specify file:///...   the

Re: FTP findFiles vs FILE

2010-03-15 Thread James Carman
supports FileSelection... Tom On 2010-03-15 16:03, James Carman wrote: Can you not just use getChildren()? On Mon, Mar 15, 2010 at 10:54 AM, Tomt...@tbee.org  wrote: Slowly making progress on using VFS for FTP access after all kinds of exception that did not make sense. Anyhow, I have

Re: FTP findFiles vs FILE

2010-03-15 Thread James Carman
the childeren correctly. On 2010-03-15 17:41, Tom wrote: On 2010-03-15 16:03, James Carman wrote: Can you not just use getChildren()? On Mon, Mar 15, 2010 at 10:54 AM, Tomt...@tbee.org    wrote: Slowly making progress on using VFS for FTP access after all kinds of exception that did not make

Re: [dbcp] Re: Oracle session excess over maxActive

2010-03-10 Thread James Carman
Have you considered using Spring's JDBC support, or something like it? What you need to do is write/use one piece of code that makes sure you manage your connections, etc. correctly and use that wherever you want to do JDBC stuff. On Wed, Mar 10, 2010 at 12:10 AM, sic sic_1...@naver.com wrote:

Re: expected behavior of the DBCP (when a db session is killed)

2010-02-24 Thread James Carman
Do you have the validation query set? On Wed, Feb 24, 2010 at 7:12 AM, co...@sapo.pt wrote: Good morning, What is the expected behavior of the DBCP when I try to get a connection from the pool and the connection is invalid (eg a session kill was made in the database)? Is it identified

Re: expected behavior of the DBCP (when a db session is killed)

2010-02-24 Thread James Carman
it then, i.e network could break after you picked the connection. To handle this case, you can use the Statement.setTimeout(), but I did not test that yet. Hope this helps, Cyrille - Mail Original - De: James Carman ja...@carmanconsulting.com À: Commons Users List user

Re: How to use DBCP in J2SE environment

2009-12-15 Thread James Carman
pooling with JPA goodness. On Mon, Dec 14, 2009 at 11:41 AM, James Carman ja...@carmanconsulting.comwrote: I would recommend using something like Spring's jdbc support, so that this stuff happens for you automatically if you want to do straight JDBC.  You can use DBCP with it, too! On Mon

Re: How to use DBCP in J2SE environment

2009-12-14 Thread James Carman
I would recommend using something like Spring's jdbc support, so that this stuff happens for you automatically if you want to do straight JDBC. You can use DBCP with it, too! On Mon, Dec 14, 2009 at 12:45 AM, Pawan Singh pa...@pinger.org wrote: Hi Can someone with Apache DBCP expertise

Re: Determine if an object is in a list

2009-12-01 Thread James Carman
I was looking for that. It used to be in collections I believe. On Tue, Dec 1, 2009 at 10:43 AM, Brent Worden brent.wor...@gmail.com wrote: On Mon, Nov 30, 2009 at 10:38 PM, Guy Rouillier guyr-...@burntmail.com wrote: James Carman wrote: It's not that hard to create your own predicate

Re: Determine if an object is in a list

2009-11-30 Thread James Carman
It's not that hard to create your own predicate that does what you want. We did that for our project. Here are the two classes we use (the first one is a useful superclass for property value-based predicates): public abstract class AbstractPropertyValuePredicate implements Predicate {

Re: Determine if an object is in a list

2009-11-30 Thread James Carman
I don't know if it would get through (I'd probably vote against it and I'm the author). We don't want to get to beanutilsy in collections. Collections only provides the framework. On Mon, Nov 30, 2009 at 11:38 PM, Guy Rouillier guyr-...@burntmail.com wrote: James Carman wrote: It's

Re: java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Hex.encodeHexString([B)Ljava/lang/String;

2009-11-17 Thread James Carman
please help me on this. Thanks, Srini. On Tue, Nov 10, 2009 at 4:25 PM, James Carman ja...@carmanconsulting.comwrote: It's obviously a classpath issue.  Throw this code somewhere where it can be executed in your environment where you're having troubles: final URL loc

Re: DBCP deadlock

2009-11-12 Thread James Carman
That's the version of commons-dbcp (which is current). What version of commons-pool are you using? On Thu, Nov 12, 2009 at 4:11 AM, Marc Logemann m...@logemann.org wrote: Uhh forgot mention this. Seems i am using 1.2.2 ... quite old isnt it? I am using Maven Central for JAR management and

Re: java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Hex.encodeHexString([B)Ljava/lang/String;

2009-11-10 Thread James Carman
It's obviously a classpath issue. Throw this code somewhere where it can be executed in your environment where you're having troubles: final URL loc = Hex.class.getProtectionDomain().getCodeSource().getLocation(); System.out.println(Found jar file at + loc); final JarFile jarFile = new

Re: File Upload

2009-10-14 Thread James Carman
The parameters from your form aren't sent as usual when you use multipart form data. They are sent as parts. So, as you iterate through the FileItem objects from your upload, some of them will be form fields. You can check by calling isFormField(). You can call getFieldName() to get the field

Re: Inherent problem with Java classes.

2009-10-07 Thread James Carman
This should get you started: http://commons.apache.org/vfs/api.html You'll want to make sure you've got everything you need on the classpath so that all of the file system types you need are enabled. On Wed, Oct 7, 2009 at 1:53 PM, Alan Grimes agri...@speakeasy.net wrote: There's an inherent

Re: Inherent problem with Java classes.

2009-10-07 Thread James Carman
Grimes agri...@speakeasy.net wrote: James Carman wrote: This should get you started: http://commons.apache.org/vfs/api.html You'll want to make sure you've got everything you need on the classpath so that all of the file system types you need are enabled. Thanks much, I guess i have

Re: FTP library.

2009-10-06 Thread James Carman
Have you tried Commons VFS? It might be easier. On Tue, Oct 6, 2009 at 11:52 AM, Alan Grimes agri...@speakeasy.net wrote: I've been trying to grok the NET/FTP library for several hours now and I've only met with frustration so far. It's really quite remarkable how well the documentation

Re: FTP library.

2009-10-06 Thread James Carman
On Tue, Oct 6, 2009 at 12:12 PM, Alan Grimes agri...@speakeasy.net wrote: James Carman wrote: Have you tried Commons VFS?  It might be easier. No, I'm basically groping in the dark. I put ftp into google, and net/ftp appears to be the most high-profile project from the apache foundation

Re: [VFS] Minimum Java version

2009-08-19 Thread James Carman
Are they going to change the package name? On Wed, Aug 19, 2009 at 10:18 AM, Ralph Goersralph.go...@dslextreme.com wrote: Currently the minimum Java version for VFS 2.0 is 1.4.  VFS 2.0 has not been released and the developers are considering making the minimum version JDK 5. We are interested

Re: [VFS] Minimum Java version

2009-08-19 Thread James Carman
for 1.0 was 1.3, although it isn't clear that that was correct. The minimum JDK for 2.0 has already been changed to 1.4 since some of the code actually required that version to run. Ralph On Aug 19, 2009, at 7:24 AM, James Carman wrote: Are they going to change the package name? On Wed

Re: [VFS] Minimum Java version

2009-08-19 Thread James Carman
AM, James Carman wrote: What about the maven2 group/artifact id? On Wed, Aug 19, 2009 at 10:34 AM, Ralph Goersralph.go...@dslextreme.com wrote: The packages haven't been changed so far. But this would definitely have to be considered whether we would want to take on the package renaming

Re: Commons Email : Newbie question attachment recieved in plantext?

2009-08-19 Thread James Carman
Have you tried using HtmlEmail? http://commons.apache.org/email/api-release/org/apache/commons/mail/HtmlEmail.html On Wed, Aug 19, 2009 at 10:59 PM, Ashika Umanga Umagiliyaauma...@biggjapan.com wrote: Greetings all, I use following code to send emails with attachment.But I recieve the email

Re: DBCP and informix issues!

2009-08-18 Thread James Carman
You need to allow access to the underlying connection: http://commons.apache.org/dbcp/configuration.html Search for underlying, there's a code example. On Tue, Aug 18, 2009 at 2:57 PM, Gerardo Velezjgerardo.ve...@gmail.com wrote: Hi! I've been working around a web application using java +

Re: Does commons-configuration v1.6 work with JREv1.5? [Commons]

2009-08-12 Thread James Carman
It's not compiled with target=1.6. If you look at the manifest, it uses the same target as commons-parent-11, 1.3: X-Compile-Source-JDK: 1.3 X-Compile-Target-JDK: 1.3 It was compiled with a 1.4 Sun JDK: Created-By: 1.4.2_18 (Sun Microsystems Inc.) Build-Jdk: 1.4.2_18 So, it should be 1.5

Re: Re : Re : Convert List to Map

2009-06-13 Thread James Carman
CollectionUtils.toMap(CollectionC input, TransformerC,K keyTransformer, TransformerC,V valueTransformer) De : James Carman ja...@carmanconsulting.com À : Commons Users List user@commons.apache.org Envoyé le : Vendredi, 12 Juin 2009, 17h27mn 03s Objet : Re: Re

Re: TelnetClient in common.net v2.0

2009-05-27 Thread James Carman
On Wed, May 27, 2009 at 2:48 AM, Dale Harris itsupp...@martinjonkersmotors.com.au wrote: Hi, I have solved my issue.  I had to set the SocketFactory and create a socket with the proxy turned off.  It would be nice to add hints like that to the documentation.  Maybe it should default to no

  1   2   >