Re: [digester] Multiple paths mapped to one object

2014-03-12 Thread Simone Tripodi
mone.trip...@gmail.com [mailto:simone.trip...@gmail.com] Im Auftrag > von Simone Tripodi > Gesendet: Donnerstag, 6. März 2014 16:43 > An: Commons Users List > Betreff: Re: [digester] Multiple paths mapped to one object > > Hi Jan, > could you submit a testcase, please? > I

Re: [digester] Multiple paths mapped to one object

2014-03-10 Thread Simone Tripodi
ad/objectcreate-test.zip > > I didn't comment it at all, but tried to give it speaking names. > Looking forward for your feedback. > > Thank you for your help so far! > > Jan > > -Ursprüngliche Nachricht- > Von: simone.trip...@gmail.com [mailto:simone.trip

Re: [digester] Multiple paths mapped to one object

2014-03-06 Thread Simone Tripodi
The @SetProperty attribute "pattern" is mandatory. > > Maybe this is something version dependent? I use > > org.apache.commons > commons-digester3 > 3.2 > > > Jan > > -Ursprüngliche Nachricht- > Von: sim

Re: [digester] Multiple paths mapped to one object

2014-03-06 Thread Simone Tripodi
Hi Jan, there's no kind of magic, just annotate the class fields as: @ObjectCreate.List(value = { @ObjectCreate(pattern = "*/HTABLE"), @ObjectCreate(pattern = "*/VTABLE"), @ObjectCreate(pattern = "*/XTABLE") }) public class Table { @SetProperty // you can omit the 'at

Re: [digester] XML rules, set-properties-rule, and ignoring missing properties

2014-02-28 Thread Simone Tripodi
Hi Paul, thanks a lot for reporting, very appreciated. Can you fill a JIRA issue for that? As a Digester best practice, I suggest you to not go through the XML rules definition but, if you need a more compact way to express rules, refer to rules binder, which is pretty faster than mapping the XML

Re: [digester] Annotations handled multiple times

2013-05-28 Thread Simone Tripodi
Hi Lars, please apologize for the late reply - could you please submit a testcase that proves the bug and fill an issue on JIRA? Many thanks in advance, all the best! -Simo http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/simonetripodi http://www.

Re: [fileupload] - Get digest on the fly

2013-04-03 Thread Simone Tripodi
Hola Francisco! sounds a nice feature to be added in next release, patches are welcome!!! Hasta pronto! -Simo http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/simonetripodi http://www.99soft.org/ On Wed, Apr 3, 2013 at 3:05 PM, Francisco Carried

[ANN] Apache Commons-FileUpload 1.3 released

