Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 34217 invoked from network); 12 Apr 2006 13:44:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Apr 2006 13:44:05 -0000 Received: (qmail 47148 invoked by uid 500); 12 Apr 2006 13:43:36 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 47071 invoked by uid 500); 12 Apr 2006 13:43:35 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 47058 invoked by uid 99); 12 Apr 2006 13:43:35 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Apr 2006 06:43:35 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of mloenko@gmail.com designates 64.233.182.191 as permitted sender) Received: from [64.233.182.191] (HELO nproxy.gmail.com) (64.233.182.191) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Apr 2006 06:43:34 -0700 Received: by nproxy.gmail.com with SMTP id d4so1125243nfe for ; Wed, 12 Apr 2006 06:43:13 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=OQ8PejeI7CJ5hwHiFgxSdJH+QZgN9SsXxKXSqbwVS6YEm5zhrzdlcXTaDv4IochugZgQ42o7BOU8O8IIGVNlyGHEkISVA5mDuGOehfP17fqzpWg9/PTx02jhW7ZjEM83Uyly0RqrIehCiSzDVs0gujBRjSBl7B32dUn8iKKOSTg= Received: by 10.48.205.5 with SMTP id c5mr5407565nfg; Wed, 12 Apr 2006 06:42:58 -0700 (PDT) Received: by 10.49.6.5 with HTTP; Wed, 12 Apr 2006 06:42:58 -0700 (PDT) Message-ID: <906dd82e0604120642w39977b40n357ba430ef61971d@mail.gmail.com> Date: Wed, 12 Apr 2006 20:42:58 +0700 From: "Mikhail Loenko" To: harmony-dev@incubator.apache.org Subject: Re: unstable NPE in the archive module In-Reply-To: <906dd82e0604120622s7fc55712j743843e4cbca10e9@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <906dd82e0604120622s7fc55712j743843e4cbca10e9@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N More of stack trace: java.io.IOException: File is a Directory =09at java.io.File.createNewFile(File.java:1035) =09at java.io.File.createTempFile(File.java:1089) =09at tests.support.resource.Support_Resources.createTempFolder(Support_Res= ources.java:66) =09at tests.support.resource.Support_Resources.getURL(Support_Resources.jav= a:42) =09at tests.api.java.util.jar.JarInputStreamTest.setUp(JarInputStreamTest.j= ava:352) =09at junit.framework.TestCase.runBare(TestCase.java:125) =09at junit.framework.TestResult$1.protect(TestResult.java:106) =09at junit.framework.TestResult.runProtected(TestResult.java:124) =09at junit.framework.TestResult.run(TestResult.java:109) =09at junit.framework.TestCase.run(TestCase.java:118) =09at junit.framework.TestSuite.runTest(TestSuite.java:208) =09at junit.framework.TestSuite.run(TestSuite.java:203) =09at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUni= tTestRunner.java:297) =09at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(J= UnitTestRunner.java:672) =09at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUn= itTestRunner.java:546) So I see two bugs here. The first one in the implementation of java.io.File= - according to the spec createNewFile should not throw exception if file or directory exists. The second bug is in Support_Resources - new file might appear between the following lines: =09folder =3D File.createTempFile("hyts_resources", "", null); =09folder.delete(); =09folder.mkdirs(); So this should be in syncrhonized block Can IO guys please comment? Thanks, Mikhail 2006/4/12, Mikhail Loenko : > I'm seeing test errors in the archive module. I've heard that Stepan have= seen > similar ones today in the morning. > > The errors are unstable: Stepan could not reproduce it and I did not see = them > previous time. So here they are: > > Class tests.api.java.util.jar.ManifestTest > > all tests error with: > > N/A > > java.lang.NullPointerException at > tests.support.resource.Support_Resources.createTempFolder(Support_Resourc= es.java:73) > at tests.api.java.util.jar.ManifestTest.setUp(ManifestTest.java:167) > > > Class tests.api.java.util.jar.JarInputStreamTest > 9 tests error with > > N/A > > java.lang.NullPointerException at > tests.support.resource.Support_Resources.createTempFolder(Support_Resourc= es.java:73) > at tests.support.resource.Support_Resources.getURL(Support_Resources.java= :42) > at tests.api.java.util.jar.JarInputStreamTest.setUp(JarInputStreamTest.ja= va:352) > > Ideas? > > Thanks, > Mikhail > --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org For additional commands, e-mail: harmony-dev-help@incubator.apache.org