cvs commit: jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/tools - New directory
burton 2004/03/02 00:15:00 jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/tools - New directory - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [feedparser] License
Henri Yandell wrote: Yep, looks killable. IDE stuff shouldn't be in anyway, even if it's an allowed licence. Sorry... my bad.. that's just my default cut and paste... I'll just remove the file from CVS. Kevin -- Please reply using PGP: http://peerfear.org/pubkey.asc NewsMonster - http://www.newsmonster.org/ Kevin A. Burton, Location - San Francisco, CA, Cell - 415.595.9965 AIM/YIM - sfburtonator, Web - http://peerfear.org/ GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412 IRC - freenode.net #infoanarchy | #p2p-hackers | #newsmonster begin:vcard fn:Kevin Burton n:Burton;Kevin email;internet:[EMAIL PROTECTED] x-mozilla-html:TRUE version:2.1 end:vcard signature.asc Description: OpenPGP digital signature
cvs commit: jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/tools ISO8601DateParser.java RFC822DateParser.java
burton 2004/03/02 00:27:52 Modified:feedparser TODO feedparser/src/java/org/apache/commons/feedparser ContentFeedParserListener.java DefaultFeedParserListener.java Added: feedparser LICENSE feedparser/src/java/org/apache/commons/feedparser/tools ISO8601DateParser.java RFC822DateParser.java Removed: feedparser LICENSE.txt Log: renamed license per rename instructions Revision ChangesPath 1.6 +6 -1 jakarta-commons-sandbox/feedparser/TODO Index: TODO === RCS file: /home/cvs/jakarta-commons-sandbox/feedparser/TODO,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- TODO 27 Feb 2004 00:00:54 - 1.5 +++ TODO 2 Mar 2004 08:27:52 - 1.6 @@ -37,4 +37,9 @@ - http://intertwingly.net/wiki/pie/content -- Support for RSS 1.0 mod_link and Atom links \ No newline at end of file +- Support for RSS 1.0 mod_link and Atom links + +- What are my options for XPATH libraries... I should benchmark these.. Also + see if using SAX will just be faster. + +- Full documentation on how we have to handle dates. \ No newline at end of file 1.3 +202 -55 jakarta-commons-sandbox/feedparser/LICENSE 1.4 +2 -2 jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/ContentFeedParserListener.java Index: ContentFeedParserListener.java === RCS file: /home/cvs/jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/ContentFeedParserListener.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- ContentFeedParserListener.java28 Feb 2004 03:35:21 - 1.3 +++ ContentFeedParserListener.java2 Mar 2004 08:27:52 - 1.4 @@ -81,7 +81,7 @@ String mode, String value ) throws FeedParserException; -public void onContent() throws FeedParserException; +public void onContentEnd() throws FeedParserException; } 1.6 +2 -2 jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/DefaultFeedParserListener.java Index: DefaultFeedParserListener.java === RCS file: /home/cvs/jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/DefaultFeedParserListener.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- DefaultFeedParserListener.java28 Feb 2004 03:35:21 - 1.5 +++ DefaultFeedParserListener.java2 Mar 2004 08:27:52 - 1.6 @@ -124,6 +124,6 @@ String mode, String value ) throws FeedParserException {} -public void onContent() throws FeedParserException {} +public void onContentEnd() throws FeedParserException {} } 1.1 jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/tools/ISO8601DateParser.java Index: ISO8601DateParser.java === /* * The Apache Software License, Version 1.1 * * Copyright (c) 1999 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright *notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright *notice, this list of conditions and the following disclaimer in *the documentation and/or other materials provided with the *distribution. * * 3. The end-user documentation included with the redistribution, if *any, must include the following acknowlegement: * This product includes software developed by the *Apache Software Foundation (http://www.apache.org/). *Alternately, this acknowlegement may appear in the software itself, *if and wherever such third-party acknowlegements normally appear. * * 4. The names The Jakarta Project, FeedParser, and Apache Software *Foundation must not be used to endorse or promote products derived *from this software without prior written permission. For written *permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called Apache *nor may Apache appear in their names without prior written *permission of the Apache Group. *
[VFS][PATCH] make it compile
Hi, as you've seen in the nag messages, vfs currently doesn't compile because of some bad package names in two import statements. The appended trivial patch fixes it. Cheers Stefan -- http://stefanbodewig.blogger.de/ Index: src/java/org/apache/commons/vfs/provider/webdav/WebDavFileSystem.java === RCS file: /home/cvspublic/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/webdav/WebDavFileSystem.java,v retrieving revision 1.9 diff -u -r1.9 WebDavFileSystem.java --- src/java/org/apache/commons/vfs/provider/webdav/WebDavFileSystem.java 28 Feb 2004 03:35:52 - 1.9 +++ src/java/org/apache/commons/vfs/provider/webdav/WebDavFileSystem.java 2 Mar 2004 08:28:02 - @@ -18,6 +18,7 @@ import java.io.IOException; import java.util.Collection; import org.apache.commons.httpclient.HttpClient; +import org.apache.commons.httpclient.HttpURL; import org.apache.commons.vfs.Capability; import org.apache.commons.vfs.FileName; import org.apache.commons.vfs.FileObject; @@ -25,7 +26,6 @@ import org.apache.commons.vfs.FileSystemException; import org.apache.commons.vfs.provider.AbstractFileSystem; import org.apache.commons.vfs.provider.GenericFileName; -import org.apache.util.HttpURL; import org.apache.webdav.lib.WebdavResource; /** Index: src/java/org/apache/commons/vfs/provider/webdav/WebdavFileObject.java === RCS file: /home/cvspublic/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/webdav/WebdavFileObject.java,v retrieving revision 1.11 diff -u -r1.11 WebdavFileObject.java --- src/java/org/apache/commons/vfs/provider/webdav/WebdavFileObject.java 28 Feb 2004 03:35:52 - 1.11 +++ src/java/org/apache/commons/vfs/provider/webdav/WebdavFileObject.java 2 Mar 2004 08:28:02 - @@ -22,13 +22,13 @@ import java.util.Enumeration; import java.util.HashMap; import java.util.Map; +import org.apache.commons.httpclient.HttpURL; import org.apache.commons.vfs.FileObject; import org.apache.commons.vfs.FileSystemException; import org.apache.commons.vfs.FileType; import org.apache.commons.vfs.provider.AbstractFileObject; import org.apache.commons.vfs.provider.GenericFileName; import org.apache.commons.vfs.util.MonitorOutputStream; -import org.apache.util.HttpURL; import org.apache.webdav.lib.BaseProperty; import org.apache.webdav.lib.WebdavResource; import org.apache.webdav.lib.methods.DepthSupport; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/tools ISO8601DateParser.java RFC822DateParser.java
burton 2004/03/02 00:32:07 Modified:feedparser/src/java/org/apache/commons/feedparser/tools ISO8601DateParser.java RFC822DateParser.java Log: documentation and relicense... Revision ChangesPath 1.2 +17 -55 jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/tools/ISO8601DateParser.java Index: ISO8601DateParser.java === RCS file: /home/cvs/jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/tools/ISO8601DateParser.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- ISO8601DateParser.java2 Mar 2004 08:27:52 - 1.1 +++ ISO8601DateParser.java2 Mar 2004 08:32:07 - 1.2 @@ -1,57 +1,17 @@ /* - * The Apache Software License, Version 1.1 - * - * Copyright (c) 1999 The Apache Software Foundation. All rights - * reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - *notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - *notice, this list of conditions and the following disclaimer in - *the documentation and/or other materials provided with the - *distribution. - * - * 3. The end-user documentation included with the redistribution, if - *any, must include the following acknowlegement: - * This product includes software developed by the - *Apache Software Foundation (http://www.apache.org/). - *Alternately, this acknowlegement may appear in the software itself, - *if and wherever such third-party acknowlegements normally appear. - * - * 4. The names The Jakarta Project, FeedParser, and Apache Software - *Foundation must not be used to endorse or promote products derived - *from this software without prior written permission. For written - *permission, please contact [EMAIL PROTECTED] - * - * 5. Products derived from this software may not be called Apache - *nor may Apache appear in their names without prior written - *permission of the Apache Group. - * - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR - * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF - * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * - * This software consists of voluntary contributions made by many - * individuals on behalf of the Apache Software Foundation. For more - * information on the Apache Software Foundation, please see - * http://www.apache.org/. - * - * + * Copyright 1999,2004 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package org.apache.commons.feedparser.tools; @@ -62,7 +22,9 @@ import java.text.*; /** - * + * ISO 8601 date parsing utility. Designed for parsing the ISO subset used in + * Dublin Core, RSS 1.0, and Atom. + * * @author a href=mailto:[EMAIL PROTECTED]Kevin A. Burton (burtonator)/a * @version $Id$ */ 1.2 +68 -54 jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/tools/RFC822DateParser.java Index: RFC822DateParser.java === RCS file:
[feedparser] ... is ASL 2.0 compliant...
All taken care of... thanks! Kevin -- Please reply using PGP: http://peerfear.org/pubkey.asc NewsMonster - http://www.newsmonster.org/ Kevin A. Burton, Location - San Francisco, CA, Cell - 415.595.9965 AIM/YIM - sfburtonator, Web - http://peerfear.org/ GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412 IRC - freenode.net #infoanarchy | #p2p-hackers | #newsmonster begin:vcard fn:Kevin Burton n:Burton;Kevin email;internet:[EMAIL PROTECTED] x-mozilla-html:TRUE version:2.1 end:vcard signature.asc Description: OpenPGP digital signature
[SANDBOX] policy question (was Re: [VFS][PATCH] make it compile)
Hi all, since I have karma for the sandbox, I could easily apply the patch myself. On the other hand I do not plan to get involved with VFS beyond making it compile right now, so it feel wrong to add myself to the status file and commit away. Should I commit it without adding myself to the status file or should I simply wait until the patch gets applied by one of the people listed there? Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[GUMP@lsd]: jelly-tags/commons-jelly-tags-ant failed
To whom it may engage... This is an automated request, but not an unsolicited one. For help understanding the request please visit http://gump.apache.org/nagged.html, and/or contact [EMAIL PROTECTED] Project commons-jelly-tags-ant has an issue affecting it's community integration. This issue affects 3 projects, and has been outstanding for 5 runs. The current state is 'Failed', for reason 'Build Failed' Full details are available at: http://lsd.student.utwente.nl/gump/jelly-tags/commons-jelly-tags-ant.html, however some snippets follow: - - - - - -- -- G U M P Gump provided these annotations: - Info - Sole jar [/data3/gump/jelly-tags/ant/target/commons-jelly-tags-ant-20040302.jar] identifier set to project name - Error - Failed with reason build failed - - - - - -- -- G U M P Gump performed this work: Work Name: build_jelly-tags_commons-jelly-tags-ant (Type: Build) State: Failed Elapsed: 0 hours, 0 minutes, 15 seconds Command Line: java -Djava.awt.headless=true -Dbuild.clonevm=true -Xbootclasspath/p:/data3/gump/xml-xerces2/java/build/xercesImpl.jar:/data3/gump/xml-xerces2/java/build/xmlParserAPIs.jar org.apache.tools.ant.Main -Dgump.merge=/data3/gump/gump-install/work/merge.xml -Dbuild.sysclasspath=only -Dfinal.name=commons-jelly-tags-ant-20040302 jar [Working Directory: /data3/gump/jelly-tags/ant] - get-deps: compile: [mkdir] Created dir: /data3/gump/jelly-tags/ant/target/classes [javac] Compiling 10 source files to /data3/gump/jelly-tags/ant/target/classes [javac] /data3/gump/jelly-tags/ant/src/java/org/apache/commons/jelly/tags/ant/AntTag.java:383: warning: createElement(org.apache.tools.ant.Project,java.lang.Object,java.lang.String) in org.apache.tools.ant.IntrospectionHelper has been deprecated [javac] dataType = ih.createElement( getAntProject(), object, name.toLowerCase() ); [javac] ^ [javac] 1 warning [copy] Copying 10 files to /data3/gump/jelly-tags/ant/target/test-classes compile-tests: [javac] Compiling 5 source files to /data3/gump/jelly-tags/ant/target/test-classes internal-test: [mkdir] Created dir: /data3/gump/jelly-tags/ant/target/test-reports [junit] Running org.apache.commons.jelly.ant.TestJelly [junit] Tests run: 3, Failures: 0, Errors: 1, Time elapsed: 2.229 sec [junit] Testsuite: org.apache.commons.jelly.ant.TestJelly [junit] Tests run: 3, Failures: 0, Errors: 1, Time elapsed: 2.229 sec [junit] Testcase: write took 1.763 sec [junit] Testcase: readWrite took 0.229 sec [junit] Testcase: writeIn took 0.191 sec [junit] Caused an ERROR [junit] file:/data3/gump/jelly-tags/ant/target/test-classes/org/apache/commons/jelly/ant/suite.jelly:54:5: ant java.lang.NullPointerException [junit] org.apache.commons.jelly.JellyTagException: file:/data3/gump/jelly-tags/ant/target/test-classes/org/apache/commons/jelly/ant/suite.jelly:54:5: ant java.lang.NullPointerException [junit] at org.apache.commons.jelly.impl.TagScript.handleException(TagScript.java:642) [junit] at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:242) [junit] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:89) [junit] at org.apache.commons.jelly.tags.junit.CaseTag$1.runTest(CaseTag.java:59) [junit] Caused by: java.lang.NullPointerException [junit] at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:186) [junit] at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:233) [junit] ... 11 more [junit] Root cause [junit] java.lang.NullPointerException [junit] at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:186) [junit] at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:233) [junit] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:89) [junit] at org.apache.commons.jelly.tags.junit.CaseTag$1.runTest(CaseTag.java:59) BUILD FAILED /data3/gump/jelly-tags/ant/build.xml:110: Test org.apache.commons.jelly.ant.TestJelly failed Total time: 13 seconds - To subscribe to this information via syndicated feeds: RSS: http://lsd.student.utwente.nl/gump/jelly-tags/commons-jelly-tags-ant.rss | Atom: http://lsd.student.utwente.nl/gump/jelly-tags/commons-jelly-tags-ant.atom -- Gump http://gump.apache.org/ [lsd] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[GUMP@lsd]: jelly-tags/commons-jelly-tags-define failed
To whom it may engage... This is an automated request, but not an unsolicited one. For help understanding the request please visit http://gump.apache.org/nagged.html, and/or contact [EMAIL PROTECTED] Project commons-jelly-tags-define has an issue affecting it's community integration, and has been outstanding for 5 runs. The current state is 'Failed', for reason 'Build Failed' Full details are available at: http://lsd.student.utwente.nl/gump/jelly-tags/commons-jelly-tags-define.html, however some snippets follow: - - - - - -- -- G U M P Gump provided these annotations: - Info - Sole jar [/data3/gump/jelly-tags/define/target/commons-jelly-tags-define-20040302.jar] identifier set to project name - Error - Failed with reason build failed - - - - - -- -- G U M P Gump performed this work: Work Name: build_jelly-tags_commons-jelly-tags-define (Type: Build) State: Failed Elapsed: 0 hours, 0 minutes, 11 seconds Command Line: java -Djava.awt.headless=true -Dbuild.clonevm=true -Xbootclasspath/p:/data3/gump/xml-xerces2/java/build/xercesImpl.jar:/data3/gump/xml-xerces2/java/build/xmlParserAPIs.jar:/data3/gump/xml-xalan/java/build/xalan-unbundled.jar:/data3/gump/xml-commons/java/external/build/xml-apis.jar org.apache.tools.ant.Main -Dgump.merge=/data3/gump/gump-install/work/merge.xml -Dbuild.sysclasspath=only -Dfinal.name=commons-jelly-tags-define-20040302 jar [Working Directory: /data3/gump/jelly-tags/define] - [junit] INFO: Generating some XML [junit] - --- [junit] Testcase: invoke took 0.574 sec [junit] Testcase: dynamicTag took 0.066 sec [junit] Testcase: dynaBeans took 0.1 sec [junit] Testcase: testTaglibInheritTest took 0.011 sec [junit] Testcase: testExtend took 0.007 sec [junit] Testcase: testSuper took 0.022 sec [junit] Caused an ERROR [junit] file:/data3/gump/jelly-tags/define/target/test-classes/org/apache/commons/jelly/tags/define/suite.jelly:174:24: define:super java.lang.NullPointerException [junit] org.apache.commons.jelly.JellyTagException: file:/data3/gump/jelly-tags/define/target/test-classes/org/apache/commons/jelly/tags/define/suite.jelly:174:24: define:super java.lang.NullPointerException [junit] at org.apache.commons.jelly.impl.TagScript.handleException(TagScript.java:642) [junit] at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:242) [junit] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:89) [junit] at org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:79) [junit] at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:102) [junit] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:89) [junit] at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) [junit] at org.apache.commons.jelly.TagSupport.getBodyText(TagSupport.java:236) [junit] at org.apache.commons.jelly.tags.core.SetTag.doTag(SetTag.java:90) [junit] at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:233) [junit] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:89) [junit] at org.apache.commons.jelly.tags.junit.CaseTag$1.runTest(CaseTag.java:59) [junit] Caused by: java.lang.NullPointerException [junit] at org.apache.commons.jelly.tags.define.SuperTag.doTag(SuperTag.java:44) [junit] at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:233) [junit] ... 19 more [junit] Root cause [junit] java.lang.NullPointerException [junit] at org.apache.commons.jelly.tags.define.SuperTag.doTag(SuperTag.java:44) [junit] at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:233) [junit] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:89) [junit] at org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:79) [junit] at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:102) [junit] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:89) [junit] at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) [junit] at org.apache.commons.jelly.TagSupport.getBodyText(TagSupport.java:236) [junit] at org.apache.commons.jelly.tags.core.SetTag.doTag(SetTag.java:90) [junit] at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:233) [junit] at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:89) [junit] at org.apache.commons.jelly.tags.junit.CaseTag$1.runTest(CaseTag.java:59) BUILD FAILED /data3/gump/jelly-tags/define/build.xml:110: Test org.apache.commons.jelly.tags.define.TestJelly failed Total time: 10 seconds
[GUMP@lsd]: jakarta-commons/commons-dbcp failed
To whom it may engage... This is an automated request, but not an unsolicited one. For help understanding the request please visit http://gump.apache.org/nagged.html, and/or contact [EMAIL PROTECTED] Project commons-dbcp has an issue affecting it's community integration. This issue affects 13 projects. The current state is 'Failed', for reason 'Build Timed Out' Full details are available at: http://lsd.student.utwente.nl/gump/jakarta-commons/commons-dbcp.html, however some snippets follow: - - - - - -- -- G U M P Gump provided these annotations: - Info - Sole jar [/data3/gump/jakarta-commons/dbcp/dist/commons-dbcp.jar] identifier set to project name - Error - Failed with reason build timed out - - - - - -- -- G U M P Gump performed this work: Work Name: build_jakarta-commons_commons-dbcp (Type: Build) State: Failed Elapsed: 0 hours, 60 minutes, 0 seconds Command Line: java -Djava.awt.headless=true -Dbuild.clonevm=true -Xbootclasspath/p:/data3/gump/xml-xerces2/java/build/xercesImpl.jar:/data3/gump/xml-xerces2/java/build/xmlParserAPIs.jar org.apache.tools.ant.Main -Dgump.merge=/data3/gump/gump-install/work/merge.xml -Dbuild.sysclasspath=only dist [Working Directory: /data3/gump/jakarta-commons/dbcp] - Buildfile: build.xml init: [tstamp] dropping /data3/gump/jakarta-commons/dbcp/dist/classes from path as it doesn't exist clean: prepare-nojdbc3: prepare-jdbc3: [echo] JDBC 3 was detected. prepare: compile: [mkdir] Created dir: /data3/gump/jakarta-commons/dbcp/build/classes [javac] Compiling 39 source files to /data3/gump/jakarta-commons/dbcp/build/classes [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -deprecation for details. build-jar: [mkdir] Created dir: /data3/gump/jakarta-commons/dbcp/dist [jar] Building jar: /data3/gump/jakarta-commons/dbcp/dist/commons-dbcp.jar javadoc: [mkdir] Created dir: /data3/gump/jakarta-commons/dbcp/dist/docs/api [javadoc] Generating Javadoc [javadoc] Javadoc execution [javadoc] Loading source files for package org.apache.commons.dbcp... [javadoc] Loading source files for package org.apache.commons.dbcp.cpdsadapter... [javadoc] Loading source files for package org.apache.commons.dbcp.datasources... [javadoc] Loading source files for package org.apache.commons.jocl... [javadoc] Constructing Javadoc information... - To subscribe to this information via syndicated feeds: RSS: http://lsd.student.utwente.nl/gump/jakarta-commons/commons-dbcp.rss | Atom: http://lsd.student.utwente.nl/gump/jakarta-commons/commons-dbcp.atom -- Gump http://gump.apache.org/ [lsd] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[GUMP@lsd]: jakarta-commons/commons-codec failed
To whom it may engage... This is an automated request, but not an unsolicited one. For help understanding the request please visit http://gump.apache.org/nagged.html, and/or contact [EMAIL PROTECTED] Project commons-codec has an issue affecting it's community integration. This issue affects 129 projects. The current state is 'Failed', for reason 'Build Timed Out' Full details are available at: http://lsd.student.utwente.nl/gump/jakarta-commons/commons-codec.html, however some snippets follow: - - - - - -- -- G U M P Gump provided these annotations: - Info - Sole jar [/data3/gump/jakarta-commons/codec/dist/commons-codec-20040302.jar] identifier set to project name - Error - Failed with reason build timed out - - - - - -- -- G U M P Gump performed this work: Work Name: build_jakarta-commons_commons-codec (Type: Build) State: Failed Elapsed: 0 hours, 60 minutes, 0 seconds Command Line: java -Djava.awt.headless=true -Dbuild.clonevm=true -Xbootclasspath/p:/data3/gump/xml-xerces2/java/build/xercesImpl.jar:/data3/gump/xml-xerces2/java/build/xmlParserAPIs.jar org.apache.tools.ant.Main -Dgump.merge=/data3/gump/gump-install/work/merge.xml -Dbuild.sysclasspath=only -Dcomponent.version=20040302 dist [Working Directory: /data3/gump/jakarta-commons/codec] - Buildfile: build.xml [property] dropping /data3/gump/jakarta-commons/codec/target/classes from path as it doesn't exist [property] dropping /data3/gump/jakarta-commons/codec/target/test-classes from path as it doesn't exist init: [echo] commons-codec 20040302 prepare: [mkdir] Created dir: /data3/gump/jakarta-commons/codec/target [mkdir] Created dir: /data3/gump/jakarta-commons/codec/target/classes [mkdir] Created dir: /data3/gump/jakarta-commons/codec/target/conf [mkdir] Created dir: /data3/gump/jakarta-commons/codec/target/tests [mkdir] Created dir: /data3/gump/jakarta-commons/codec/target/test-reports static: [copy] Copying 1 file to /data3/gump/jakarta-commons/codec/target/conf compile: [javac] Compiling 19 source files to /data3/gump/jakarta-commons/codec/target/classes [copy] Copying 6 files to /data3/gump/jakarta-commons/codec/target/classes javadoc: [mkdir] Created dir: /data3/gump/jakarta-commons/codec/dist [mkdir] Created dir: /data3/gump/jakarta-commons/codec/dist/docs [mkdir] Created dir: /data3/gump/jakarta-commons/codec/dist/docs/api [javadoc] Generating Javadoc [javadoc] Javadoc execution [javadoc] Loading source files for package org.apache.commons.codec... [javadoc] Loading source files for package org.apache.commons.codec.binary... [javadoc] Loading source files for package org.apache.commons.codec.digest... [javadoc] Loading source files for package org.apache.commons.codec.language... [javadoc] Loading source files for package org.apache.commons.codec.net... [javadoc] Constructing Javadoc information... - To subscribe to this information via syndicated feeds: RSS: http://lsd.student.utwente.nl/gump/jakarta-commons/commons-codec.rss | Atom: http://lsd.student.utwente.nl/gump/jakarta-commons/commons-codec.atom -- Gump http://gump.apache.org/ [lsd] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-commons/commons-build project.properties
mdiggory2004/03/02 04:01:37 Modified:commons-build project.properties Log: adding multiproject properties Revision ChangesPath 1.10 +24 -3 jakarta-commons/commons-build/project.properties Index: project.properties === RCS file: /home/cvs/jakarta-commons/commons-build/project.properties,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- project.properties1 Mar 2004 22:31:33 - 1.9 +++ project.properties2 Mar 2004 12:01:37 - 1.10 @@ -73,6 +73,27 @@ ## maven.javadoc.links = http://java.sun.com/j2se/1.4.2/docs/api/ +## +# Multiproject +# +# Multiproject can be used to complete goals across all the projects. +# Multiproject is dependent on the reactor tag, reactor scripting can +# also be inserted into the maven.xml, and velocity scripting can be +# used in places like the navigation.xml to fleshout all project info. +# +## +maven.multiproject.aggregateDir= +maven.multiproject.basedir=.. +maven.multiproject.excludes=commons-build/project.xml +maven.multiproject.includes=*/project.xml +maven.multiproject.ignoreFailures=true +maven.multiproject.navigation=aggregate +maven.multiproject.overviewPage.create=true +maven.multiproject.overviewPage.title=Commons Components +maven.multiproject.overviewPage.link=components +maven.multiproject.overviewPage.linkTitle=Commons Components +maven.multiproject.overviewPage.text= +maven.multiproject.type=jar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [configuration] WebConfiguration
Yes.. I think that in the longer run, the convert code is going to be what we want.. Otherwise the API is going to become larger and larger as we add on more specialized things like Locales etc... However, the WebConfiguration does have some use cases.. Yes, it is a translater, but if I want to use everything via the Configuration interface, it allows me to merge my webconfiguration with my regular configuration. Oliver, if you want to follow up with the [convert] folks, that would be great.. I am a little reluctant to add a dependency on a sandbox project since we just got out of Sandbox, but that may be worth it. Let's get 1.0 out as it stands. I'll post to find out what exactly the process is. Then, lets add in WebConfiguration, but start looking seriously at how wrappers etc can help us with all this conversion and extension of [configuration]. Eric -Original Message- From: Oliver Heger [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 02, 2004 7:43 AM To: Jakarta Commons Developers List Subject: Re: [configuration] WebConfiguration I also often run in the problem of converting data types and writing that Integer.parseInt() stuff. It would be very nice to have a tool that implements exactly that. I have something in mind that can be wrapped over a container object, which implements a generic interface (e.g. a simple getObject() method), and provides other access methods like getInt(), getString(), getList() etc. But I don't think that a configuration object would be the right place. This is no configuration issue, but a data conversion issue. There is a sandbox project named [convert], which I think goes in this direction, but I am not sure what exactly they are doing. A large part of the Configuration interface deals with retrieving properties in different data types, and there are still requests for additional types (Locale, URL, ...). An alternative for enhancing the interface more and more could be to use such a data type conversion wrapper. Do you think this makes sense? Maybe a [convert] developer can provide more information? Oliver Bill Culp schrieb: What about one that's more generic. The WebConfiguration object is being used as a type translator for a simple value get. The technique here would be reflect into and convert type public void init(ServletConfig config) { try { MapUtil config = new MapUtil(config, initParameter); param = config.getInt(param); } catch (NumberFormatException e) {} } Paul Libbrecht wrote: That has ssome good taste... I would add an applet-parameter-based one as well... paul On 1-Mar-04, at 19:02 Uhr, Emmanuel Bourg wrote: Hi, I'd like to suggest a new configuration implementation that bridges between parameters commonly used in web applications (servlet, filter, application and request parameters) and our Configuration interface. Because I'm tired of writting always the same parsing code like: public void init(ServletConfig config) { try { param = Integer.parseInt(config.getInitParameter(param)); } catch (NumberFormatException e) { } } I tought it would be much easier to write instead: public void init(ServletConfig config) { Configuration conf = new WebConfiguration(config); param = conf.getInt(param); } The WebConfiguration works with 4 types of objets specified in its constructor: a ServletConfig, a ServletContext, a FilterConfig or a ServletRequest. I wrote a test case using mock objects covering the different cases except for the FilterConfig, the mock lacks a setInitParameter() method. Also the mock for the ServletRequest sends an exception for unknown parameters instead of returning null, most of its tests break. Emmanuel Bourg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dipl.-Inform. Oliver Heger Zentrale Informationsverarbeitung (ZIV) / Bereich Anwenderverfahren Klinikum der Philipps-Universität Marburg Bunsenstraße 3, D-35037 Marburg Tel: +49 6421 28-66592 mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [configuration] WebConfiguration
Good point I forgot this one. I wonder if I should keep everything in the same class or split the class into a ServletConfiguration, FilterConfiguration, AppletConfiguration, etc. The WebConfiguration could break in a servlet 2.2 environnement due to the lack of servlet filters, this may be an argument in favor of splitting the class. Emmanuel Bourg Paul Libbrecht wrote: That has ssome good taste... I would add an applet-parameter-based one as well... paul On 1-Mar-04, at 19:02 Uhr, Emmanuel Bourg wrote: Hi, I'd like to suggest a new configuration implementation that bridges between parameters commonly used in web applications (servlet, filter, application and request parameters) and our Configuration interface. Because I'm tired of writting always the same parsing code like: public void init(ServletConfig config) { try { param = Integer.parseInt(config.getInitParameter(param)); } catch (NumberFormatException e) { } } I tought it would be much easier to write instead: public void init(ServletConfig config) { Configuration conf = new WebConfiguration(config); param = conf.getInt(param); } The WebConfiguration works with 4 types of objets specified in its constructor: a ServletConfig, a ServletContext, a FilterConfig or a ServletRequest. I wrote a test case using mock objects covering the different cases except for the FilterConfig, the mock lacks a setInitParameter() method. Also the mock for the ServletRequest sends an exception for unknown parameters instead of returning null, most of its tests break. Emmanuel Bourg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Resources] Presence vs. contrib
I'm not sure how you want to handle the tests that require a database configuration and connection (??Craig??). They run fine for me with a simple mysql install. As far as building/dist-ing, Maven is giving me fits. I am fighting with Maven to get it to do what I need (per last discussion about distributions and struts plugins, etc), but I'm just not that familiar with it. I'm not complaining about Maven specifically, I just hate feeling stupid with this or any neat tool ;) Much like the discussions/arguments about jsp vs. velocity, Maven might be cool and might even be more powerful than Ant, but I am just not as knowledgable with Maven as I am with Ant build scripts. I'm going to move them to the main src directory, but I will need some assistence getting the tests to pass. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Jakarta Commons Developers List [EMAIL PROTECTED] Sent: Saturday, February 28, 2004 4:21 PM Subject: Re: [Resources] Presence vs. contrib Quoting Martin Cooper [EMAIL PROTECTED]: The database implementations of Resources are currently under a contrib directory, which seems to imply that they are somehow second class citizens to the other implementations. I'd prefer to see them up there with the best of them. ;-) Perhaps we could use a 'presence' test, as Chain does, to determine whether or not these pieces are built, and then integrate them more fully into the Resources build? +1 to both suggestions. -- Martin Cooper Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-commons-sandbox/sql/src/java/org/apache/commons/sql/model Unique.java
mvdb2004/03/02 05:18:31 Modified:sql/src/java/org/apache/commons/sql/task DatabaseTask.java sql/src/java/org/apache/commons/sql/builder SqlBuilder.java PostgreSqlBuilder.java sql/src/java/org/apache/commons/sql/model Unique.java Log: Removed unused imports. Revision ChangesPath 1.3 +132 -133 jakarta-commons-sandbox/sql/src/java/org/apache/commons/sql/task/DatabaseTask.java Index: DatabaseTask.java === RCS file: /home/cvs/jakarta-commons-sandbox/sql/src/java/org/apache/commons/sql/task/DatabaseTask.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- DatabaseTask.java 28 Feb 2004 03:35:48 - 1.2 +++ DatabaseTask.java 2 Mar 2004 13:18:31 - 1.3 @@ -12,137 +12,136 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -package org.apache.commons.sql.task; - -import java.sql.Connection; -import java.sql.DriverManager; -import java.sql.SQLException; - -import javax.sql.DataSource; - -import org.apache.commons.sql.io.JdbcModelReader; -import org.apache.commons.sql.model.Database; -import org.apache.commons.sql.util.DataSourceWrapper; -import org.apache.tools.ant.BuildException; -import org.apache.tools.ant.Task; - -/** - * This is an abstract class for tasks that need to access a database through - * a connection. - * - * @author a href=mailto:[EMAIL PROTECTED]J. Russell Smyth/a - * @author John Marshall/Connectria - * @version $Id$ - */ -public abstract class DatabaseTask extends Task -{ -/** JDBC URL. */ -protected String dbUrl; - -/** JDBC driver. */ -protected String dbDriver; - -/** JDBC user name. */ -protected String dbUser; - -/** JDBC password. */ -protected String dbPassword; - -/** DB catalog to use. */ -protected String dbCatalog; - -/** DB schema to use. */ -protected String dbSchema; - -public String getDbSchema() -{ -return dbSchema; -} - -public void setDbCatalog(String dbCatalog) -{ -this.dbCatalog = dbCatalog; -} - -public void setDbSchema(String dbSchema) -{ -this.dbSchema = dbSchema; -} - -public void setDbUrl(String v) -{ -dbUrl = v; -} - -public String getDbUrl() -{ -return dbUrl; -} - -public void setDbDriver(String v) -{ -dbDriver = v; -} - -public void setDbUser(String v) -{ -dbUser = v; -} - -public void setDbPassword(String v) -{ -dbPassword = v; -} - -/** - * Prints the connection settings to stderr. - */ -protected void printDbSettings() throws BuildException -{ -System.err.println(Your DB settings are:); -System.err.println(driver : + dbDriver); -System.err.println(URL : + dbUrl); -System.err.println(user : + dbUser); -System.err.println(password : + dbPassword); -System.err.println(catalog : + dbCatalog); -System.err.println(schema : + dbSchema); -} - -/** - * Gets a Connection as specified - * - * @return a Connection to the database - * - * @throws ClassNotFoundException if dbDriver cannot be loaded - * @throws SQLException if the database cannot be connected to - */ -protected DataSource getDataSource() throws ClassNotFoundException, SQLException -{ -// Load the database Driver. -DataSourceWrapper wrapper = new DataSourceWrapper(dbDriver, dbUrl, dbUser, dbPassword); -return wrapper; -} - -/** - * Retrievs the database specification from a connection - * @param con The database connection - * @return the Database schema - * - * @throws SQLException if the schema cannot be read - */ -protected Database getDbFromConnection(Connection con) throws SQLException -{ -JdbcModelReader reader = new JdbcModelReader(con); -if ( dbCatalog!=null ) { -reader.setCatalog(dbCatalog); -} -if ( dbSchema!=null ) { -reader.setSchema(dbSchema); -} - -Database db = reader.getDatabase(); -return db; -} + */ + +package org.apache.commons.sql.task; + +import java.sql.Connection; +import java.sql.SQLException; + +import javax.sql.DataSource; + +import
[DbUtils] ScalarListHandler
Hi, I'd like to suggest a new ResultHandler implementation that converts one ResultSet column into a List of Objects. (Attached) With that it's easy to load a whole column into a List. -- petike http://petike1.uw.hu=Index: BaseTestCase.java === RCS file: /home/cvspublic/jakarta-commons/dbutils/src/test/org/apache/commons/dbutils/BaseTestCase.java,v retrieving revision 1.6 diff -u -r1.6 BaseTestCase.java --- BaseTestCase.java 28 Feb 2004 00:12:22 - 1.6 +++ BaseTestCase.java 2 Mar 2004 10:11:49 - @@ -31,6 +31,7 @@ import org.apache.commons.dbutils.handlers.MapHandlerTest; import org.apache.commons.dbutils.handlers.MapListHandlerTest; import org.apache.commons.dbutils.handlers.ScalarHandlerTest; +import org.apache.commons.dbutils.handlers.ScalarListHandlerTest; import org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSetTest; import org.apache.commons.dbutils.wrappers.StringTrimmedResultSetTest; @@ -150,6 +151,7 @@ suite.addTestSuite(MapHandlerTest.class); suite.addTestSuite(MapListHandlerTest.class); suite.addTestSuite(ScalarHandlerTest.class); +suite.addTestSuite(ScalarListHandlerTest.class); suite.addTestSuite(StringTrimmedResultSetTest.class); suite.addTestSuite(SqlNullCheckedResultSetTest.class);/* * Copyright 2003-2004 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.commons.dbutils.handlers; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import org.apache.commons.dbutils.ResultSetHandler; /** * codeResultSetHandler/code implementation that converts one * codeResultSet/code column into a codeList/code of * codeObject/codes. This class is thread safe. * * @see ResultSetHandler * @since DbUtils 1.1 */ public class ScalarListHandler implements ResultSetHandler { /** * The column number to retrieve. */ private int columnIndex = 1; /** * The column name to retrieve. Either columnName or columnIndex * will be used but never both. */ private String columnName = null; /** * Creates a new instance of ScalarListHandler. The first column will * be returned from codehandle()/code. */ public ScalarListHandler() { super(); } /** * Creates a new instance of ScalarListHandler. * * @param columnIndex The index of the column to retrieve from the * codeResultSet/code. */ public ScalarListHandler(int columnIndex) { this.columnIndex = columnIndex; } /** * Creates a new instance of ScalarListHandler. * * @param columnName The name of the column to retrieve from the * codeResultSet/code. */ public ScalarListHandler(String columnName) { this.columnName = columnName; } /** * Returns one codeResultSet/code column as a codeList/code of * codeObject/codes. The elements are added to the codeList/code via * the codeResultSet.getObject()/code method. * * @return A codeList/code of codeObject/codes, never * codenull/code. * * @throws SQLException * * @see org.apache.commons.dbutils.ResultSetHandler#handle(java.sql.ResultSet) */ public Object handle(ResultSet rs) throws SQLException { List result = new ArrayList(); while (rs.next()) { if (this.columnName == null) { result.add(rs.getObject(this.columnIndex)); } else { result.add(rs.getObject(this.columnName)); } } return result; } }/* * Copyright 2003-2004 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.commons.dbutils.handlers; import java.sql.SQLException; import java.util.List; import
[HiveMind] build in in Eclipse
I build with Maven first; Maven downloads the dependencies. I then set the Eclipse classpath variable to my local Maven download repository ... C:/Documents and Settings/Howard/.maven/repository in my case. Now Eclipse can see the downloaded dependencies and builds fine. -- Howard M. Lewis Ship Independent J2EE / Open-Source Java Consultant Creator, Tapestry: Java Web Components http://howardlewisship.com -Original Message- From: Geoff Longman [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 02, 2004 7:10 AM To: Howard M. Lewis Ship Subject: Re: HiveMind on commons-dev Ah, that explains the deafening silence :-) How do *you* build Hivemind in eclipse? I have Maven but know very little about it - like the MAVEN_REPO classpath variable, what's the deal with that? Geoff - Original Message - From: Howard M. Lewis Ship [EMAIL PROTECTED] To: 'Geoff Longman' [EMAIL PROTECTED] Sent: Monday, March 01, 2004 6:04 PM Subject: HiveMind on commons-dev I had forgotten that I had unsubscribed from commons-dev. I just resubscribed, but I've missed a few things. Glad to see you're liking HiveMind ... the latest changes are really taking it the next level (i.e., so far forward you can't even see Spring in the rearview mirror). -- Howard M. Lewis Ship Independent J2EE / Open-Source Java Consultant Creator, Tapestry: Java Web Components http://howardlewisship.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Configuration] Standard DOM ?
Hi folks, looking into the API I've just seen the HierarchicalDOM4JConfig and I wondered, if there is also support for the w3c DOM? Regards, Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [HiveMind] build in in Eclipse
Hi, On the note of dependancies :) the library framework as it stands depends on the hivemind core components - would it be too early (in terms of stability, proposal etc) to submit a upload request to Ibiblio? It's not a big hassle to build and fix the maven dependancies manually but could be good for early adopters ... Johan On Tue, 2 Mar 2004 08:53:24 -0500, Howard M. Lewis Ship [EMAIL PROTECTED] wrote: I build with Maven first; Maven downloads the dependencies. I then set the Eclipse classpath variable to my local Maven download repository ... C:/Documents and Settings/Howard/.maven/repository in my case. Now Eclipse can see the downloaded dependencies and builds fine. -- Howard M. Lewis Ship Independent J2EE / Open-Source Java Consultant Creator, Tapestry: Java Web Components http://howardlewisship.com -Original Message- From: Geoff Longman [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 02, 2004 7:10 AM To: Howard M. Lewis Ship Subject: Re: HiveMind on commons-dev Ah, that explains the deafening silence :-) How do *you* build Hivemind in eclipse? I have Maven but know very little about it - like the MAVEN_REPO classpath variable, what's the deal with that? Geoff - Original Message - From: Howard M. Lewis Ship [EMAIL PROTECTED] To: 'Geoff Longman' [EMAIL PROTECTED] Sent: Monday, March 01, 2004 6:04 PM Subject: HiveMind on commons-dev I had forgotten that I had unsubscribed from commons-dev. I just resubscribed, but I've missed a few things. Glad to see you're liking HiveMind ... the latest changes are really taking it the next level (i.e., so far forward you can't even see Spring in the rearview mirror). -- Howard M. Lewis Ship Independent J2EE / Open-Source Java Consultant Creator, Tapestry: Java Web Components http://howardlewisship.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- you too? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Resources] Presence vs. contrib
I have used HSQL and/or mckoi quite successfully for running unit tests. In [configuration] we have TestDatabaseConfiguration that demonstrates using DBUnit to populate an HSQLDB database, all in memory. An upcoming HSQLDB 1.7.2 will be even better at being used in memory, you'll be able to specify that the database is to be totally in memory and not persist anythign... Eric -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 02, 2004 12:33 PM To: Jakarta Commons Developers List Subject: Re: [Resources] Presence vs. contrib I'm not sure how you want to handle the tests that require a database configuration and connection (??Craig??). They run fine for me with a simple mysql install. As far as building/dist-ing, Maven is giving me fits. I am fighting with Maven to get it to do what I need (per last discussion about distributions and struts plugins, etc), but I'm just not that familiar with it. I'm not complaining about Maven specifically, I just hate feeling stupid with this or any neat tool ;) Much like the discussions/arguments about jsp vs. velocity, Maven might be cool and might even be more powerful than Ant, but I am just not as knowledgable with Maven as I am with Ant build scripts. I'm going to move them to the main src directory, but I will need some assistence getting the tests to pass. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Jakarta Commons Developers List [EMAIL PROTECTED] Sent: Saturday, February 28, 2004 4:21 PM Subject: Re: [Resources] Presence vs. contrib Quoting Martin Cooper [EMAIL PROTECTED]: The database implementations of Resources are currently under a contrib directory, which seems to imply that they are somehow second class citizens to the other implementations. I'd prefer to see them up there with the best of them. ;-) Perhaps we could use a 'presence' test, as Chain does, to determine whether or not these pieces are built, and then integrate them more fully into the Resources build? +1 to both suggestions. -- Martin Cooper Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [HiveMind] build in in Eclipse
I believe there's a way I can have files automatically shadowed into ibiblio. On your local machine, a maven install will build jakarta-hivemind-xxx.jar and copy it into your local repository, where the library can see it. -- Howard M. Lewis Ship Independent J2EE / Open-Source Java Consultant Creator, Tapestry: Java Web Components http://howardlewisship.com -Original Message- From: Johan Lindquist [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 02, 2004 9:07 AM To: Jakarta Commons Developers List Subject: Re: [HiveMind] build in in Eclipse Hi, On the note of dependancies :) the library framework as it stands depends on the hivemind core components - would it be too early (in terms of stability, proposal etc) to submit a upload request to Ibiblio? It's not a big hassle to build and fix the maven dependancies manually but could be good for early adopters ... Johan On Tue, 2 Mar 2004 08:53:24 -0500, Howard M. Lewis Ship [EMAIL PROTECTED] wrote: I build with Maven first; Maven downloads the dependencies. I then set the Eclipse classpath variable to my local Maven download repository ... C:/Documents and Settings/Howard/.maven/repository in my case. Now Eclipse can see the downloaded dependencies and builds fine. -- Howard M. Lewis Ship Independent J2EE / Open-Source Java Consultant Creator, Tapestry: Java Web Components http://howardlewisship.com -Original Message- From: Geoff Longman [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 02, 2004 7:10 AM To: Howard M. Lewis Ship Subject: Re: HiveMind on commons-dev Ah, that explains the deafening silence :-) How do *you* build Hivemind in eclipse? I have Maven but know very little about it - like the MAVEN_REPO classpath variable, what's the deal with that? Geoff - Original Message - From: Howard M. Lewis Ship [EMAIL PROTECTED] To: 'Geoff Longman' [EMAIL PROTECTED] Sent: Monday, March 01, 2004 6:04 PM Subject: HiveMind on commons-dev I had forgotten that I had unsubscribed from commons-dev. I just resubscribed, but I've missed a few things. Glad to see you're liking HiveMind ... the latest changes are really taking it the next level (i.e., so far forward you can't even see Spring in the rearview mirror). -- Howard M. Lewis Ship Independent J2EE / Open-Source Java Consultant Creator, Tapestry: Java Web Components http://howardlewisship.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- you too? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [HiveMind] build in in Eclipse
Aha - i spent some time on trying this on another project but I must have gotten the project file into a twist - thanks for that! :) On Tue, 2 Mar 2004 09:16:08 -0500, Howard M. Lewis Ship [EMAIL PROTECTED] wrote: I believe there's a way I can have files automatically shadowed into ibiblio. On your local machine, a maven install will build jakarta-hivemind-xxx.jar and copy it into your local repository, where the library can see it. -- Howard M. Lewis Ship Independent J2EE / Open-Source Java Consultant Creator, Tapestry: Java Web Components http://howardlewisship.com -Original Message- From: Johan Lindquist [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 02, 2004 9:07 AM To: Jakarta Commons Developers List Subject: Re: [HiveMind] build in in Eclipse Hi, On the note of dependancies :) the library framework as it stands depends on the hivemind core components - would it be too early (in terms of stability, proposal etc) to submit a upload request to Ibiblio? It's not a big hassle to build and fix the maven dependancies manually but could be good for early adopters ... Johan On Tue, 2 Mar 2004 08:53:24 -0500, Howard M. Lewis Ship [EMAIL PROTECTED] wrote: I build with Maven first; Maven downloads the dependencies. I then set the Eclipse classpath variable to my local Maven download repository ... C:/Documents and Settings/Howard/.maven/repository in my case. Now Eclipse can see the downloaded dependencies and builds fine. -- Howard M. Lewis Ship Independent J2EE / Open-Source Java Consultant Creator, Tapestry: Java Web Components http://howardlewisship.com -Original Message- From: Geoff Longman [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 02, 2004 7:10 AM To: Howard M. Lewis Ship Subject: Re: HiveMind on commons-dev Ah, that explains the deafening silence :-) How do *you* build Hivemind in eclipse? I have Maven but know very little about it - like the MAVEN_REPO classpath variable, what's the deal with that? Geoff - Original Message - From: Howard M. Lewis Ship [EMAIL PROTECTED] To: 'Geoff Longman' [EMAIL PROTECTED] Sent: Monday, March 01, 2004 6:04 PM Subject: HiveMind on commons-dev I had forgotten that I had unsubscribed from commons-dev. I just resubscribed, but I've missed a few things. Glad to see you're liking HiveMind ... the latest changes are really taking it the next level (i.e., so far forward you can't even see Spring in the rearview mirror). -- Howard M. Lewis Ship Independent J2EE / Open-Source Java Consultant Creator, Tapestry: Java Web Components http://howardlewisship.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- you too? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- you too? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [DbUtils] ScalarListHandler
Please create a bugzilla enhancement ticket and attach these files to it so they don't get lost. While I think the handler is useful, its name is non-sensical :-). It fits with the other naming conventions for handlers but you can't really have a scalar and a list at the same time. David --- Bagyinszki P#233;ter [EMAIL PROTECTED] wrote: Hi, I'd like to suggest a new ResultHandler implementation that converts one ResultSet column into a List of Objects. (Attached) With that it's easy to load a whole column into a List. -- petike http://petike1.uw.hu Index: BaseTestCase.java === RCS file: /home/cvspublic/jakarta-commons/dbutils/src/test/org/apache/commons/dbutils/BaseTestCase.java,v retrieving revision 1.6 diff -u -r1.6 BaseTestCase.java --- BaseTestCase.java 28 Feb 2004 00:12:22 - 1.6 +++ BaseTestCase.java 2 Mar 2004 10:11:49 - @@ -31,6 +31,7 @@ import org.apache.commons.dbutils.handlers.MapHandlerTest; import org.apache.commons.dbutils.handlers.MapListHandlerTest; import org.apache.commons.dbutils.handlers.ScalarHandlerTest; +import org.apache.commons.dbutils.handlers.ScalarListHandlerTest; import org.apache.commons.dbutils.wrappers.SqlNullCheckedResultSetTest; import org.apache.commons.dbutils.wrappers.StringTrimmedResultSetTest; @@ -150,6 +151,7 @@ suite.addTestSuite(MapHandlerTest.class); suite.addTestSuite(MapListHandlerTest.class); suite.addTestSuite(ScalarHandlerTest.class); +suite.addTestSuite(ScalarListHandlerTest.class); suite.addTestSuite(StringTrimmedResultSetTest.class); suite.addTestSuite(SqlNullCheckedResultSetTest.class); /* * Copyright 2003-2004 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.commons.dbutils.handlers; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import org.apache.commons.dbutils.ResultSetHandler; /** * codeResultSetHandler/code implementation that converts one * codeResultSet/code column into a codeList/code of * codeObject/codes. This class is thread safe. * * @see ResultSetHandler * @since DbUtils 1.1 */ public class ScalarListHandler implements ResultSetHandler { /** * The column number to retrieve. */ private int columnIndex = 1; /** * The column name to retrieve. Either columnName or columnIndex * will be used but never both. */ private String columnName = null; /** * Creates a new instance of ScalarListHandler. The first column will * be returned from codehandle()/code. */ public ScalarListHandler() { super(); } /** * Creates a new instance of ScalarListHandler. * * @param columnIndex The index of the column to retrieve from the * codeResultSet/code. */ public ScalarListHandler(int columnIndex) { this.columnIndex = columnIndex; } /** * Creates a new instance of ScalarListHandler. * * @param columnName The name of the column to retrieve from the * codeResultSet/code. */ public ScalarListHandler(String columnName) { this.columnName = columnName; } /** * Returns one codeResultSet/code column as a codeList/code of * codeObject/codes. The elements are added to the codeList/code via * the codeResultSet.getObject()/code method. * * @return A codeList/code of codeObject/codes, never * codenull/code. * * @throws SQLException * * @see org.apache.commons.dbutils.ResultSetHandler#handle(java.sql.ResultSet) */ public Object handle(ResultSet rs) throws SQLException { List result = new ArrayList(); while (rs.next()) { if (this.columnName == null) { result.add(rs.getObject(this.columnIndex)); } else { result.add(rs.getObject(this.columnName)); } } return result; } } /* * Copyright 2003-2004 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * *
Re: [SANDBOX] policy question (was Re: [VFS][PATCH] make it compile)
Stefan Bodewig wrote: since I have karma for the sandbox, I could easily apply the patch myself. On the other hand I do not plan to get involved with VFS beyond making it compile right now, so it feel wrong to add myself to the status file and commit away. Should I commit it without adding myself to the status file or should I simply wait until the patch gets applied by one of the people listed there? I say go ahead and commit. Since this is a unique situation, adding yourself to the status file is probably still good practice, but not a necessity. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Resources] Presence vs. contrib
That's great!!! Can you help? diff -u is the best way to submit patches. Thanks in advance ;) -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: Eric Pugh [EMAIL PROTECTED] To: 'Jakarta Commons Developers List' [EMAIL PROTECTED] Sent: Tuesday, March 02, 2004 9:13 AM Subject: RE: [Resources] Presence vs. contrib I have used HSQL and/or mckoi quite successfully for running unit tests. In [configuration] we have TestDatabaseConfiguration that demonstrates using DBUnit to populate an HSQLDB database, all in memory. An upcoming HSQLDB 1.7.2 will be even better at being used in memory, you'll be able to specify that the database is to be totally in memory and not persist anythign... Eric -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 02, 2004 12:33 PM To: Jakarta Commons Developers List Subject: Re: [Resources] Presence vs. contrib I'm not sure how you want to handle the tests that require a database configuration and connection (??Craig??). They run fine for me with a simple mysql install. As far as building/dist-ing, Maven is giving me fits. I am fighting with Maven to get it to do what I need (per last discussion about distributions and struts plugins, etc), but I'm just not that familiar with it. I'm not complaining about Maven specifically, I just hate feeling stupid with this or any neat tool ;) Much like the discussions/arguments about jsp vs. velocity, Maven might be cool and might even be more powerful than Ant, but I am just not as knowledgable with Maven as I am with Ant build scripts. I'm going to move them to the main src directory, but I will need some assistence getting the tests to pass. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Jakarta Commons Developers List [EMAIL PROTECTED] Sent: Saturday, February 28, 2004 4:21 PM Subject: Re: [Resources] Presence vs. contrib Quoting Martin Cooper [EMAIL PROTECTED]: The database implementations of Resources are currently under a contrib directory, which seems to imply that they are somehow second class citizens to the other implementations. I'd prefer to see them up there with the best of them. ;-) Perhaps we could use a 'presence' test, as Chain does, to determine whether or not these pieces are built, and then integrate them more fully into the Resources build? +1 to both suggestions. -- Martin Cooper Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ScalarListHandler
David Graham [EMAIL PROTECTED] 2004.03.02. 06:34:41 -8h-kor rta: Please create a bugzilla enhancement ticket and attach these files to it so they don't get lost. While I think the handler is useful, its name is non-sensical :-). It fits with the other naming conventions for handlers but you can't really have a scalar and a list at the same time. David What do you think about the name ObjectListHandler? -- petike http://petike1.uw.hu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Batch Update
Has any consideration been given to adding batch update capability? For instance, the following method could be added to the QueryRunner class: /** * Execute a batch of SQL INSERT, UPDATE, or DELETE queries. * * @param conn The connection to use to run the query. * @param sql The SQL to execute. * @param params An array of query replacement parameters. * @return The number of rows updated per statement. * @throws SQLException */ public int[] batchUpdate(Connection conn, String sql, Object[][] params) throws SQLException { PreparedStatement stmt = null; int[] rows = null; try { stmt = this.prepareStatement(conn, sql); for(int i = 0; i params.length; i++) { this.fillStatement(stmt, params[i]); stmt.addBatch(); } rows = stmt.executeBatch(); } catch (SQLException e) { this.rethrow(e, sql, params); } finally { DbUtils.close(stmt); } return rows; } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [configuration] WebConfiguration
Here is the new implementation : - the class WebConfiguration has been split into smaller classes for each type. Everything is in a web sub package. - an AppletConfiguration has been introduced - 100% test coverage this time :) But I had to tweak the mocks. - I added a TestAbstractConfiguration class, this is an abstract test case that can be used to test AbstractConfiguration implementations. It might be useful for the 1.0 release even if the web configurations are added later. Emmanuel Bourg /* * Copyright 2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the License) * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.commons.configuration.web; import org.apache.commons.configuration.AbstractConfiguration; import org.apache.commons.collections.iterators.ArrayIterator; import java.applet.Applet; import java.util.Iterator; /** * A configuration wrapper to read applet parameters. * * @author Emmanuel Bourg * @version $Revision$, $Date$ */ public class AppletConfiguration extends AbstractConfiguration { protected Applet applet; public AppletConfiguration(Applet applet) { this.applet = applet; } protected Object getPropertyDirect(String key) { return applet.getParameter(key); } protected void addPropertyDirect(String key, Object obj) { throw new UnsupportedOperationException(Read only configuration); } public boolean isEmpty() { return !getKeys().hasNext(); } public boolean containsKey(String key) { return getPropertyDirect(key) != null; } public void clearProperty(String key) { throw new UnsupportedOperationException(Read only configuration); } public Iterator getKeys() { String[][] paramsInfo = applet.getParameterInfo(); String[] keys = new String[paramsInfo != null ? paramsInfo.length : 0]; for (int i = 0; i keys.length; i++) { keys[i] = paramsInfo[i][0]; } return new ArrayIterator(keys); } } /* * Copyright 2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the License) * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.commons.configuration.web; import org.apache.commons.collections.iterators.EnumerationIterator; import org.apache.commons.configuration.AbstractConfiguration; import javax.servlet.FilterConfig; import java.util.Iterator; /** * A configuration wrapper around a [EMAIL PROTECTED] FilterConfig}. * * @author Emmanuel Bourg * @version $Revision$, $Date$ */ public class FilterConfiguration extends AbstractConfiguration { protected FilterConfig config; /** * Create a FilterConfiguration using the filter initialization parameters. */ public FilterConfiguration(FilterConfig config) { this.config = config; } protected Object getPropertyDirect(String key) { return config.getInitParameter(key); } protected void addPropertyDirect(String key, Object obj) { throw new UnsupportedOperationException(Read only configuration); } public boolean isEmpty() { return !getKeys().hasNext(); } public boolean containsKey(String key) { return getPropertyDirect(key) != null; } public void clearProperty(String key) { throw new UnsupportedOperationException(Read only configuration); } public Iterator getKeys() { return new EnumerationIterator(config.getInitParameterNames()); } } /* * Copyright 2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the License) * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language
[DbUtils] RE: Batch Update
Hi, Ooh, it's been a little while since I've seen a 2d array parameter ;) Anyways, I don't have a response as I haven't been involved with DbUtils for a little bit, but I wanted to ask that you prepend your subject lines with the name of the component in question, e.g. [DbUtils] Batch Update ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Adkins Kendall [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 02, 2004 10:11 AM To: '[EMAIL PROTECTED]' Subject: Batch Update Has any consideration been given to adding batch update capability? For instance, the following method could be added to the QueryRunner class: /** * Execute a batch of SQL INSERT, UPDATE, or DELETE queries. * * @param conn The connection to use to run the query. * @param sql The SQL to execute. * @param params An array of query replacement parameters. * @return The number of rows updated per statement. * @throws SQLException */ public int[] batchUpdate(Connection conn, String sql, Object[][] params) throws SQLException { PreparedStatement stmt = null; int[] rows = null; try { stmt = this.prepareStatement(conn, sql); for(int i = 0; i params.length; i++) { this.fillStatement(stmt, params[i]); stmt.addBatch(); } rows = stmt.executeBatch(); } catch (SQLException e) { this.rethrow(e, sql, params); } finally { DbUtils.close(stmt); } return rows; } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-commons/validator/xdocs index.xml navigation.xml
rleland 2004/03/02 08:19:09 Modified:validator/xdocs index.xml navigation.xml Log: Add section on releases Revision ChangesPath 1.3 +10 -2 jakarta-commons/validator/xdocs/index.xml Index: index.xml === RCS file: /home/cvs/jakarta-commons/validator/xdocs/index.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- index.xml 29 Feb 2004 09:48:28 - 1.2 +++ index.xml 2 Mar 2004 16:19:09 - 1.3 @@ -18,8 +18,8 @@ document properties -titleHome/title -author email=[EMAIL PROTECTED]Martin Cooper/author +titleCommons/title +author email=[EMAIL PROTECTED]Commons Documentation Team/author /properties body @@ -62,6 +62,14 @@ For more information, see the a href=apidocs/index.htmlJavaDocs/a. /p +/section +section name=Releases + ul +liVersion 1.0.2 (from mirror) - 4 Apr 2003 + a href=http://jakarta.apache.org/site/binindex.cgi;binary/a + a href=http://jakarta.apache.org/site/sourceindex.cgi;source/a (latest) +/li + /ul /section /body 1.6 +1 -0 jakarta-commons/validator/xdocs/navigation.xml Index: navigation.xml === RCS file: /home/cvs/jakarta-commons/validator/xdocs/navigation.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- navigation.xml2 Mar 2004 03:27:47 - 1.5 +++ navigation.xml2 Mar 2004 16:19:09 - 1.6 @@ -27,6 +27,7 @@ item name=To Do List href=/tasks.html/ item name=Resources href=/resources.html/ item name=Javascript Javadoc href=/javascript/org/apache/commons/validator/javascript/allclasses-summary.html/ + item name=Download href=http://jakarta.apache.org/site/binindex.cgi/ item name=Legacy 1.0.2 href=/1.0.2/api/org/apache/commons/validator/package-summary.html/ /menu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dbutils] ScalarListHandler
Well, everything is an Object so that doesn't help much. Maybe ColumnListHandler? David --- Bagyinszki P#233;ter [EMAIL PROTECTED] wrote: David Graham [EMAIL PROTECTED] 2004.03.02. 06:34:41 -8h-kor #237;rta: Please create a bugzilla enhancement ticket and attach these files to it so they don't get lost. While I think the handler is useful, its name is non-sensical :-). It fits with the other naming conventions for handlers but you can't really have a scalar and a list at the same time. David What do you think about the name ObjectListHandler? -- petike http://petike1.uw.hu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Search - Find what youre looking for faster http://search.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [SANDBOX] policy question (was Re: [VFS][PATCH] make it compile)
I don't bother to add to the status file as I consider this kind of thing to be Commons development and not VFS specific stuff. It's a bit rude of me, but no one has complained at me yet for barging into their project to fix some typo or move docs around. Hen On Tue, 2 Mar 2004, matthew.hawthorne wrote: Stefan Bodewig wrote: since I have karma for the sandbox, I could easily apply the patch myself. On the other hand I do not plan to get involved with VFS beyond making it compile right now, so it feel wrong to add myself to the status file and commit away. Should I commit it without adding myself to the status file or should I simply wait until the patch gets applied by one of the people listed there? I say go ahead and commit. Since this is a unique situation, adding yourself to the status file is probably still good practice, but not a necessity. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [SANDBOX] policy question (was Re: [VFS][PATCH] make it compile)
On Tue, 2 Mar 2004, Henri Yandell wrote: I don't bother to add to the status file as I consider this kind of thing to be Commons development and not VFS specific stuff. It's a bit rude of me, but no one has complained at me yet for barging into their project to fix some typo or move docs around. I don't consider that rude at all - I consider that right. Too much turf in the Commons - I think this is the main reason why projects stagnate. People assume that somebody else is taking care of project X - I've found that they usually are not. If there is a project with shotty documentation or typos, the expectation should be that it can be fixed by *anyone* with commit rights. Broken windows should be fixed by whomever has the itch and the karma, if another committer doesn't like a change then -1 it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 27325] - Provide a link to download validator source or binary distributions.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27325. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27325 Provide a link to download validator source or binary distributions. --- Additional Comments From [EMAIL PROTECTED] 2004-03-02 17:34 --- I have added a releases section to Validator that should help. Unfortunately, when I tried to rebuild the site with Maven, Maven created a series of recursive directories, that exceeded the maximum directory depth which then could not be deleted. So we'll have to wait for someone else to rebuild, or until I have time to look into it further. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[digester] Tomcat4 and sun outage
I'm noticing difficulty in starting up my tomcat servers, that seems to arise in the digester. I suspect this is caused by the digester having difficulty acquiring the dtd due to the Sun site being down? Does anyone have any tips on localizing the the dtd referenced here? Mar 2, 2004 4:38:48 PM org.apache.commons.digester.Digester startElement SEVERE: Begin event threw error java.lang.NoClassDefFoundError: javax/servlet/ServletException at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:1647) at java.lang.Class.getDeclaredMethods(Class.java:1131) at java.beans.Introspector$1.run(Introspector.java:1126) at java.security.AccessController.doPrivileged(Native Method) at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1124) at java.beans.Introspector.getTargetMethodInfo(Introspector.java:989) at java.beans.Introspector.getBeanInfo(Introspector.java:370) at java.beans.Introspector.getBeanInfo(Introspector.java:144) at java.beans.Introspector.getBeanInfo(Introspector.java:205) at java.beans.Introspector.init(Introspector.java:351) at java.beans.Introspector.getBeanInfo(Introspector.java:144) at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(PropertyUtils.java:949) at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(PropertyUtils.java:979) at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUtils.java:887) at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:934) at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808) at org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:259) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:477) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:805) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1541) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:336) at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:220) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:593) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:148) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1168) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.Catalina.start(Unknown Source) at org.apache.catalina.startup.Catalina.execute(Unknown Source) at org.apache.catalina.startup.Catalina.process(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Unknown Source) Exception during startup processing java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Unknown Source) Caused by: java.lang.NoClassDefFoundError: javax/servlet/ServletException at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:1647) at java.lang.Class.getDeclaredMethods(Class.java:1131) at java.beans.Introspector$1.run(Introspector.java:1126) at java.security.AccessController.doPrivileged(Native Method) at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1124) at java.beans.Introspector.getTargetMethodInfo(Introspector.java:989) at java.beans.Introspector.getBeanInfo(Introspector.java:370) at java.beans.Introspector.getBeanInfo(Introspector.java:144) at java.beans.Introspector.getBeanInfo(Introspector.java:205) at java.beans.Introspector.init(Introspector.java:351) at java.beans.Introspector.getBeanInfo(Introspector.java:144) at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(PropertyUtils.java:949) at
cvs commit: jakarta-commons/logging/xdocs guide.xml
rdonkin 2004/03/02 13:49:49 Modified:logging/xdocs guide.xml Removed: logging usersguide.html Log: Removed old userguide. It's now replaced with version generated by maven. Revision ChangesPath 1.5 +30 -22jakarta-commons/logging/xdocs/guide.xml Index: guide.xml === RCS file: /home/cvs/jakarta-commons/logging/xdocs/guide.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- guide.xml 28 Feb 2004 23:20:57 - 1.4 +++ guide.xml 2 Mar 2004 21:49:49 - 1.5 @@ -181,7 +181,8 @@ log.isTraceEnabled(); /source /ul -subsection name='Best Practices' +/section +section name='Best Practices' p Best practices for programming/planning are presented in two categories: General and Enterprise. @@ -198,8 +199,9 @@ in production level systems. Different corporate enterprises/environments have different requirements, so being flexible always helps. /p -subsection name='General - Code Guards' -p +subsection name='General' +subsection name='Code Guards' +p Code guards are typically used to guard code that only needs to execute in support of logging, that otherwise introduces undesirable runtime overhead @@ -208,10 +210,10 @@ Use the guard methods of the form codelog.islt;iPriority/igt;()/code to verify that logging should be performed, before incurring the overhead of the logging method call. Yes, the logging methods will perform the same check, but only after resolving parameters. -/p -/subsection -subsection name='General - Message Priorities/Levels' -p +/p +/subsection +subsection name='Message Priorities/Levels' +p It is important to ensure that log message are appropriate in content and severity. The following guidelines are suggested: @@ -220,25 +222,29 @@ li bfatal/b - Severe errors that cause premature termination. Expect these to be immediately visible on a status console. -See also a HREF=#InternationalizationInternationalization/a. +See also a HREF=#National%20Language%20Support%20And%20Internationalization +Internationalization/a. /li li berror/b - Other runtime errors or unexpected conditions. Expect these to be immediately visible on a status console. -See also a HREF=#InternationalizationInternationalization/a. +See also a HREF=#National%20Language%20Support%20And%20Internationalization +Internationalization/a. /li li bwarn/b - Use of deprecated APIs, poor use of API, 'almost' errors, other runtime situations that are undesirable or unexpected, but not necessarily wrong. Expect these to be immediately visible on a status console. -See also a HREF=#InternationalizationInternationalization/a. +See also a HREF=#National%20Language%20Support%20And%20Internationalization +Internationalization/a. /li li binfo/b - Interesting runtime events (startup/shutdown). Expect these to be immediately visible on a console, so be conservative and keep to a minimum. -See also a HREF=#InternationalizationInternationalization/a. +See also a HREF=#National%20Language%20Support%20And%20Internationalization +Internationalization/a. /li li bdebug/b - detailed information on the flow through the system. @@ -249,15 +255,17 @@ Expect these to be written to logs only. /li /ul -/subsection -subsection name='General - Default Message Priority/Level' -p +/subsection +subsection name='Default Message Priority/Level' +p By default the message priority should be no lower than binfo/b. That is, by default bdebug/b message should not be seen in the logs. -/p +/p +/subsection /subsection -subsection name='Enterprise - Logging Exceptions' -p +subsection name='Enterprise' +subsection name='Logging Exceptions' +p The general rule in dealing with exceptions is to assume that the user (developer using a tooling/middleware API) isn't going to follow the rules. @@ -267,9 +275,9 @@ or at worst that the problem can be analyzed from your logs. For this discussion, we must make a distinction between different types of exceptions based on what kind of boundaries they cross: -/p -ul -
Re: [digester] Tomcat4 and sun outage
On Wed, 2004-03-03 at 10:42, Mark R. Diggory wrote: I'm noticing difficulty in starting up my tomcat servers, that seems to arise in the digester. I suspect this is caused by the digester having difficulty acquiring the dtd due to the Sun site being down? Does anyone have any tips on localizing the the dtd referenced here? Is the problem with your custom code which uses digester, or with code *inside tomcat*? I find it hard to believe that tomcat itself would require live internet connection to parse its own config files; that problem would have been found fairly quickly :-) What clues lead you to think the problem is to do with retrieving a remote DTD? The exception listed below (NoClassDefFoundError: javax/servlet/ServletException) suggests to me a ClassLoader issue rather than a connectivity issue... Regards, Simon Mar 2, 2004 4:38:48 PM org.apache.commons.digester.Digester startElement SEVERE: Begin event threw error java.lang.NoClassDefFoundError: javax/servlet/ServletException at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:1647) at java.lang.Class.getDeclaredMethods(Class.java:1131) at java.beans.Introspector$1.run(Introspector.java:1126) at java.security.AccessController.doPrivileged(Native Method) at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1124) at java.beans.Introspector.getTargetMethodInfo(Introspector.java:989) at java.beans.Introspector.getBeanInfo(Introspector.java:370) at java.beans.Introspector.getBeanInfo(Introspector.java:144) at java.beans.Introspector.getBeanInfo(Introspector.java:205) at java.beans.Introspector.init(Introspector.java:351) at java.beans.Introspector.getBeanInfo(Introspector.java:144) at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(PropertyUtils.java:949) at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(PropertyUtils.java:979) at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUtils.java:887) at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:934) at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808) at org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:259) at org.apache.commons.digester.Rule.begin(Rule.java:200) at - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 27381] New: - Bean Utilities: add BeanComparator.equals()
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27381. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27381 Bean Utilities: add BeanComparator.equals() Summary: Bean Utilities: add BeanComparator.equals() Product: Commons Version: 1.6 Final Platform: Other URL: http://mcwestcorp.com/collections- NullObjectComparator.zip OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Bean Utilities AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] BeanComparator lacks an equals method. This is causing a newly proposed unit test (contained in the below archive file) related to commons-collections Comparators to fail. A version of BeanComparator which adds an equals method (as well as a hashcode method) can be found in the archive file at http://mcwestcorp.com/collections-NullObjectComparator.zip -- Brian Westrich McWest Corp. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [digester] Tomcat4 and sun outage
hi mark a couple of observations that makes me think that perhaps you're on the wrong track: 1. AFAIK tomcat uses an internal catalog version of the standard sun DTDs and so providing that the DOCTYPE description is correct, the parser should not attempt to retrieve the DTD from the DOCTYPE uri. (perhaps craig or Jean-Francois will be able to give a more authoritative statement about tomcat.) 2. the stack trace looks strange (for a DTD uri issue). the exception seem to concern a j2ee class (ServletException) that appears to be missing from the classpath. (if it were a DTD loading issue then i'd expect to see an io-related exception thrown.) - robert On 2 Mar 2004, at 21:42, Mark R. Diggory wrote: I'm noticing difficulty in starting up my tomcat servers, that seems to arise in the digester. I suspect this is caused by the digester having difficulty acquiring the dtd due to the Sun site being down? Does anyone have any tips on localizing the the dtd referenced here? Mar 2, 2004 4:38:48 PM org.apache.commons.digester.Digester startElement SEVERE: Begin event threw error java.lang.NoClassDefFoundError: javax/servlet/ServletException at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:1647) at java.lang.Class.getDeclaredMethods(Class.java:1131) at java.beans.Introspector$1.run(Introspector.java:1126) at java.security.AccessController.doPrivileged(Native Method) at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java: 1124) at java.beans.Introspector.getTargetMethodInfo(Introspector.java:989) at java.beans.Introspector.getBeanInfo(Introspector.java:370) at java.beans.Introspector.getBeanInfo(Introspector.java:144) at java.beans.Introspector.getBeanInfo(Introspector.java:205) at java.beans.Introspector.init(Introspector.java:351) at java.beans.Introspector.getBeanInfo(Introspector.java:144) at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(Prope rtyUtils.java:949) at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(Prope rtyUtils.java:979) at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(Proper tyUtils.java:887) at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:934) at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808) at org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.j ava:259) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXPar ser.java:477) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement( XMLDocumentFragmentScannerImpl.java:805) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi spatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1541) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLD ocumentFragmentScannerImpl.java:336) at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.j ava:220) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java: 593) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:148) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.jav a:1168) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.Catalina.start(Unknown Source) at org.apache.catalina.startup.Catalina.execute(Unknown Source) at org.apache.catalina.startup.Catalina.process(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja va:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso rImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Unknown Source) Exception during startup processing java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja va:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso rImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Unknown Source) Caused by: java.lang.NoClassDefFoundError: javax/servlet/ServletException at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:1647) at
RE: [COLLECTIONS (Comparator)] Proposal: add parent bean null checking
I have coded a first draft of alternative #1 of the proposal described in the attached email. Feedback is welcome, as well as your thoughts on whether this should be committed. The source code for the NullObjectComparator class is located at: http://mcwestcorp.com/collections-NullObjectComparator.zip Also in this zip file are an updated ComparatorUtils to add the methods nullObjectLowComparator and nullObjectHighComparator. Also included are unit tests for the new class, and an updated version of the TestAll class (which runs all Comparator unit tests) which also runs the (new) unit test for NullObjectComparator. An example usage of NullObjectComparator is also included: NullObjectComparatorExample In writing the above unit tests, I also came across a possible bug in beanutils BeanComparator. This class does not currently have an equals method. An updated version of the class has been included. -- Brian -- Brian Westrich McWest Corp. email: [EMAIL PROTECTED] P.S. Here is the bugzilla report related to the above issue with BeanComparator: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27381 -Original Message- From: Brian Westrich [mailto:[EMAIL PROTECTED] Sent: Thursday, February 26, 2004 8:44 AM To: [EMAIL PROTECTED] Cc: Brian Westrich [EMAIL PROTECTED] Subject: [COLLECTIONS (Comparator)] Proposal: add parent bean null checking Hello commons collections developers, When using commons comparators to sort collections, I need to handle cases where a null (top level) element is found in the collection (I know this is not a usual error condition, but the sorting code I'm replacing with a Jakarta commons approach does this check so my new code needs to do it as well). The NullComparator class works fine for handling null properties on elements, e.g. ... List comparators = new ArrayList(); comparators.add(new BeanComparator(name, new NullComparator())); Comparator comparator = new ComparatorChain(comparators); Collections.sort(toSort, comparator); // works fine but using NullComparator (with the default constructor) to detect null top level elements currently only works if all elements implement the Comparable interface. Specifically, the following code throws a ClassCastException if one or more list elements do not implement Comparable List comparators = new ArrayList(); comparators.add(new NullComparator()); comparators.add(new BeanComparator(name, new NullComparator())); Comparator comparator = new ComparatorChain(comparators); Collections.sort(toSort, comparator); // throws a ClassCastException if all list elements don't implement comparable interface One alternative would be to create a new class (named something like NullBeanComparator or NullObjectComparator) similar to NullComparator except that when both objects were non-null it would return 0, e.g. public int compare(Object o1, Object o2) { if(o1 == o2) { return 0; } if(o1 == null) { return (this.nullsAreHigh ? 1 : -1); } if(o2 == null) { return (this.nullsAreHigh ? -1 : 1); } return 0; } This new class would be appropriate for use as the first comparator in the above comparator chain. One would also add analogous methods to ComparatorUtils such as nullObjectLowComparator and nullObjectHighComparator. Another (less preferable?) alternative would be to change NullComparator.compare(Object, Object) to treat two objects as equal if both are not null and either does not implement the comparable interface. e.g. public int compare(Object o1, Object o2) { if(o1 == o2) { return 0; } if(o1 == null) { return (this.nullsAreHigh ? 1 : -1); } if(o2 == null) { return (this.nullsAreHigh ? -1 : 1); } if ((o1 instanceof Comparable == false) || (o2 instanceof Comparable == false)) return 0; // a line such as this would be added return this.nonNullComparator.compare(o1, o2); } But this latter approach seems problematic when nonNullComparator does not require the compared objects to implement Comparable (for example, when one constructs a NullComparator using a FixedOrderComparator). In such cases it seems preferable to call nonNullComparator.compare(). So I prefer the first alternative over the second. I appreciate hearing people's thoughts on the above alternatives as well as any other possible alternatives. -- Brian _ Brian Westrich McWest Corp. 612-508-1827 ([EMAIL PROTECTED]) www.mcwestcorp.com _ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [digester] Tomcat4 and sun outage
Well, I had to go through all my webapplications on one machine and replace any external references to the dtd with localized copies, somehow, I got the one machine running again by doing this, the second machine, I went through and did this again, but instead of the server coming up with the webapplications loading properly, I got this error instead. These are tomcat4-4.1.27-2jpp rpm's running on Redhat 7.3 with Apache 1.3 The dependencies from JPackage are such that the servlet api gets installed independnently of tomcat4 using servletapi4-4.0.4-3jpp bash-2.05a# rpm -ql servletapi4 /usr/share/doc/servletapi4-4.0.4 /usr/share/doc/servletapi4-4.0.4/LICENSE /usr/share/doc/servletapi4-4.0.4/README.txt /usr/share/java/servletapi4-4.0.4.jar /usr/share/java/servletapi4.jar My thinking that it has something to do with the DTD came from at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java: 593) Which suggested to me that it was being mischevious and somehow throwing the java.lang.NoClassDefFoundError after attempting to do something with the digester, something which required the validation of a DTD before determining the name of a class? I could be crazy, but these machines were running fine before sun went down today. I even have one running which I'm afraid to restart because I might loose it on reload. -Mark robert burrell donkin wrote: hi mark a couple of observations that makes me think that perhaps you're on the wrong track: 1. AFAIK tomcat uses an internal catalog version of the standard sun DTDs and so providing that the DOCTYPE description is correct, the parser should not attempt to retrieve the DTD from the DOCTYPE uri. (perhaps craig or Jean-Francois will be able to give a more authoritative statement about tomcat.) 2. the stack trace looks strange (for a DTD uri issue). the exception seem to concern a j2ee class (ServletException) that appears to be missing from the classpath. (if it were a DTD loading issue then i'd expect to see an io-related exception thrown.) - robert On 2 Mar 2004, at 21:42, Mark R. Diggory wrote: I'm noticing difficulty in starting up my tomcat servers, that seems to arise in the digester. I suspect this is caused by the digester having difficulty acquiring the dtd due to the Sun site being down? Does anyone have any tips on localizing the the dtd referenced here? Mar 2, 2004 4:38:48 PM org.apache.commons.digester.Digester startElement SEVERE: Begin event threw error java.lang.NoClassDefFoundError: javax/servlet/ServletException at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:1647) at java.lang.Class.getDeclaredMethods(Class.java:1131) at java.beans.Introspector$1.run(Introspector.java:1126) at java.security.AccessController.doPrivileged(Native Method) at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java: 1124) at java.beans.Introspector.getTargetMethodInfo(Introspector.java:989) at java.beans.Introspector.getBeanInfo(Introspector.java:370) at java.beans.Introspector.getBeanInfo(Introspector.java:144) at java.beans.Introspector.getBeanInfo(Introspector.java:205) at java.beans.Introspector.init(Introspector.java:351) at java.beans.Introspector.getBeanInfo(Introspector.java:144) at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(Prope rtyUtils.java:949) at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(Prope rtyUtils.java:979) at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(Proper tyUtils.java:887) at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:934) at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808) at org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.j ava:259) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXPar ser.java:477) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement( XMLDocumentFragmentScannerImpl.java:805) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi spatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1541) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLD ocumentFragmentScannerImpl.java:336) at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.j ava:220) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java: 593) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:148) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.jav a:1168)
Re: [digester] PathCallParamRule
On 2 Mar 2004, at 21:09, Simon Kitching wrote: Hi, I think we need a CallParamRule variant which saves the matching tagname as a method call parameter. This mail was prompted by a user question about building a HashMap using this kind of data: item foo1/foo bar2/bar /item where the tagnames within an item are not known in advance. There is in CVS a new class PathCallParamRule which passes the whole path. I suggest that we add a flag to this method to pass just the tagname rather than the whole path. Alternatively, we could have a completely separate rule for just the tag name. either seems fine to me (though possible another rule might possible be a little easy for a user to find). anyone else have any views on this? On the subject of CallParamRule variants: they are getting a little messy now. I suggest that we adopt a naming standard of: CallParamWithXXXRule for all call-param-rule variants, so that it is easier for users to find the available param rules. This would mean renaming PathCallParamRule to CallParamWithPathRule. I would also suggest creating a CallParamWithObjectRule which is a copy of ObjectCallParamRule, and marking ObjectCallParamRule as deprecated. i think that tidying up the CallParam stuff is overdue. the proposed naming scheme sounds pretty intuitive to me. if anyone disagrees, then now's a good time to jump in. Or even more alternatively, we could roll all existing param-related rule functionality into the CallParamRule, and have a constructor which takes some enum-like flag to say which behaviour we want: digester.addCallParam(pattern, CallParamRule.TAGNAME, 0); digester.addCallParam(pattern, CallParamRule.ATTR, 0); digester.addCallParam(pattern, CallParamRule.BODY, 0); digester.addCallParam(pattern, CallParamRule.MATCHPATH, 0); This would clean up the existing CallParamRule constructor API, which has grown rather ugly as features have been added. i think either of these proposals sounds like definite improvements. i have a slight dislike of enum-like flags so i that digester.addCallParamWithTagName(pattern, 0); digester.addCallParamWithAttribute(pattern, 0); digester.addCallParamWithBody(pattern, 0); digester.addCallParamWithMatchingPath(pattern, 0); might be better. i don't feel very strongly about this so i'd be interested to hear what other people think. - robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [digester] Tomcat4 and sun outage
Hold Everything! Yep, I went back and looked into /usr/share/tomcat4/common/lib ... and sure enough, the symlinks to the api are missing on that machine ... Now if I can only find the culprit! ;-) Mark R. Diggory wrote: Well, I had to go through all my webapplications on one machine and replace any external references to the dtd with localized copies, somehow, I got the one machine running again by doing this, the second machine, I went through and did this again, but instead of the server coming up with the webapplications loading properly, I got this error instead. These are tomcat4-4.1.27-2jpp rpm's running on Redhat 7.3 with Apache 1.3 The dependencies from JPackage are such that the servlet api gets installed independnently of tomcat4 using servletapi4-4.0.4-3jpp bash-2.05a# rpm -ql servletapi4 /usr/share/doc/servletapi4-4.0.4 /usr/share/doc/servletapi4-4.0.4/LICENSE /usr/share/doc/servletapi4-4.0.4/README.txt /usr/share/java/servletapi4-4.0.4.jar /usr/share/java/servletapi4.jar My thinking that it has something to do with the DTD came from at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java: 593) Which suggested to me that it was being mischevious and somehow throwing the java.lang.NoClassDefFoundError after attempting to do something with the digester, something which required the validation of a DTD before determining the name of a class? I could be crazy, but these machines were running fine before sun went down today. I even have one running which I'm afraid to restart because I might loose it on reload. -Mark robert burrell donkin wrote: hi mark a couple of observations that makes me think that perhaps you're on the wrong track: 1. AFAIK tomcat uses an internal catalog version of the standard sun DTDs and so providing that the DOCTYPE description is correct, the parser should not attempt to retrieve the DTD from the DOCTYPE uri. (perhaps craig or Jean-Francois will be able to give a more authoritative statement about tomcat.) 2. the stack trace looks strange (for a DTD uri issue). the exception seem to concern a j2ee class (ServletException) that appears to be missing from the classpath. (if it were a DTD loading issue then i'd expect to see an io-related exception thrown.) - robert On 2 Mar 2004, at 21:42, Mark R. Diggory wrote: I'm noticing difficulty in starting up my tomcat servers, that seems to arise in the digester. I suspect this is caused by the digester having difficulty acquiring the dtd due to the Sun site being down? Does anyone have any tips on localizing the the dtd referenced here? Mar 2, 2004 4:38:48 PM org.apache.commons.digester.Digester startElement SEVERE: Begin event threw error java.lang.NoClassDefFoundError: javax/servlet/ServletException at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:1647) at java.lang.Class.getDeclaredMethods(Class.java:1131) at java.beans.Introspector$1.run(Introspector.java:1126) at java.security.AccessController.doPrivileged(Native Method) at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java: 1124) at java.beans.Introspector.getTargetMethodInfo(Introspector.java:989) at java.beans.Introspector.getBeanInfo(Introspector.java:370) at java.beans.Introspector.getBeanInfo(Introspector.java:144) at java.beans.Introspector.getBeanInfo(Introspector.java:205) at java.beans.Introspector.init(Introspector.java:351) at java.beans.Introspector.getBeanInfo(Introspector.java:144) at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(Prope rtyUtils.java:949) at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(Prope rtyUtils.java:979) at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(Proper tyUtils.java:887) at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:934) at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808) at org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.j ava:259) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXPar ser.java:477) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement( XMLDocumentFragmentScannerImpl.java:805) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi spatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1541) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLD ocumentFragmentScannerImpl.java:336) at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.j ava:220) at
Re: [digester] Tomcat4 and sun outage
I suspect this is more of a subject for the JPackage list, I'll be forwarding the conversion onto there. JPackage Folks, How are the servletapi4 jars resolved? Apparently they are not getting symlinked in my installation? Are they resolved and placed on the classpath some other way? I suspect that the new tomcat4 rpm's use the jpackage utils to resolve the servletapi jars outside of tomcat (and do not symlink the jars into the common/lib directory, I also suspect that somehow, java.sun.com being down still effects this process of loading, I'll be able to verify this when sun comes back live, then I close off the sun site using the firewall and see if it fails to start again. -Mark Mark R. Diggory wrote: Hold Everything! Yep, I went back and looked into /usr/share/tomcat4/common/lib ... and sure enough, the symlinks to the api are missing on that machine ... Now if I can only find the culprit! ;-) Mark R. Diggory wrote: Well, I had to go through all my webapplications on one machine and replace any external references to the dtd with localized copies, somehow, I got the one machine running again by doing this, the second machine, I went through and did this again, but instead of the server coming up with the webapplications loading properly, I got this error instead. These are tomcat4-4.1.27-2jpp rpm's running on Redhat 7.3 with Apache 1.3 The dependencies from JPackage are such that the servlet api gets installed independnently of tomcat4 using servletapi4-4.0.4-3jpp bash-2.05a# rpm -ql servletapi4 /usr/share/doc/servletapi4-4.0.4 /usr/share/doc/servletapi4-4.0.4/LICENSE /usr/share/doc/servletapi4-4.0.4/README.txt /usr/share/java/servletapi4-4.0.4.jar /usr/share/java/servletapi4.jar My thinking that it has something to do with the DTD came from at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java: 593) Which suggested to me that it was being mischevious and somehow throwing the java.lang.NoClassDefFoundError after attempting to do something with the digester, something which required the validation of a DTD before determining the name of a class? I could be crazy, but these machines were running fine before sun went down today. I even have one running which I'm afraid to restart because I might loose it on reload. -Mark robert burrell donkin wrote: hi mark a couple of observations that makes me think that perhaps you're on the wrong track: 1. AFAIK tomcat uses an internal catalog version of the standard sun DTDs and so providing that the DOCTYPE description is correct, the parser should not attempt to retrieve the DTD from the DOCTYPE uri. (perhaps craig or Jean-Francois will be able to give a more authoritative statement about tomcat.) 2. the stack trace looks strange (for a DTD uri issue). the exception seem to concern a j2ee class (ServletException) that appears to be missing from the classpath. (if it were a DTD loading issue then i'd expect to see an io-related exception thrown.) - robert On 2 Mar 2004, at 21:42, Mark R. Diggory wrote: I'm noticing difficulty in starting up my tomcat servers, that seems to arise in the digester. I suspect this is caused by the digester having difficulty acquiring the dtd due to the Sun site being down? Does anyone have any tips on localizing the the dtd referenced here? Mar 2, 2004 4:38:48 PM org.apache.commons.digester.Digester startElement SEVERE: Begin event threw error java.lang.NoClassDefFoundError: javax/servlet/ServletException at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:1647) at java.lang.Class.getDeclaredMethods(Class.java:1131) at java.beans.Introspector$1.run(Introspector.java:1126) at java.security.AccessController.doPrivileged(Native Method) at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java: 1124) at java.beans.Introspector.getTargetMethodInfo(Introspector.java:989) at java.beans.Introspector.getBeanInfo(Introspector.java:370) at java.beans.Introspector.getBeanInfo(Introspector.java:144) at java.beans.Introspector.getBeanInfo(Introspector.java:205) at java.beans.Introspector.init(Introspector.java:351) at java.beans.Introspector.getBeanInfo(Introspector.java:144) at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(Prope rtyUtils.java:949) at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(Prope rtyUtils.java:979) at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(Proper tyUtils.java:887) at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:934) at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808) at org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.j ava:259) at
cvs commit: jakarta-commons/cli project.xml
jkeyes 2004/03/02 17:08:58 Modified:cli Tag: RESEARCH_CLI_2_ROXSPRING project.xml Log: - only accept *Test.java as unit tests Revision ChangesPath No revision No revision 1.16.2.5 +0 -1 jakarta-commons/cli/project.xml Index: project.xml === RCS file: /home/cvs/jakarta-commons/cli/project.xml,v retrieving revision 1.16.2.4 retrieving revision 1.16.2.5 diff -u -r1.16.2.4 -r1.16.2.5 --- project.xml 15 Feb 2004 20:52:21 - 1.16.2.4 +++ project.xml 3 Mar 2004 01:08:58 - 1.16.2.5 @@ -104,7 +104,6 @@ unitTest includes include**/*Test.java/include -include**/Test*.java/include /includes /unitTest /build - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-commons/cli/src/test/org/apache/commons/cli2/commandline WriteableCommandLineImplTest.java DefaultingCommandLineTest.java
jkeyes 2004/03/02 17:10:20 Modified:cli/src/test/org/apache/commons/cli2/commandline Tag: RESEARCH_CLI_2_ROXSPRING WriteableCommandLineImplTest.java DefaultingCommandLineTest.java Added: cli/src/test/org/apache/commons/cli2 Tag: RESEARCH_CLI_2_ROXSPRING CommandLineTestCase.java WriteableCommandLineTestCase.java Removed: cli/src/test/org/apache/commons/cli2 Tag: RESEARCH_CLI_2_ROXSPRING CommandLineTest.java WriteableCommandLineTest.java Log: - renamed abstract 'Test's to 'TestCase's Revision ChangesPath No revision No revision 1.1.2.1 +484 -0 jakarta-commons/cli/src/test/org/apache/commons/cli2/Attic/CommandLineTestCase.java 1.1.2.1 +94 -0 jakarta-commons/cli/src/test/org/apache/commons/cli2/Attic/WriteableCommandLineTestCase.java No revision No revision 1.1.2.2 +2 -2 jakarta-commons/cli/src/test/org/apache/commons/cli2/commandline/Attic/WriteableCommandLineImplTest.java Index: WriteableCommandLineImplTest.java === RCS file: /home/cvs/jakarta-commons/cli/src/test/org/apache/commons/cli2/commandline/Attic/WriteableCommandLineImplTest.java,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -r1.1.2.1 -r1.1.2.2 --- WriteableCommandLineImplTest.java 25 Feb 2004 00:00:24 - 1.1.2.1 +++ WriteableCommandLineImplTest.java 3 Mar 2004 01:10:19 - 1.1.2.2 @@ -18,9 +18,9 @@ import java.util.ArrayList; import org.apache.commons.cli2.WriteableCommandLine; -import org.apache.commons.cli2.WriteableCommandLineTest; +import org.apache.commons.cli2.WriteableCommandLineTestCase; -public class WriteableCommandLineImplTest extends WriteableCommandLineTest { +public class WriteableCommandLineImplTest extends WriteableCommandLineTestCase { /* (non-Javadoc) * @see org.apache.commons.cli2.WriteableCommandLineTest#createWriteableCommandLine() 1.1.2.2 +2 -2 jakarta-commons/cli/src/test/org/apache/commons/cli2/commandline/Attic/DefaultingCommandLineTest.java Index: DefaultingCommandLineTest.java === RCS file: /home/cvs/jakarta-commons/cli/src/test/org/apache/commons/cli2/commandline/Attic/DefaultingCommandLineTest.java,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -r1.1.2.1 -r1.1.2.2 --- DefaultingCommandLineTest.java25 Feb 2004 00:01:14 - 1.1.2.1 +++ DefaultingCommandLineTest.java3 Mar 2004 01:10:19 - 1.1.2.2 @@ -19,7 +19,7 @@ import java.util.Iterator; import org.apache.commons.cli2.CommandLine; -import org.apache.commons.cli2.CommandLineTest; +import org.apache.commons.cli2.CommandLineTestCase; import org.apache.commons.cli2.Option; import org.apache.commons.cli2.WriteableCommandLine; import org.apache.commons.cli2.builders.DefaultOptionBuilder; @@ -30,7 +30,7 @@ * To change the template for this generated type comment go to * Window - Preferences - Java - Code Generation - Code and Comments */ -public class DefaultingCommandLineTest extends CommandLineTest { +public class DefaultingCommandLineTest extends CommandLineTestCase { private DefaultingCommandLine defaults; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[cli] abstract 'Test' classes
I've renamed WriteableCommandLineTest and CommandLineTest to WriteableCommandLineTestCase and CommandLineTestCase respectively. This follows the convention used in the other test packages. I also changed the includes/ element in project.xml so the only pattern now accepted as a unit test is **/*Test.java. -John K - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-commons/math/xdocs/userguide stat.xml
psteitz 2004/03/02 18:32:25 Modified:math/xdocs/userguide stat.xml Log: Filled in missing content in univariate statistics section. Revision ChangesPath 1.10 +92 -11jakarta-commons/math/xdocs/userguide/stat.xml Index: stat.xml === RCS file: /home/cvs/jakarta-commons/math/xdocs/userguide/stat.xml,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- stat.xml 29 Feb 2004 21:25:08 - 1.9 +++ stat.xml 3 Mar 2004 02:32:25 - 1.10 @@ -57,7 +57,7 @@ all statistics, consists of codeevaluate()/code methods that take double[] arrays as arguments and return the value of the statistic. This interface is extended by a href=../apidocs/org/apache/commons/math/stat/univariate/StorelessUnivariateStatistic.html - org.apache.commons.math.stat.univariate.StorelessUnivariateStatistic,/a which adds codeincrement(),/code + StorelessUnivariateStatistic,/a which adds codeincrement(),/code codegetResult()/code and associated methods to support storageless implementations that maintain counters, sums or other state information as values are added using the codeincrement()/code method. @@ -65,29 +65,110 @@ p Abstract implementations of the top level interfaces are provided in a href=../apidocs/org/apache/commons/math/stat/univariate/AbstractUnivariateStatistic.html - org.apache.commons.math.stat.univariate.AbstractUnivariateStatistic/a and + AbstractUnivariateStatistic/a and a href=../apidocs/org/apache/commons/math/stat/univariate/AbstractStorelessUnivariateStatistic.html - org.apache.commons.math.stat.univariate.AbstractStorelessUnivariateStatistic/a respectively. + AbstractStorelessUnivariateStatistic/a respectively. /p p Each statistic is implemented as a separate class, in one of the subpackages (moment, rank, summary) and each extends one of the abstract classes above (depending on whether or not value storage is required to compute the statistic). There are several ways to instantiate and use statistics. Statistics can be instantiated and used directly, but it is - generally more convenient to access them using the provided aggregates: + generally more convenient (and efficient) to access them using the provided aggregates, a href=../apidocs/org/apache/commons/math/stat/DescriptiveStatistics.html +DescriptiveStatistics/a and a href=../apidocs/org/apache/commons/math/stat/SummaryStatistics.html +SummaryStatistics./a codeDescriptiveStatistics/code maintains the input data in memory and has the capability +of producing rolling statistics computed from a window consisting of the most recently added values. codeSummaryStatisics/code +does not store the input data values in memory, so the statistics included in this aggregate are limited to those that can be +computed in one pass through the data without access to the full array of values. +/p +p table -trthAggregate/ththStatistics Included/ththValues stored?/th/tr +trthAggregate/ththStatistics Included/ththValues stored?/ththRolling capability?/th/tr trtda href=../apidocs/org/apache/commons/math/stat/DescriptiveStatistics.html - org.apache.commons.math.stat.DescriptiveStatistics/a/tdtdAll/tdtdYes/td/tr +DescriptiveStatistics/a/tdtdmin, max, mean, geometric mean, n, sum, sum of squares, standard deviation, variance, percentiles, skewness, kurtosis, median/tdtdYes/tdtdYes/td/tr trtda href=../apidocs/org/apache/commons/math/stat/SummaryStatistics.html -org.apache.commons.math.stat.SummaryStatistics/a/tdtdmin, max, mean, geometric mean, n, sum, sum of squares, standard deviation, variance/tdtdNo/td/tr +SummaryStatistics/a/tdtdmin, max, mean, geometric mean, n, sum, sum of squares, standard deviation, variance/tdtdNo/tdtdNo/td/tr /table - TODO: add code sample +/p +p There is also a utility class, a href=../apidocs/org/apache/commons/math/stat/StatUtils.html - org.apache.commons.math.stat.StatUtils,/a that provides static methods for computing statistics - from double[] arrays. + StatUtils,/a that provides static methods for computing statistics + directly from double[] arrays. /p +p + Here are some examples showing how to compute univariate statistics. + dl + dtCompute summary statistics for a list of double values/dt +
DO NOT REPLY [Bug 27243] - [math] T-Distribution causing a StackOverflowError
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27243. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27243 [math] T-Distribution causing a StackOverflowError --- Additional Comments From [EMAIL PROTECTED] 2004-03-03 05:38 --- I took a look at the nightly build jars and they are most definately out of date. I believe that the nightly build process is going after the sandbox CVS module and not commons proper. So, while we get the nightly build situation addressed, you can either: 1) grab the latest source from the CVS and build it with ant or maven. or 2) grab the jar I just built from http://www.apache.org/~brentworden/commons- math-1.0-dev.jar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[math] Nightly build not using correct source tree.
I believe the nightly builds are being built using the sandbox sources. Who would I talk to about changing this or where should I go to get this remedied? Brent Worden http://www.brent.worden.org -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 02, 2004 11:39 PM To: [EMAIL PROTECTED] Subject: DO NOT REPLY [Bug 27243] - [math] T-Distribution causing a StackOverflowError --- Additional Comments From [EMAIL PROTECTED] 2004-03-03 05:38 --- I took a look at the nightly build jars and they are most definately out of date. I believe that the nightly build process is going after the sandbox CVS module and not commons proper. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 27243] - [math] T-Distribution causing a StackOverflowError
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27243. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27243 [math] T-Distribution causing a StackOverflowError [EMAIL PROTECTED] changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution||WORKSFORME --- Additional Comments From [EMAIL PROTECTED] 2004-03-03 06:56 --- The jar you gave me works fine. Thank you for your patience with me and for doing a great job. Do you have any idea when the nightly build will be fixed? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/webdav WebDavFileSystem.java WebdavFileObject.java
bodewig 2004/03/02 23:05:35 Modified:vfs/src/java/org/apache/commons/vfs/provider/webdav WebDavFileSystem.java WebdavFileObject.java Log: fix broken imports Revision ChangesPath 1.10 +2 -2 jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/webdav/WebDavFileSystem.java Index: WebDavFileSystem.java === RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/webdav/WebDavFileSystem.java,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- WebDavFileSystem.java 28 Feb 2004 03:35:52 - 1.9 +++ WebDavFileSystem.java 3 Mar 2004 07:05:35 - 1.10 @@ -18,6 +18,7 @@ import java.io.IOException; import java.util.Collection; import org.apache.commons.httpclient.HttpClient; +import org.apache.commons.httpclient.HttpURL; import org.apache.commons.vfs.Capability; import org.apache.commons.vfs.FileName; import org.apache.commons.vfs.FileObject; @@ -25,7 +26,6 @@ import org.apache.commons.vfs.FileSystemException; import org.apache.commons.vfs.provider.AbstractFileSystem; import org.apache.commons.vfs.provider.GenericFileName; -import org.apache.util.HttpURL; import org.apache.webdav.lib.WebdavResource; /** 1.12 +2 -2 jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/webdav/WebdavFileObject.java Index: WebdavFileObject.java === RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/webdav/WebdavFileObject.java,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- WebdavFileObject.java 28 Feb 2004 03:35:52 - 1.11 +++ WebdavFileObject.java 3 Mar 2004 07:05:35 - 1.12 @@ -22,13 +22,13 @@ import java.util.Enumeration; import java.util.HashMap; import java.util.Map; +import org.apache.commons.httpclient.HttpURL; import org.apache.commons.vfs.FileObject; import org.apache.commons.vfs.FileSystemException; import org.apache.commons.vfs.FileType; import org.apache.commons.vfs.provider.AbstractFileObject; import org.apache.commons.vfs.provider.GenericFileName; import org.apache.commons.vfs.util.MonitorOutputStream; -import org.apache.util.HttpURL; import org.apache.webdav.lib.BaseProperty; import org.apache.webdav.lib.WebdavResource; import org.apache.webdav.lib.methods.DepthSupport; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [SANDBOX] policy question
On Tue, 2 Mar 2004, Henri Yandell [EMAIL PROTECTED] wrote: I don't bother to add to the status file as I consider this kind of thing to be Commons development and not VFS specific stuff. OK, thanks to you three. I've committed the patch. Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dbutils] ScalarListHandler
I use Column prefix for this handler at home too. BTW I faund ColumnPairHandler handler is a one usefull too: SELECT ID,NAME FROM SOME_TABLE Object handle(ResultSet rs)throws SQLException{ Map map = new HashMap(); while(rs.next()){ map.put(rs.getObject(1),rs.getObject(2)); } return map; } David Graham wrote: Well, everything is an Object so that doesn't help much. Maybe ColumnListHandler? David --- Bagyinszki P#233;ter [EMAIL PROTECTED] wrote: David Graham [EMAIL PROTECTED] 2004.03.02. 06:34:41 -8h-kor #237;rta: Please create a bugzilla enhancement ticket and attach these files to it so they don't get lost. While I think the handler is useful, its name is non-sensical :-). It fits with the other naming conventions for handlers but you can't really have a scalar and a list at the same time. David What do you think about the name ObjectListHandler? -- petike http://petike1.uw.hu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Search - Find what youre looking for faster http://search.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [math] Nightly build not using correct source tree.
On Wed, 3 Mar 2004, Brent Worden wrote: I believe the nightly builds are being built using the sandbox sources. Who would I talk to about changing this or where should I go to get this remedied? AFAIK, the nightly builds are run by Craig (cc'd), so he would be the one to talk to about switching the builds from Sandbox to Proper. -- Martin Cooper Brent Worden http://www.brent.worden.org -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 02, 2004 11:39 PM To: [EMAIL PROTECTED] Subject: DO NOT REPLY [Bug 27243] - [math] T-Distribution causing a StackOverflowError --- Additional Comments From [EMAIL PROTECTED] 2004-03-03 05:38 --- I took a look at the nightly build jars and they are most definately out of date. I believe that the nightly build process is going after the sandbox CVS module and not commons proper. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Once again 302 :(
Andre John Mas wrote: I am not really in a position to test the code, but could you see whether changing the value of the 'user-agent' header gives: method.setRequestHeader(user-agent, Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113); or method.setRequestHeader(user-agent, Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021); Values taken from: http://nycbug.org/stat/agent_200312.html Also what JDK versions are you using? Tried it but no differents. ...but cheers, dude! I am using Version 1.4.2 on both! King regards -- Erare humanum est, Seneca Thorsten Scherler Tfno: 955 062 627 Email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Once again 302 :(
Michael Becke wrote: Hi Thorsten, Not sure what's happening here. I'm trying under RedHat and all is well. Please post the error stack trace as well as a wire log of the problem http://jakarta.apache.org/commons/httpclient/logging.html. This will help to narrow down the problem. Mike I used the configuration on http://jakarta.apache.org/commons/httpclient/logging.html. ...but no *I guess* a stupid question: To which file will it be written? -- Erare humanum est, Seneca Thorsten Scherler Tfno: 955 062 627 Email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Once again 302 :(
Michael Becke wrote: Hi Thorsten, Not sure what's happening here. I'm trying under RedHat and all is well. I installed the log4j and traced down the problem: You said for you is working fine! My local maschine (windows) as well is working fine with both addresses! ...but the server is in a different net! I can't lynx www.andaluciajunta.es from the server the application is running! I think that is because the server is before the firewall. You and I are behind the firewall! Fazit: No problem with the http-client at all! It is a problem of our net config (firewall)! Thank you for testing my code that was most valuable information. This was why I was testing the lynx and found the root problem! I appreciate your information! King regards -- Erare humanum est, Seneca Thorsten Scherler Tfno: 955 062 627 Email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 27366] New: - GetMethod.getResponseBodyAsStream() .available() could return content-length
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27366. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27366 GetMethod.getResponseBodyAsStream() .available() could return content-length Summary: GetMethod.getResponseBodyAsStream() .available() could return content-length Product: Commons Version: 2.0 Final Platform: Other OS/Version: Other Status: NEW Severity: Enhancement Priority: Other Component: HttpClient AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] It would be nice if the InputStream returned from GetMethod.getResponseBodyAsStream() could override the available() method to return the content-length of the requested URL. This would make things like ProgressMonitorInputStream useful for monitoring the progress of a download. Here is a code snippet: /** * supply a hard-coded value for available() method. */ class FixedInputStream extends FilterInputStream { private int contentLength; public FixedInputStream(InputStream is, int contentLength) { super(is); this.contentLength = contentLength; } public int available() throws IOException { return contentLength; } } Also, somewhat related to this request, could GetMethod.getResponseContentLength() must be made public? Is there a good reason for it to be protected? I had to extend GetMethod and implement a public getResponseContentLength() in order to feed that value to my FixedInputStream. Thanks for your time. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 27366] - GetMethod.getResponseBodyAsStream() .available() could return content-length
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27366. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27366 GetMethod.getResponseBodyAsStream() .available() could return content-length --- Additional Comments From [EMAIL PROTECTED] 2004-03-02 14:26 --- The available()-Methode should return the amout of data which can be read() without blocking. That is _not_ the whole content-length, but the amount of data that is available in HttpClient's internal buffers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Fwd: Re: Once again 302 :(]
---BeginMessage--- Michael Becke wrote: Hi Thorsten, Not sure what's happening here. I'm trying under RedHat and all is well. I installed the log4j and traced down the problem: You said for you is working fine! My local maschine (windows) as well is working fine with both addresses! ...but the server is in a different net! I can't lynx www.andaluciajunta.es from the server the application is running! I think that is because the server is before the firewall. You and I are behind the firewall! Fazit: No problem with the http-client at all! It is a problem of our net config (firewall)! Thank you for testing my code that was most valuable information. This was why I was testing the lynx and found the root problem! I appreciate your information! King regards -- Erare humanum est, Seneca Thorsten Scherler Tfno: 955 062 627 Email: [EMAIL PROTECTED] ---End Message--- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
POST sent in two packets
I am using the 2.0 HTTP client released on Feb 17th. I am having an issue with the client splitting my POST into two packets on the wire. Typically, I don't think that would cause an issue - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: POST sent in two packets
Please disregard. I think my cold medication made me press Send instead of Cancel [EMAIL PROTECTED] 03/02/04 02:38PM I am using the 2.0 HTTP client released on Feb 17th. I am having an issue with the client splitting my POST into two packets on the wire. Typically, I don't think that would cause an issue - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Once again 302 :(
Andre John Mas wrote: I am not really in a position to test the code, but could you see whether changing the value of the 'user-agent' header gives: method.setRequestHeader(user-agent, Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113); or method.setRequestHeader(user-agent, Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021); Values taken from: http://nycbug.org/stat/agent_200312.html Also what JDK versions are you using? Tried it but no differents. ...but cheers, dude! I am using Version 1.4.2 on both! King regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Once again 302 :(
Michael Becke wrote: Hi Thorsten, Not sure what's happening here. I'm trying under RedHat and all is well. I installed the log4j and traced down the problem: You said for you is working fine! My local maschine (windows) as well is working fine with both addresses! ...but the server is in a different net! I can't lynx www.andaluciajunta.es from the server the application is running! I think that is because the server is before the firewall. You and I are behind the firewall! Fazit: No problem with the http-client at all! It is a problem of our net config (firewall)! Thank you for testing my code that was most valuable information. This was why I was testing the lynx and found the root problem! I appreciate your information! P.S. we seem to have some problems with the mail server. This is a repost! King regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
file transfer through firewall
Hi, I am new to HttpClient...so bear with me if I am asking a wrong question(s). I am developing an application wherein my customer should be able to transfer a large XML file over the internet to my server system, which is behind a firewall. (An example scenario is the customer sitting in the airport lounge, and using wireless network connectivity, be able to transfer the file.) Please help me in the following: is HttpClient the way to go? should the user authenticate with my server (before being able to update my application DB with his/her data in the XML file - this will be taken care of by the server end of my application) what would be a good architecture for the same? Please share any ideas you might have around this. Regards Ramakrishna - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]