2013-03-27 Thread Simone Tripodi
The Apache Commons team is pleased to announce the Apache Commons-FileUpload 1.3 release! The FileUpload component provides a simple yet flexible means of adding support for multipart file upload functionality to servlets and web applications. Changes in this version include (you can download the

Re: [fileupload] Expected encoding for Content-disposition 'filename' parameter

2013-03-14 Thread Simone Tripodi
o check conformance to the rfc2047 when I have some time, > great work > El mar 12, 2013 12:37 p.m., "Simone Tripodi" > escribió: > >> Hi Jaime, >> >> FILEUPLOAD-199 has been fixed on trunk, do you have the chance to give >> a try with current deve

Re: [fileupload] Expected encoding for Content-disposition 'filename' parameter

2013-03-12 Thread Simone Tripodi
Hi Jaime, FILEUPLOAD-199 has been fixed on trunk, do you have the chance to give a try with current development version, by recompiling it by yourself? Many thanks in advance, all the best! -Simo http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/si

Re: [digester] wildcard in plugin rules

2013-02-21 Thread Simone Tripodi
Hi Lianna, please apologise for the late reply - I am quiet busy at work during these months. The sample you provided is not clear to me, there are details I can't immagine how they are implemented, I suggest you anyway to have a look at the TestCase implementation I gave for you[1], both tests p

Re: Apache Commons Configuration C/C++ version

2012-11-15 Thread Simone Tripodi
Ni hao Huangs, AFAIK unfortunately there's not official Apache Commons-Configuration port in C/C++, hopefully someone in the net created it but there's no effort from Apache Commons people. good luck! -Simo http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twi

Re: SSL Self-signed certificate problem JDK1.5

2012-09-10 Thread Simone Tripodi
Hi Susanta, The commons-httpclient is no longer maintained as commons component, it has a new home at HTTPComponents in ASF - I suggest you posting the question in the proper ML[1]. HTH, -Simo [1] http://hc.apache.org/httpclient-3.x/mail-lists.html http://people.apache.org/~simonetripodi/ http:

Re: [VFS] SCM File System Support?

2012-08-30 Thread Simone Tripodi
I like the idea! while for git there's Jgit[1] available - EPL licensed that's ALv2 license compatible - for svn the only pure svn java library that I know is svnkit which has a more restrictive TMate license[2] and I am not sure it is ALv2 compatible since not mentioned in category A license[3].

[net] javax.net.ssl.SSLException: Unsupported record version Unknown-48.48

2012-08-23 Thread Simone Tripodi
Hi all guys, During an FTP upload to an FTPS server, I stumbled to a problem another user had time ago[1], but at that time no solution was provided - and I was not able to find the a working configuration. The issue I have is the whole FTP protocol goes well untile trying to store a local file t

Re: Apache commons validator, bean properties to validate should all be string?

2012-08-20 Thread Simone Tripodi
I would suggest you to have a look at Apache BVal[1] for Bean Validation - it is a JSR303 implementation - that sounds more appropriate for your use case. HTH, -Simo [1] http://bval.apache.org/ http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/simo

Re: errors parsing soap

2012-07-25 Thread Simone Tripodi
Hi Terry, could you share please your Digester configuration, please? That would be easier for me to provide feedbacks! TIA, all the best, -Simo http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/simonetripodi http://www.99soft.org/ On Wed, Jul 25

[ANN] Apache Commons DbUtils 1.5 Released!

2012-07-21 Thread Simone Tripodi
Hi all, The Apache Commons Team is pleased to announce the immediate availability of Apache Commons DbUtils 1.5! The Apache Commons-DbUtils package is a set of Java utility classes for easing JDBC development, version 1.5 contains a number of improvements and bug fixes: Bug [DBUTILS-73] - .Ba

Re: Digester crashes in run mode and succeeds with java debugger

2012-07-16 Thread Simone Tripodi
Hi Stepan, I guess that in debug mode, inside your IDE JVM, the invoked method is public void setFf(String date); OTOH, when running from console, log clearly show that JVM invokes public void setFf(Date date); You have two options: * drop the Date argument support (less good, IMHO); * Rely o

Re: [digester] Reading in Enums

2012-07-06 Thread Simone Tripodi
Hi Neil, apologize for the late reply - the Digester relies on BeanUtils to perform text to Java object unmarshalling, so for your enumeration(s) type you have to plug the needed converter. Have a look at "Data Type Conversions"[1] to understand how to convert the extracted XML body text to OneDB

Re: [digester3] - can DigesterLoader instance be shared?

2012-03-14 Thread Simone Tripodi
Thanks a lot for the feedbacks Torsten, as I commented in the issue, it would be really helpful if you could attach a testcase to reproduce the issue, in order to looking forward to a possible fix. Many thanks in advance! -Simo http://people.apache.org/~simonetripodi/ http://simonetripodi.livejo

Re: parse xml Tag with same attributes

2012-03-13 Thread Simone Tripodi
Hi Ramin, I would really like to help you but apologize, it is really hard for me reading that code embedded in email - could you please paste somewhere such as pastebin/gist? TIA, -Simo http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/simonetripod

Re: [digester3] - can DigesterLoader instance be shared?

2012-03-13 Thread Simone Tripodi
Hi Torsten, yes, a configured loader instace can be shared across multiple components in the application, just create new Digester instance every time you have to perform a parse (or put them in a pool of digesters to save resources) HTH, -Simo http://people.apache.org/~simonetripodi/ http://simo

Re: Please don't update public site on SVN

2012-03-09 Thread Simone Tripodi
ch 2012 10:08, Simone Tripodi wrote: >> Hi all, >> I asked INFRA to enable SvnPubSub (see INFRA-4513) they asked to wait >> on updating the site until they will have few infra issues solved. > > Wrong list; INFRA-4513 is about Cocoon. > >> TIA, >> -Simo &g

Please don't update public site on SVN

2012-03-09 Thread Simone Tripodi
Hi all, I asked INFRA to enable SvnPubSub (see INFRA-4513) they asked to wait on updating the site until they will have few infra issues solved. TIA, -Simo http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/simonetripodi http://www.99soft.org/ --

Re: [DbUtils] Could AsyncQueryRunner be a wrapper around a QueryRunner?

2012-02-11 Thread Simone Tripodi
Hi Moandji, the ML is not the right place where attaching patches, can you please fill an issue on JIRA? TIA! -Simo http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/simonetripodi http://www.99soft.org/ On Sat, Feb 11, 2012 at 8:53 AM, Moandji E

[ANNOUNCE] Apache Commons Validator-1.4.0 released!

2012-02-03 Thread Simone Tripodi
The Apache Commons PMC is pleased to announce the Apache Commons Validator-1.4.0 release! The Apache Commons Validator component provides the building blocks for both client side validation and server side data validation. Changes in this version include: New features: o New generic CodeValidato

Re: [DbUtils] Returning the newly-generated primary key after an insert

2012-02-01 Thread Simone Tripodi
> Thanks! I should be able to make some time to make any necessary changes, > like adding JavaDoc, a few more unit tests, etc. > > Moandji thanks, that would be really appreciated! best, -Simo http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/simone

Re: [DbUtils] Returning the newly-generated primary key after an insert

2012-01-31 Thread Simone Tripodi
Hi Moandji, I had a quick look at the patch and IMHO it looks good. I assigned the issue to Bill who's more deep inside DbUtils than me :) All the best and thanks for contributing! -Simo http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/simonetripo

Re: [DbUtils] Returning the newly-generated primary key after an insert

2012-01-29 Thread Simone Tripodi
Hi Bill, we could manage at least the generated keys, using Statement#getGeneratedKeys()[1], requiring a non null ResultSetHandler. To not break APIs backward compatibility, that could be a new set of APIs... WDYT? best, -Simo [1] http://docs.oracle.com/javase/6/docs/api/java/sql/Statement.html

Re: [dbutils] Mapping from JPA annotations

2012-01-19 Thread Simone Tripodi
On Thu, Jan 19, 2012 at 9:34 PM, Gary Gregory wrote: > On Thu, Jan 19, 2012 at 3:32 PM, Simone Tripodi > wrote: > >> I personally use MyBatis[1] - which is DbUtils with superpowers >> > > MyBatis does not have super powers, you have super powers Simo ;) > lol, my

