Return-Path: Delivered-To: apmail-xml-commons-dev-archive@www.apache.org Received: (qmail 89514 invoked from network); 20 Jun 2005 18:33:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Jun 2005 18:33:45 -0000 Received: (qmail 88982 invoked by uid 500); 20 Jun 2005 18:33:44 -0000 Delivered-To: apmail-xml-commons-dev-archive@xml.apache.org Received: (qmail 88959 invoked by uid 500); 20 Jun 2005 18:33:44 -0000 Mailing-List: contact commons-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list commons-dev@xml.apache.org Received: (qmail 88909 invoked by uid 99); 20 Jun 2005 18:33:43 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jun 2005 11:33:42 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [32.97.182.143] (HELO e3.ny.us.ibm.com) (32.97.182.143) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jun 2005 11:33:42 -0700 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by e3.ny.us.ibm.com (8.12.11/8.12.11) with ESMTP id j5KIXcpM005652 for ; Mon, 20 Jun 2005 14:33:38 -0400 Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by d01relay04.pok.ibm.com (8.12.10/NCO/VERS6.7) with ESMTP id j5KIXcJp245632 for ; Mon, 20 Jun 2005 14:33:38 -0400 Received: from d01av03.pok.ibm.com (loopback [127.0.0.1]) by d01av03.pok.ibm.com (8.12.11/8.13.3) with ESMTP id j5KIXcLL004435 for ; Mon, 20 Jun 2005 14:33:38 -0400 Received: from d25ml04.torolab.ibm.com (d25ml04.torolab.ibm.com [9.26.6.105]) by d01av03.pok.ibm.com (8.12.11/8.12.11) with ESMTP id j5KIXc6E004424 for ; Mon, 20 Jun 2005 14:33:38 -0400 Subject: Fw: Possible bugs in SchemaFactoryFinder and XPathFactoryFinder (was: Remaining work for JAXP 1.3 APIs) To: commons-dev@xml.apache.org X-Mailer: Lotus Notes Release 6.0.2CF1 June 9, 2003 Message-ID: From: Morris Kwan Date: Mon, 20 Jun 2005 14:33:36 -0400 X-MIMETrack: Serialize by Router on D25ML04/25/M/IBM(Release 6.53HF247 | January 6, 2005) at 06/20/2005 14:33:38 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a real bug. I have debugged the code in XPathFactoryFinder. The loadFromProperty() method is not able to parse the META-INF/services file correctly. It always returns null even if there is a valid META-INF/services file. Morris Kwan XSLT Development IBM Toronto Lab Tel: (905)413-3729 Email: mkwan@ca.ibm.com Michael Glavassevich/Toro nto/IBM@IBMCA To commons-dev@xml.apache.org 06/17/2005 12:30 cc AM Neeraj.Bajaj@Sun.COM Subject Possible bugs in SchemaFactoryFinder and XPathFactoryFinder (was: Remaining work for JAXP 1.3 APIs) I was recently looking over the source for SchemaFactoryFinder [1] and XPathFactoryFinder [2] and noticed that when processing META-INF/services files it calls a method called loadFromProperty() which reads a META-INF/services file as if it were a properties file. I had thought META-INF/services files are supposed to contain the name of a class, not a name/value pair. In SchemaFactory [3] for the META-INF/services file it says to look at the "JAR file specification for file format and parsing rules". Looking at the JAR file specification [4] it says: "The file should contain a newline-separated list of unique concrete provider-class names", so this seems to agree with what I thought. It sounds like there's a bug here. Thanks. [1] http://cvs.apache.org/viewcvs.cgi/xml-commons/java/external/src/javax/xml/validation/SchemaFactoryFinder.java?view=markup [2] http://cvs.apache.org/viewcvs.cgi/xml-commons/java/external/src/javax/xml/xpath/XPathFactoryFinder.java?view=markup [3] http://java.sun.com/j2se/1.5.0 /docs/api/javax/xml/validation/SchemaFactory.html#newInstance(java.lang.String) [4] http://java.sun.com/j2se/1.5.0 /docs/guide/jar/jar.html#Provider%20Configuration%20File Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: mrglavas@ca.ibm.com E-mail: mrglavas@apache.org Michael Glavassevich/Toronto/IBM@IBMCA wrote on 06/06/2005 10:40:17 AM: > Neeraj Bajaj wrote on 06/06/2005 05:22:42 AM: > > > > > > > Michael Glavassevich wrote: > > > > > A > > >diff [4] between the latest copies on the main branch and > tck-jaxp-1_2_0 > > >shows some other differences, most notably how the jaxp.properties file > is > > >cached. The code on the main branch will read and cache the > > >jaxp.properties file once whereas on the tck-jaxp-1_2_0 branch it will > > >reload it if the jaxp.properties file was modified since it was read > > >(which to me appears to be a more desirable behaviour). > > > > > > > > Former is the correct behavior. As per the spec. jaxp.properties should > > be read only once. > > http://java.sun.com/j2se/1.5. > > 0/docs/api/javax/xml/parsers/SAXParserFactory.html#newInstance() > > Interesting. The previous version of the spec didn't have this statement > [1] appearently giving implementations the freedom to choose their own > caching strategy. > > [1] > http://java.sun.com/j2se/1.4. > 2/docs/api/javax/xml/parsers/SAXParserFactory.html#newInstance() > > > - Neeraj > > > > Michael Glavassevich > XML Parser Development > IBM Toronto Lab > E-mail: mrglavas@ca.ibm.com > E-mail: mrglavas@apache.org