Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 60165 invoked from network); 13 Feb 2008 20:41:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Feb 2008 20:41:32 -0000 Received: (qmail 57630 invoked by uid 500); 13 Feb 2008 20:41:23 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 57560 invoked by uid 500); 13 Feb 2008 20:41:22 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 57551 invoked by uid 99); 13 Feb 2008 20:41:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Feb 2008 12:41:22 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [68.142.199.244] (HELO web33612.mail.mud.yahoo.com) (68.142.199.244) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 13 Feb 2008 20:40:37 +0000 Received: (qmail 49249 invoked by uid 60001); 13 Feb 2008 20:40:57 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=tCkqvzk92w1k5isgo/SbYcOhir1HhuOEFUABwm7t2Nns/kVipuBBrBQdjqWtTuXmSaxXIsh6vpd1/OGVeDkgjgdoUVE8sO0k1sJGVC6E61jTrSNyjnTtMtoEirE6sL5FarSAgTAPneQYFSa3boClJgPCqvTCmBfFtEKvfoB2nro=; X-YMail-OSG: 4Jsly_oVM1mW4F92jYpnR9RwDsXIH2lwHv9ZdcrK0NJUrM4iUCiQDh4ahSKWEiv93MybxAt3Gs_kl69tXRFBUVwrKEz759s7MbqheCNjot.nRnjk.zItX49ObqOjzw-- Received: from [166.70.146.22] by web33612.mail.mud.yahoo.com via HTTP; Wed, 13 Feb 2008 12:40:57 PST X-Mailer: YahooMailRC/818.31 YahooMailWebService/0.7.162 Date: Wed, 13 Feb 2008 12:40:57 -0800 (PST) From: comctrl6 Subject: Commons Configuration To: user@commons.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-118807781-1202935257=:47649" Message-ID: <501628.47649.qm@web33612.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --0-118807781-1202935257=:47649 Content-Type: text/plain; charset=us-ascii Hello, The following code sample adapted from the Configuration test suite, throws a NullPointerException. The exception seems to be thrown from the "crimson" XML parser, but I'm not sure what the problem is exactly. Any idea what is going on? Note: - The file "test.plist.xml" exists and it could be referenced from the Java file. The file is taken from the Configuration test cases. - The following libraries are included in the classpath: commons-collections, commons-configuration, commons-lang-2.3, commons-logging. - Compiling against Java 1.4. - Mac OS X 1.4.11 public static main(String[] args) { try { FileConfiguration config = new XMLPropertyListConfiguration(); config.setFileName("test.plist.xml"); config.load(); } catch (ConfigurationException e) { e.printStackTrace(); } } Exception is as follows: org.apache.commons.configuration.ConfigurationException: Unable to parse the configuration file at org.apache.commons.configuration.plist.XMLPropertyListConfiguration.load(XMLPropertyListConfiguration.java:247) at org.apache.commons.configuration.AbstractHierarchicalFileConfiguration$FileConfigurationDelegate.load(AbstractHierarchicalFileConfiguration.java:443) at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:356) at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:322) at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:285) at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:217) at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:195) at org.apache.commons.configuration.AbstractHierarchicalFileConfiguration.load(AbstractHierarchicalFileConfiguration.java:164) at ConfigTester.main(ConfigTester.java:19) Caused by: java.lang.NullPointerException at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:691) at org.apache.crimson.parser.Parser2.parse(Parser2.java:337) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448) at org.apache.commons.configuration.plist.XMLPropertyListConfiguration.load(XMLPropertyListConfiguration.java:243) ... 8 more Thanks. ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping --0-118807781-1202935257=:47649--