Re: [dbutils] Mapping from JPA annotations

2012-01-19 Thread Simone Tripodi
I personally use MyBatis[1] - which is DbUtils with superpowers -Simo [1] http://www.mybatis.org http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/simonetripodi http://www.99soft.org/ On Thu, Jan 19, 2012 at 9:28 PM, Moandji Ezana wrote: > On 1

Re: [dbutils] Mapping from JPA annotations

2012-01-19 Thread Simone Tripodi
Hi, from the commons-dbutils HomePage there is a statement: +--+ DbUtils is not: * An Object/Relational bridge - there are plenty of good O/R tools already. DbUtils is for developers looking to use JDBC without all the mundane pieces. * A Data Access Object (DAO)

Re: [cli] - how to use CLI for Java like properties

2011-12-26 Thread Simone Tripodi
NI-hao, I think you misinterpreted the argument creation, just declare the dynamic option once: Option property = OptionBuilder.withArgName( "property=value" ) .hasArgs(2) .withValueSeparator() .withD

[ANNOUNCE] Apache Commons Digester 3.2 released!

2011-12-14 Thread Simone Tripodi
The Apache Commons team is pleased to announce the Apache Commons Digester 3.2 release! The Apache Commons Digester package lets you configure an XML to Java object mapping module which triggers certain actions called ruleswhenever a particular pattern of nested XML elements is recognized. The Apac

Re: [ANNOUNCEMENT] Apache Commons Codec 1.6 is now available

2011-12-07 Thread Simone Tripodi
congrats Gary!!! all the best, -Simo http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/simonetripodi http://www.99soft.org/ On Wed, Dec 7, 2011 at 6:53 PM, Gary Gregory wrote: > The Commons Codec team is pleased to announce the commons-codec-1.6

[net] GridFTP

2011-12-07 Thread Simone Tripodi
Hi all guys, is it possible to use the [net] client for the gsiftp protocol? Many thanks in advance, all the best! Simo http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/simonetripodi http://www.99soft.org/ --

Re: Enumeration value to a method call

2011-10-30 Thread Simone Tripodi
Hi Luciano, first, I suggest you prefixing your messages with the component id, [digester] in this case, otherwise you risk nobody pays attention to your mail ;) Can you give me a more wide overview of your case please? Your scenario it's not so clear to me and I cannot give you more hints. TIA,

[ANNOUNCEMENT] Apache Commons Digester 3.1 released!

2011-10-29 Thread Simone Tripodi
The Apache Commons community is pleased to announce the Apache Commons Digester 3.1 release! The Apache Commons Digester package lets you configure an XML to Java object mapping module which triggers certain actions called rules whenever a particular pattern of nested XML elements is recognized.

Re: Digester rules problem.

2011-10-06 Thread Simone Tripodi
e used something > like "response/attribute[@name='ip' ]"). > Is there any Rule implementation about this specific topic? > > > Maurizio Cucchiara > > > > On 6 October 2011 09:40, Simone Tripodi wrote: >> Hi Eric, >> I can provide you the

Re: Digester rules problem.

