Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 21044 invoked from network); 6 Jun 2007 15:12:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jun 2007 15:12:25 -0000 Received: (qmail 59284 invoked by uid 500); 6 Jun 2007 15:12:29 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Received: (qmail 59273 invoked by uid 99); 6 Jun 2007 15:12:29 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2007 08:12:29 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [212.224.30.66] (HELO service-01.spree.de) (212.224.30.66) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2007 08:12:24 -0700 Received: from [172.16.1.21] (rhein.spree.de [172.16.1.21]) (authenticated bits=0) by service-01.spree.de (8.13.4/8.13.4/Debian-3) with ESMTP id l56FC2ht015629 for ; Wed, 6 Jun 2007 17:12:02 +0200 Message-ID: <4666CEC1.70800@spree.de> Date: Wed, 06 Jun 2007 17:12:01 +0200 From: Michael Bouschen Organization: Tech@Spree Engineering User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: jdo-dev@db.apache.org Subject: Re: Test failure in api20 References: <7A7B7A51-828F-44E0-850A-B349C74C5107@SUN.com> In-Reply-To: <7A7B7A51-828F-44E0-850A-B349C74C5107@SUN.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Craig, I guess these are different errors from the ones described in https://issues.apache.org/jira/browse/JDO-484, correct? Regards Michael > Hi, > > I get this error when running the api20 maven build from the tip of > the trunk: > > Testsuite: javax.jdo.JDOHelperConfigTest > Tests run: 19, Failures: 0, Errors: 18, Time elapsed: 0.124 sec > > Testcase: > testPositive00_PMF0_GetNamedPMFProperties(javax.jdo.JDOHelperConfigTest): > Caused an ERROR > org.apache.tools.ant.AntClassLoader > at > javax.jdo.JDOHelperConfigTest.testPositive00_PMF0_GetNamedPMFProperties(JDOHelperConfigTest.java:57) > > > The error occurs at the line that constructs a new class loader: > > URLClassLoader loader = new JDOConfigTestClassLoader( > JDOCONFIG_CLASSPATH_PREFIX, > (URLClassLoader) getClass().getClassLoader()); > > I don't recognize the error. The stack trace doesn't show where in the > constructor the error is. > > Any clues? > > Craig > > public class JDOConfigTestClassLoader extends URLClassLoader { > > public JDOConfigTestClassLoader(String partialPathToIgnore, > URLClassLoader unparent) { > this(new String[]{partialPathToIgnore}, unparent); > } > > public JDOConfigTestClassLoader(String[] partialPathsToIgnore, > URLClassLoader unparent) { > super(new URL[]{}, null); > addNonTestURLs(partialPathsToIgnore == null ? new String[]{} : > partialPathsToIgnore, unparent); > } > > // HACK: need to identify a better way of controlling test classpath > protected void addNonTestURLs(String[] partialPathsToIgnore, > URLClassLoader unparent) { > URL[] urls = unparent.getURLs(); > for (int i = 0; i < urls.length; i++) { > URL url = urls[i]; > String urlString = url.toString(); > for (int j = 0; j < partialPathsToIgnore.length; j++) { > if (urlString.indexOf(partialPathsToIgnore[j]) == -1) { > addURL(url); > } > } > } > } > } > > Craig Russell > Architect, Sun Java Enterprise System http://java.sun.com/products/jdo > 408 276-5638 mailto:Craig.Russell@sun.com > P.S. A good JDO? O, Gasp! > -- Tech@Spree Engineering GmbH Tel.: +49/(0)30/235 520-33 Buelowstr. 66 Fax.: +49/(0)30/217 520-12 10783 Berlin mailto:mbo.tech@spree.de Geschaeftsfuehrung: Anna-Kristin Proefrock Sitz Berlin, Amtsgericht Charlottenburg, HRB 564 52