2011-10-06 Thread Simone Tripodi
Hi Eric, I can provide you the solution but I'll be busy for the whole morning. Please wait I'll send you the hints ASAP. All the best, Simo http://people.apache.org/~simonetripodi/ http://www.99soft.org/ On Thu, Oct 6, 2011 at 5:02 AM, Eric Chow wrote: > Hello, > > > > > >    10.70.0.2 > >  

Re: problem with SetPropertyRule

2011-09-26 Thread Simone Tripodi
gt; - Tushar > > > ____ > From: Simone Tripodi > To: Commons Users List > Sent: Sunday, 25 September 2011 8:53 PM > Subject: Re: problem with SetPropertyRule > > Hi Tushar, > looks like you misinterpreted the SetProperty rule, read the > javadoc[1] for its d

Re: problem with SetPropertyRule

2011-09-25 Thread Simone Tripodi
Hi Tushar, looks like you misinterpreted the SetProperty rule, read the javadoc[1] for its description. What would fit for your case is the SetPropertiesRule[2], so your code should be changed to private static void addRules(Digester digester) { digester.addObjectCreate( "foo", "mypackage.Foo"

Re: Object graph validation

2011-09-19 Thread Simone Tripodi
idator  though? > > On Mon, Sep 19, 2011 at 12:31 PM, Simone Tripodi > wrote: > >> Hi Jeff, >> I suggest you to have a look at Apache BeanValidation[1] that is the >> implementation of JSR303 BeanValidation. >> HTH, >> Simo >> >> [1] http://incub

Re: Object graph validation

2011-09-19 Thread Simone Tripodi
Hi Jeff, I suggest you to have a look at Apache BeanValidation[1] that is the implementation of JSR303 BeanValidation. HTH, Simo [1] http://incubator.apache.org/bval/cwiki/index.html http://people.apache.org/~simonetripodi/ http://www.99soft.org/ On Mon, Sep 19, 2011 at 12:23 PM, jeff mutonho

Re: [ANNOUNCEMENT] Commons Configuration 1.7 Released

2011-09-08 Thread Simone Tripodi
I agree, quite unfair comment :( Commons, like the rest of the Apache communities, is a group of volunteers maintaining projects, that means no one of us is paid nor has a lot of time to during the day to dedicate to get component released. So everybody is welcomed on submitting patches, participat

Re: [Betwixt] is betwixt thread safe ?

2011-08-16 Thread Simone Tripodi
e with the Digester lib. > I will find more information about the lib's version and maybe send some > code so you can tell me what is the problem. > > Thanks > > Patrick > > 2011/8/15 Simone Tripodi > >> Hi Patrick, >> sorry for the misunderstanding I made,

Re: [Betwixt] is betwixt thread safe ?

2011-08-15 Thread Simone Tripodi
data. > Could you please give me an example of code using this "deserializer" to > help me to write the code needed ? > > Thank you > > Patrick > > 2011/8/14 Simone Tripodi > >> Hi Patrick! >> you're welcome, let us know about your results! >>

Re: [Betwixt] is betwixt thread safe ?

2011-08-14 Thread Simone Tripodi
t; Patrick > > Le 14 août 2011 à 20:24, Simone Tripodi a écrit : > >> Hi Patrick!!! >> for the XML -> Object mapping, Betwixt relies on Digester, which is >> NOT thread safe. >> You have 3 options: >> >> - synchronize the blocks as you did - anyway it&

Re: [Betwixt] is betwixt thread safe ?

2011-08-14 Thread Simone Tripodi
Hi Patrick!!! for the XML -> Object mapping, Betwixt relies on Digester, which is NOT thread safe. You have 3 options: - synchronize the blocks as you did - anyway it's not the best way IMHO; - re-create the deserializer for each request; - use Betwixt in combination with commons-pool, get/rele

Re: Invalid link: http://commons.apache.org/ognl/download_ognl.cgi

2011-07-19 Thread Simone Tripodi
Hi Emi, thanks for the reminder! The main reason because that link points to nowhere is Commons-OGNL hasn't published yet any release :P So I think I should hide the link - at least until we don't have a release :) Thanks a lot, have a nice day! Simo http://people.apache.org/~simonetripodi/ http:/

Re: [digester] Jaxenter interview about Digester3!!!

2011-07-12 Thread Simone Tripodi
lité pour le contenu fourni. > > >> From: grobme...@gmail.com >> Date: Tue, 12 Jul 2011 20:00:14 +0200 >> Subject: Re: [digester] Jaxenter interview about Digester3!!! >> To: user@commons.apache.org >> CC: d...@commons.apache.org >> >> Reads great! >&

Re: [digester] Jaxenter interview about Digester3!!!

2011-07-12 Thread Simone Tripodi
Dankeshen Christian, very appreciated! :) All the best!!! Simo http://people.apache.org/~simonetripodi/ http://www.99soft.org/ On Tue, Jul 12, 2011 at 8:00 PM, Christian Grobmeier wrote: > Reads great! > Love to see things like that > > On Tue, Jul 12, 2011 at 7:43 PM, Simone Trip

[digester] Jaxenter interview about Digester3!!!

2011-07-12 Thread Simone Tripodi
Hi all guys, just to share with you all a small interview I had with Jaxenter today during lunch-time, I hope that my fellows appreciate how things have been exposed! Agreements section is not missing! :) Have a nice day, all the best! Simo [1] http://jaxenter.com/what-s-new-in-apache-commons-dige

[digester] Apache Commons Digester3 is on JaxEnter!

2011-07-12 Thread Simone Tripodi
Hi all guys, just to let you aware that Apache Commons Digester 3 release has been announced on JaxEnter[1]! All the best, have a nice day Simo [1] http://jaxenter.com/first-rc-of-jdk7-arrives-36709.html http://people.apache.org/~simonetripodi/ http://www.99soft.org/

[ANNOUNCE] Apache Commons Digester 3.0 released!

2011-07-06 Thread Simone Tripodi
The Apache Commons team is pleased to announce the Apache Commons Digester 3.0 release! The Apache Commons Digester package lets you configure an XML to Java object mapping module which triggers certain actions called rules whenever a particular pattern of nested XML elements is recognized. The A

Re: [Digester] new Digester SNAPSHOT available

2011-06-20 Thread Simone Tripodi
Hi again guys, Is there any user that gave an opportunity to the new Digester to be tried? All the best, Simo http://people.apache.org/~simonetripodi/ http://www.99soft.org/ On Sat, Jun 18, 2011 at 2:28 PM, Simone Tripodi wrote: > Hi all guys, > during the last months we've been w

[Digester] new Digester SNAPSHOT available

2011-06-18 Thread Simone Tripodi
Hi all guys, during the last months we've been working on a new Digester version that's still under development/finalization, anyway we would be very glad on collect feedbacks from users as much as it is possible. The new SNAPSHOT site has been published[1] and we would like to emphasize the new fe

Re: Retrying a HTTP call..

2011-05-27 Thread Simone Tripodi
Hi Mani, HTTP client has been moved to Http Componentes[1] I suggest you asking on their ML HTH, have a nice day! Simo [1] http://hc.apache.org/ http://people.apache.org/~simonetripodi/ http://www.99soft.org/ On Fri, May 27, 2011 at 3:00 PM, Manikandan R wrote: > Hi Everyone, > > I've started

Re: [io] Tailer returning partial lines returned when EOF before newline

2011-05-25 Thread Simone Tripodi
I didn't check the patch, I was referring to the process. sorry for the misunderstanding http://people.apache.org/~simonetripodi/ http://www.99soft.org/ On Wed, May 25, 2011 at 3:12 PM, Jörg Schaible wrote: > Hi, > > Simone Tripodi wrote: > >> Great, that's the way

Re: [io] Tailer returning partial lines returned when EOF before newline

2011-05-25 Thread Simone Tripodi
Great, that's the way to go, well done and thanks for your contribution! Simo http://people.apache.org/~simonetripodi/ http://www.99soft.org/ On Wed, May 25, 2011 at 2:42 PM, frankgrimes97 wrote: > FYI, I have created the following bug report in JIRA for this issue: > > https://issues.apache.o

Re: [io] Tailer returning partial lines returned when EOF before newline

2011-05-24 Thread Simone Tripodi
Hi Frank, What I suggest you is following the usual workflow, I mean opening an Issue on ASF Jira - see Niall's link - and build a patch against the /trunk and attach it to the filled Issue. Otherwise it will be very hard that IO maintainers could notice and apply a textual patch inside the ML. HTH

Re: [digester] how can I print children tags instead of only tag content ?

2011-05-15 Thread Simone Tripodi
nice!!! di nulla, è un piacere ;) Simo http://people.apache.org/~simonetripodi/ http://www.99soft.org/ On Sun, May 15, 2011 at 12:24 PM, Patrick Diviacco wrote: > OK. Solved, thanks - grazie mille > > On 15 May 2011 11:28, Simone Tripodi wrote: > >> IIUC = if I un

Re: [digester] how can I print children tags instead of only tag content ?

2011-05-15 Thread Simone Tripodi
gt; > bool = hasChild(myPattern) > > thanks > > On 15 May 2011 02:09, Simone Tripodi wrote: > >> IIUC, no matters which kind of children your node has, you're >> interested only on the first child, right? >> >> http://people.apache.org/~simonetripodi/ &

Re: [digester] how can I print children tags instead of only tag content ?

2011-05-14 Thread Simone Tripodi
ocument and only if the >> tag has at least 1 child. >> >> I copy my code again: >> >> Digester digester = new Digester(); >> digester.setRules( new RegexRules( new SimpleRegexMatcher() ) ); >> >> digester.addCallMethod("collection/doc/categ/*",  "myM

Re: [digester] how can I print children tags instead of only tag content ?

2011-05-14 Thread Simone Tripodi
> > 2) In my case, if I have more than one child, is the pattern detected > multiple times ? > > help is very appreciated! > > > > > On 14 May 2011 01:36, Simone Tripodi wrote: > >> Hi Patrick, >> follow the Konstantin's suggestion, that's t

Re: [digester] how can I print children tags instead of only tag content ?

2011-05-13 Thread Simone Tripodi
Hi Patrick, follow the Konstantin's suggestion, that's the way to achieve it. Have a read also to http://commons.apache.org/digester/apidocs/index.html?org/apache/commons/digester/SimpleRegexMatcher.html HTH, Simo http://people.apache.org/~simonetripodi/ http://www.99soft.org/ On Fri, May 13,

Re: [digester] Grabbing data from sub-element attributes

2011-05-13 Thread Simone Tripodi
Hi Christopher, I suggest you following Rahul's suggestion, SetNestedPropertiesRule is not efficient as a direct invocation. Moreover, for foo/bar properties, there's a 3rd way to set them: d.addObjectCreate("entities/entity", Entity.class); d.addBeanPropertySetter("entities/entity/foo"); d.ad

Re: [ANNOUNCEMENT] Apache Commons Discovery 0.5 released!

2011-05-05 Thread Simone Tripodi
atulations to Simone for pushing this release out! > > Gary > > On May 5, 2011, at 8:26, Simone Tripodi wrote: > >> The Apache Commons team is pleased to announce the >> commons-discovery-0.5 release! >> >> The Apache Commons Discovery component is about discov

[ANNOUNCEMENT] Apache Commons Discovery 0.5 released!

2011-05-05 Thread Simone Tripodi
The Apache Commons team is pleased to announce the commons-discovery-0.5 release! The Apache Commons Discovery component is about discovering, or finding, implementations for pluggable interfaces. Changes in this version include: Fixed Bugs: o Enumeration in Service class is broken. Issue: D

Re: [digester] digester performance..

2011-04-05 Thread Simone Tripodi
I'd discourage XPath since implies maintaining the DOM in memory, if the XML document Patrick is parsing is large is thousand and thousand of Megabytes, XPath is not efficient as well. Patrick, honestly I didn't understand the problem :) sounds a Lucene performance problem, did you already try writ

Re: [digester] digester performance..

2011-04-05 Thread Simone Tripodi
Hi Patrick, if the Digester program you're speaking about is the one you pasted here time ago... well, there were a lot of optimization missed. For example I suggested you using the Lucene rules instead of storing all the properties in a POJO then creating the Lucene Document, in that way you limit

Re: [digester] why addCallMethod doesn't work?

2011-04-02 Thread Simone Tripodi
ork because of some other issue. Now I'm happy it's > fine. Thanks Simone. For the coming Digester 3 , I hope it will be provided > with a complete document that is  rich in examples. You know current > document is not easy to understand, I see after using it for a while. >

Re: [digester] why addCallMethod doesn't work?

2011-04-01 Thread Simone Tripodi
setTable is woring. > >       d.addCallMethod(pattern, "setType", 1); >       d.addCallParam(pattern, 0, type); > >   other part is ok. > > Thanks. > > Kurt > > > > On Fri, 01 Apr 2011 21:05:08 +0800, Simone Tripodi > wrote: > >> Holy cow,

Re: [digester] why addCallMethod doesn't work?

2011-04-01 Thread Simone Tripodi
Holy cow, Kurt!!! :D can you be more precise and highlight which is the part that doesn't work? For what I see, there's one assCallParam() set in your Digetser and that's for the Handler Simo http://people.apache.org/~simonetripodi/ http://www.99soft.org/ 2011/4/1 Kurt Xu : > > Hi all digester

Re: Re: Re: [digester]How to use SimpleRegexMatcher?

2011-04-01 Thread Simone Tripodi
 :) > > Thanks. > > > > On Fri, 01 Apr 2011 18:48:09 +0800, Simone Tripodi > wrote: > >> Sorry, I lost you, didn't understand :( Please provide me a more >> concrete sample, please >> Simo >> >> http://people.apache.org/~simonetripodi

Re: Re: Re: [digester]How to use SimpleRegexMatcher?

2011-04-01 Thread Simone Tripodi
wice ,right? How > could be just set once. > >  Thanks > > Kurt > > > On Fri, 01 Apr 2011 15:27:09 +0800, Simone Tripodi > wrote: > >> Hi Kurt >> Ok now I get it: exactly, calling Digetser.setRules() you loose all >> the already set Rules instance, so

Re: [digester] NullPointerException

2011-04-01 Thread Simone Tripodi
n Fri, Apr 1, 2011 at 10:05 AM, Patrick Diviacco wrote: > Cool thanks, solved. > > On 1 April 2011 01:00, Simone Tripodi wrote: > >> Patrick, >> just replace >> >> 71    digester.addObjectCreate("collection", XMLReader.class); >> >> wi

Re: Re: Re: [digester]How to use SimpleRegexMatcher?

2011-04-01 Thread Simone Tripodi
I want do set two >>> customized rule . The second setRules can reset or override the first >>> calling, can't it? >>> >>>  btw: why u say ni hao, r u from China? >>> >>>  Many thanks. >>> >>> >>> Kurt >>> >>>

Re: Re: [digester]How to use SimpleRegexMatcher?

2011-04-01 Thread Simone Tripodi
> >   btw: why u say ni hao, r u from China? > >   Many thanks. > > > Kurt > > > > On Thu, 31 Mar 2011 14:39:59 +0800, Simone Tripodi > wrote: > >> Ni hao again Kurt, >> just realized that the ParaItemRule implementation is inc

Re: [digester] NullPointerException

2011-03-31 Thread Simone Tripodi
e is that XMLReader has been created as static > object... > > thanks > > > On 1 April 2011 00:26, Simone Tripodi wrote: > >> Hi Patrick, >> can you link also to the XML you're trying to parse? >> Simo >> >> http://people.apache.org/~simonetripo

Re: [digester] NullPointerException

2011-03-31 Thread Simone Tripodi
Hi Patrick, can you link also to the XML you're trying to parse? Simo http://people.apache.org/~simonetripodi/ http://www.99soft.org/ On Thu, Mar 31, 2011 at 10:24 PM, Patrick Diviacco wrote: > Hi, > > I'm trying to store the content of a xml file into memory but for some > reason I get follow

Re: Re: [digester]How to use SimpleRegexMatcher?

2011-03-30 Thread Simone Tripodi
{ digester.push(new ParaItem(name, text)); } @Override public void end() throws Exception { digester.pop(); } http://people.apache.org/~simonetripodi/ http://www.99soft.org/ On Thu, Mar 31, 2011 at 8:36 AM, Simone Tripodi wrote: > Hi Kurt, > calling the setRules() method in the w

Re: Re: [digester]How to use SimpleRegexMatcher?

2011-03-30 Thread Simone Tripodi
Hi Kurt, calling the setRules() method in the way you did, makes the Rules instance is reset, so you loose the already set patterns. modify the code in order that the setRules() method is invoked before setting patterns/rules. HTH, Simo private void parseProject2(URL url) throws IOException, SAXEx

Re: [digester]How to use SimpleRegexMatcher?

2011-03-30 Thread Simone Tripodi
Hi Kurt, I suggest you first creating a digester rule that helps you handling a generic ParaItem element: public final class ParaItemRule extends org.apache.commons.digester.Rule { @Override public void body(String namespace, String name, String text) throws Exception { digester.p

Re: [digester] java.lang.NullPointerException only for a specific file

2011-03-29 Thread Simone Tripodi
an a xml > doc, what do you think ? > > I'm using Digester combined with Apache Lucene to perform queries (all > together they are 65MBs in a xml file) against a collection (65MBs in XML > again). > > thanks > > > > On 28 March 2011 17:20, Simone Tripo

Re: [digester] java.lang.NullPointerException only for a specific file

2011-03-28 Thread Simone Tripodi
http://people.apache.org/~simonetripodi/ http://www.99soft.org/ On Mon, Mar 28, 2011 at 4:56 PM, Patrick Diviacco wrote: > hi! > > What should I use instead of StringBuffer ? > > Any example or tutorial ? > > thanks > Patrick > > On 28 March 2011 16:53, Simone Tripodi

Re: [digester] java.lang.NullPointerException only for a specific file

2011-03-28 Thread Simone Tripodi
Hi Patrick, nice to know you quickly fixed the issue before anybody could have provided his help! :) As a side note, I would suggest you taking in consideration a different solution for the XML generation rather the StringBuffer, since you're parsing large dataset, streaming data while parsing wou

[Digester][Sandbox] please test the experimental new Digester

2011-03-09 Thread Simone Tripodi
Hi all Commons users, I'd like you involved on testing the prototypal Digester on Sandbox[1]; since it is staged at Sandbox, interested people have to checkout the code and build by themselves, it would be a good chance to be more involved. Every suggestion/feedback/wish list/bug would be very appr

Re: [daemon] The ivy resolver can't version 1.0.3, 1.0.4 or 1.0.5

2011-03-08 Thread Simone Tripodi
11 at 4:06 PM, Filipe Sousa wrote: > On Tue, Mar 8, 2011 at 11:49 AM, Simone Tripodi > wrote: >> Olà Felipe, >> looks like the commons-daemon 1.0.3 IS on maven central repo, take a >> look at http://repo1.maven.org/maven2/commons-daemon/commons-daemon/1.0.3/ >> It

Re: [Digester] Maven 2 Repository

2011-03-08 Thread Simone Tripodi
ssage- > From: simone.trip...@gmail.com [mailto:simone.trip...@gmail.com] On Behalf Of > Simone Tripodi > Sent: Tuesday, March 08, 2011 3:09 AM > To: Commons Users List > Subject: Re: [Digester] Maven 2 Repository > > Hi Russell, > if you mean the 2.X, it is in the Central Repo, if

Re: [daemon] The ivy resolver can't version 1.0.3, 1.0.4 or 1.0.5

2011-03-08 Thread Simone Tripodi
Olà Felipe, looks like the commons-daemon 1.0.3 IS on maven central repo, take a look at http://repo1.maven.org/maven2/commons-daemon/commons-daemon/1.0.3/ It seems to me that's more ivy-related problem, I'd ask to ivy ML why it is not resolved. Sorte, até Simo http://people.apache.org/~simonetri

Re: [Digester] Maven 2 Repository

2011-03-08 Thread Simone Tripodi
Hi Russell, if you mean the 2.X, it is in the Central Repo, if you instead would get the 3.0[1], you have to checkout the code[2] and build it by yourself since it is still in the sandbox. I really would appreciate if you can test it and send your feedbacks here in the users ML, suggestions/wishlis

Re: [digester] How to deal with flexible XML ?

2011-02-27 Thread Simone Tripodi
lds. > > Should I use Field.Index.ANALYZED for all of them ? > > thnks > > > > On 27 February 2011 09:55, Simone Tripodi wrote: > >> Hi Patrick, >> I quickly had a look at your code and l didn't see anything wrong, the >> Digester should work e

Re: [digester] How to deal with flexible XML ?

2011-02-27 Thread Simone Tripodi
Hi Patrick, I quickly had a look at your code and l didn't see anything wrong, the Digester should work either the tag is empty or not. When you will have documents such .. the `collection/doc/geo/(latitude|longitude)` pattern will never match, so set(Latitude|Longitude) methods won't be inv

[Sandbox][Digetser3] Meet the Sandbox Digester3, it could worth the value!

2011-02-25 Thread Simone Tripodi
Hi all commons-users, during my spare time I started reimplementing a new version of Digester - I lazily called Digester3[1] - focused few concepts: * A universal loader (core & extensions are loaded in the same way); * Reusability of Digester configurations; * Rules are now expressed via fluen

Re: [commons-email] Problem sending emails to groups

2011-02-23 Thread Simone Tripodi
Hola Lorenzo, please don't send the same email message to both dev/users MLs, dev is not for supporting this kind of questions. Apologize but personally I'm not [email] expert, can't provide any help :( Hasta pronto, Simo http://people.apache.org/~simonetripodi/ http://www.99soft.org/ On Wed, F

Re: [Digester] Rules on Attributes

2011-02-22 Thread Simone Tripodi
Hi Russell, use the SetPropertiesRule[1] to extract properties from attributes, this is what you need for your purpose! HTH, Simo [1] http://s.apache.org/zJ http://people.apache.org/~simonetripodi/ http://www.99soft.org/ On Tue, Feb 22, 2011 at 9:49 PM, Collins, Russell wrote: > I am new to D

Re: [compress] Zip password compressed archive

2011-02-07 Thread Simone Tripodi
Thanks a lot for all the suggestions guys, very appreciated! Have a nice day, Simo http://people.apache.org/~simonetripodi/ http://www.99soft.org/ On Mon, Feb 7, 2011 at 12:15 PM, Stefan Bodewig wrote: > On 2011-02-07, Simone Tripodi wrote: > >> do you know is there any way to pr

[compress] Zip password compressed archive

2011-02-07 Thread Simone Tripodi
Hi all guys, do you know is there any way to protect with a password the produced zip archive, with [compress] APIs? Many thanks in advance, have a nice day! Simo http://people.apache.org/~simonetripodi/ http://www.99soft.org/ -

  1   2   >