You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Nathan Beyer <nd...@apache.org> on 2008/02/17 05:44:31 UTC

[archive] test failure, odd url

One of the archive module's tests is making a URL connection to
"http://jcltest.apache.org/testres231/../internalres/signedjars". Is
something supposed to be intercepting this and faking out the server?

-Nathan

Re: [archive] test failure, odd url

Posted by Alexei Fedotov <al...@gmail.com>.
Thanks, Nathan,
I mentioned the same test, but the test case in my workspace was
renamed to avoid "_" symbols. So we are on the same track. I have
investigated your stack trace. It seems that somehow
'jcltest.apache.org' works for you better than for me.

You fail at org.apache.harmony.archive.tests.java.util.jar.JarFileTest.test_getJarEntryLjava_lang_String(JarFileTest.java:184).
This means you started iterations over signedJars vector. The test on
my platform fails at the first URL access when the vector is being
initialized акщь
http://jcltest.apache.org/internalres/signedjars/jarlist.txt. For me
initialization fails, and no iterations are performed.

How was you able to get at least one signed jar in signedJars vector?


On Tue, Feb 26, 2008 at 6:15 AM, Nathan Beyer <nb...@gmail.com> wrote:
> These are the tests failing that are directly related to the
>  'jcltest.apache.org' host.
>
>  org.apache.harmony.archive.tests.java.util.jar.JarFileTest.test_getJarEntryLjava_lang_String()
>  org.apache.harmony.security.tests.java.security.cert.CertificateFactory4Test.test_generateCertificatesLjava_io_InputStream()
>  org.apache.harmony.security.tests.java.security.cert.CertificateFactory4Test.test_generateCRLLjava_io_InputStream()
>
>  Here' the entire report -
>  http://people.apache.org/~ndbeyer/m5-tests/classlib-r629329.zip.
>
>  -Nathan
>
>
>  On Mon, Feb 25, 2008 at 6:45 AM, Alexei Fedotov
>
>
> <al...@gmail.com> wrote:
>  > Nathan,
>  >  Which test fails for you?
>  >
>  >  Thanks!
>  >
>  >
>  >
>  >  On Sun, Feb 24, 2008 at 7:33 AM, Nathan Beyer <nb...@gmail.com> wrote:
>  >  > This all seems to come from Support_Configuration -
>  >  >  http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_Configuration.java?view=markup
>  >  >
>  >  >  I don't quite understand the details, but I'm guessing it's trying to
>  >  >  setup an http server that responds to 'jcltest.apache.org'. This
>  >  >  doesn't seem to be working on my network.
>  >  >
>  >  >  -Nathan
>  >  >
>  >  >
>  >  >
>  >  >  On Sat, Feb 23, 2008 at 9:58 PM, Nathan Beyer <nb...@gmail.com> wrote:
>  >  >  > I think it's originating from the
>  >  >  >  Support_Resources.getResourceURL("../internalres/") calls, not just
>  >  >  >  "signedjars". For some reason the resulting URL is
>  >  >  >  "http://jcltest.apache.org/" based.
>  >  >  >
>  >  >  >  -Nathan
>  >  >  >
>  >  >  >  On Sat, Feb 23, 2008 at 2:35 PM, Alexei Fedotov
>  >  >  >
>  >  >  >
>  >  >  > <al...@gmail.com> wrote:
>  >  >  >  > Nathan,
>  >  >  >  >  I was talking about
>  >  >  >  >  org.apache.harmony.archive.tests.java.util.jar.JarFileTest.testGetJarEntry().
>  >  >  >  >  I have run "grep" for another occurrence of "signedjars" and fail to
>  >  >  >  >  find another match.
>  >  >  >  >
>  >  >  >  >  Thanks.
>  >  >  >  >
>  >  >  >  >
>  >  >  >  >
>  >  >  >  >  On Sat, Feb 23, 2008 at 8:48 PM, Nathan Beyer <nb...@gmail.com> wrote:
>  >  >  >  >  > What class is that test? I don't think that's the same test I'm seeing
>  >  >  >  >  >  failures in.
>  >  >  >  >  >
>  >  >  >  >  >  On Fri, Feb 22, 2008 at 4:09 AM, Alexei Fedotov
>  >  >  >  >  >
>  >  >  >  >  >
>  >  >  >  >  > <al...@gmail.com> wrote:
>  >  >  >  >  >  > Nathan,
>  >  >  >  >  >  >  Actually this was a test I was patching today. It works perfectly on
>  >  >  >  >  >  >  my computer, but doesn't perform any connections. To debug this I have
>  >  >  >  >  >  >  added a print at the catch section (see below), and the print outputs
>  >  >  >  >  >  >  "we are here" for me. This means the URL is absent, but the test does
>  >  >  >  >  >  >  not report fail due to IOException, and just ignores URL absence.
>  >  >  >  >  >  >
>  >  >  >  >  >  >     public void testGetJarEntry() throws Exception {
>  >  >  >  >  >  >         [...]
>  >  >  >  >  >  >
>  >  >  >  >  >  >         // tests for signed jars
>  >  >  >  >  >  >         // test all signed jars in the /Testres/Internal/SignedJars directory
>  >  >  >  >  >  >         String jarDirUrl = Support_Resources
>  >  >  >  >  >  >                 .getResourceURL("/../internalres/signedjars");
>  >  >  >  >  >  >         Vector<String> signedJars = new Vector<String>();
>  >  >  >  >  >  >         try {
>  >  >  >  >  >  >             [...]
>  >  >  >  >  >  >         } catch (IOException e) {
>  >  >  >  >  >  >             System.out.println("we are here");
>  >  >  >  >  >  >             // no list of jars found
>  >  >  >  >  >  >
>  >  >  >  >  >  >
>  >  >  >  >  >  >         }
>  >  >  >  >  >  >
>  >  >  >  >  >  >
>  >  >  >  >  >  >  On Fri, Feb 22, 2008 at 12:53 PM, Alexei Fedotov
>  >  >  >  >  >  >  <al...@gmail.com> wrote:
>  >  >  >  >  >  >  > I have no other data at this moment except the fact that all tests
>  >  >  >  >  >  >  >  were passing for me. This does not mean that URL works, there may be
>  >  >  >  >  >  >  >  exclude lists, or something. Sorry, I did not realize this is the same
>  >  >  >  >  >  >  >  module I'm running tests on.
>  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  On Fri, Feb 22, 2008 at 7:12 AM, Stepan Mishura
>  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >
>  >  >  >  >  >  >  > <st...@gmail.com> wrote:
>  >  >  >  >  >  >  >  > On 2/22/08, Nathan Beyer <nb...@gmail.com> wrote:
>  >  >  >  >  >  >  >  >  > I have OpenDNS configured, so I'm getting this -
>  >  >  >  >  >  >  >  >  > http://guide.opendns.com/?url=jcltest.apache.org%2Finternalres%2FBug93893-1.crl.
>  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  > I guess that's the issue ... thanks.
>  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  I think that the issue is the test itself - it is expected to test
>  >  >  >  >  >  >  >  >  certificates and crls stored in files but there are no required files.
>  >  >  >  >  >  >  >  >  Also I've checked HARMONY-88 (the origin JIRA for the test) - it
>  >  >  >  >  >  >  >  >  doesn't contain them too.
>  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  Thanks,
>  >  >  >  >  >  >  >  >  Stepan.
>  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  > -Nathan
>  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >  > On Thu, Feb 21, 2008 at 3:22 AM, Stepan Mishura
>  >  >  >  >  >  >  >  >  > <st...@gmail.com> wrote:
>  >  >  >  >  >  >  >  >  > > On 2/21/08, Stepan Mishura <st...@gmail.com> wrote:
>  >  >  >  >  >  >  >  >  > >  > On 2/21/08, Nathan Beyer <nb...@gmail.com> wrote:
>  >  >  >  >  >  >  >  >  > >  > > I'm getting a bunch of failures for various tests connecting to the
>  >  >  >  >  >  >  >  >  > >  > > 'jcltest.apache.org' host. Does anyone know how that works? Is that a
>  >  >  >  >  >  >  >  >  > >  > > real host?
>  >  >  >  >  >  >  >  >  > >  > >
>  >  >  >  >  >  >  >  >  > >  > > I've uploaded my classlib test report here -
>  >  >  >  >  >  >  >  >  > >  > > http://people.apache.org/~ndbeyer/m5-tests/classlib-r629329.zip
>  >  >  >  >  >  >  >  >  > >  >
>  >  >  >  >  >  >  >  >  > >  > Interesting, yes there are failed tests in security module (not in archive).
>  >  >  >  >  >  >  >  >  > >  > I'll try to investigate why they failed.
>  >  >  >  >  >  >  >  >  > >
>  >  >  >  >  >  >  >  >  > >  I've looked into:
>  >  >  >  >  >  >  >  >  > >  org.apache.harmony.security.tests.java.security.cert.CertificateFactory4Test
>  >  >  >  >  >  >  >  >  > >     test_generateCRLLjava_io_InputStream
>  >  >  >  >  >  >  >  >  > >
>  >  >  >  >  >  >  >  >  > >  The next update:
>  >  >  >  >  >  >  >  >  > >  $ svn di
>  >  >  >  >  >  >  >  >  > >  Index: CertificateFactory4Test.java
>  >  >  >  >  >  >  >  >  > >  ===================================================================
>  >  >  >  >  >  >  >  >  > >  --- CertificateFactory4Test.java        (revision 629706)
>  >  >  >  >  >  >  >  >  > >  +++ CertificateFactory4Test.java        (working copy)
>  >  >  >  >  >  >  >  >  > >  @@ -116,6 +116,7 @@
>  >  >  >  >  >  >  >  >  > >                          + "\" were not parsed correctly", crl);
>  >  >  >  >  >  >  >  >  > >              } catch (IOException e) {
>  >  >  >  >  >  >  >  >  > >                  // the certificate could not be found, skip it
>  >  >  >  >  >  >  >  >  > >  +                System.out.println("Couldn't find certificate: " +
>  >  >  >  >  >  >  >  >  > >  certUrl.toExternalForm());
>  >  >  >  >  >  >  >  >  > >              } catch (CRLException e) {
>  >  >  >  >  >  >  >  >  > >                  fail("An exception was thrown while parsing \""
>  >  >  >  >  >  >  >  >  > >                          + certUrl.toExternalForm() + "\": " + e.getMessage());
>  >  >  >  >  >  >  >  >  > >
>  >  >  >  >  >  >  >  >  > >  Gives the next output:
>  >  >  >  >  >  >  >  >  > >  run-tests-api:
>  >  >  >  >  >  >  >  >  > >      [echo] Running SECURITY api tests
>  >  >  >  >  >  >  >  >  > >     [mkdir] Created dir: C:\Apache\Harmony\ClassLib\build\test_report
>  >  >  >  >  >  >  >  >  > >     [junit] Running
>  >  >  >  >  >  >  >  >  > >  org.apache.harmony.security.tests.java.security.cert.CertificateFactory4Test
>  >  >  >  >  >  >  >  >  > >     [junit] Couldn't find certificate:
>  >  >  >  >  >  >  >  >  > >  http://jcltest.apache.org/testres231/../internalres/Bug93893-1.crl
>  >  >  >  >  >  >  >  >  > >     [junit] Couldn't find certificate:
>  >  >  >  >  >  >  >  >  > >  http://jcltest.apache.org/testres231/../internalres/Bug93893-2.crl
>  >  >  >  >  >  >  >  >  > >     [junit] Couldn't find certificate:
>  >  >  >  >  >  >  >  >  > >  http://jcltest.apache.org/testres231/../internalres/Bug94404-DER.crl
>  >  >  >  >  >  >  >  >  > >     [junit] Tests run: 14, Failures: 0, Errors: 0, Time elapsed: 0.594 sec
>  >  >  >  >  >  >  >  >  > >
>  >  >  >  >  >  >  >  >  > >  So the test tries to open unreachable URL by
>  >  >  >  >  >  >  >  >  > >     InputStream is = certUrl.openStream();
>  >  >  >  >  >  >  >  >  > >  and IOException is thrown.
>  >  >  >  >  >  >  >  >  > >  But in your case there is no exception and test tries to parse
>  >  >  >  >  >  >  >  >  > >  certificates and crls.
>  >  >  >  >  >  >  >  >  > >  You may wish to examine InputStream content.
>  >  >  >  >  >  >  >  >  > >
>  >  >  >  >  >  >  >  >  > >  Thanks,
>  >  >  >  >  >  >  >  >  > >  Stepan.
>  >  >  >  >  >  >  >  >  > >
>  >  >  >  >  >  >  >  >  > >
>  >  >  >  >  >  >  >  >  > >
>  >  >  >  >  >  >  >  >  > >  >
>  >  >  >  >  >  >  >  >  > >  > -Stepan.
>  >  >  >  >  >  >  >  >  > >  >
>  >  >  >  >  >  >  >  >  > >  > >
>  >  >  >  >  >  >  >  >  > >  > > -Nathan
>  >  >  >  >  >  >  >  >  > >  > >
>  >  >  >  >  >  >  >  >  > >  > > On Mon, Feb 18, 2008 at 11:23 PM, Sean Qiu <se...@gmail.com> wrote:
>  >  >  >  >  >  >  >  >  > >  > > > Hi, Nathan
>  >  >  >  >  >  >  >  >  > >  > > >  It works well in my machine, windows xp sp2 32.
>  >  >  >  >  >  >  >  >  > >  > > >
>  >  >  >  >  >  >  >  >  > >  > > >
>  >  >  >  >  >  >  >  >  > >  > > >  2008/2/19, Nathan Beyer <nd...@apache.org>:
>  >  >  >  >  >  >  >  >  > >  > > >
>  >  >  >  >  >  >  >  >  > >  > > >
>  >  >  >  >  >  >  >  >  > >  > > > >
>  >  >  >  >  >  >  >  >  > >  > > >  > Anyone else seeing a test failure in the archive module? I'm seeing
>  >  >  >  >  >  >  >  >  > >  > > >  > this on all of my machines for the latest revision.
>  >  >  >  >  >  >  >  >  > >  > > >  >
>  >  >  >  >  >  >  >  >  > >  > > >  > On Feb 16, 2008 10:44 PM, Nathan Beyer <nd...@apache.org> wrote:
>  >  >  >  >  >  >  >  >  > >  > > >  > > One of the archive module's tests is making a URL connection to
>  >  >  >  >  >  >  >  >  > >  > > >  > > "http://jcltest.apache.org/testres231/../internalres/signedjars". Is
>  >  >  >  >  >  >  >  >  > >  > > >  > > something supposed to be intercepting this and faking out the server?
>  >  >  >  >  >  >  >  >  > >  > > >  > >
>  >  >  >  >  >  >  >  >  > >  > > >  > > -Nathan
>  >  >  >  >  >  >  >  >  > >  > > >  > >
>  >  >  >  >  >  >  >  >  > >  > > >  >
>  >  >  >  >  >  >  >  >  > >  > > >
>  >  >  >  >  >  >  >  >  > >  > > >
>  >  >  >  >  >  >  >  >  > >  > > >
>  >  >  >  >  >  >  >  >  > >  > > >  --
>  >  >  >  >  >  >  >  >  > >  > > >  Sean Qiu
>  >  >  >  >  >  >  >  >  > >  > > >  http://xiaoxia.turendui.com
>  >  >  >  >  >  >  >  >  > >  > > >
>  >  >  >  >  >  >  >  >  > >  > >
>  >  >  >  >  >  >  >  >  > >  >
>  >  >  >  >  >  >  >  >  > >
>  >  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  --
>  >  >  >  >  >  >  >  With best regards,
>  >  >  >  >  >  >  >  Alexei
>  >  >  >  >  >  >  >
>  >  >  >  >  >  >
>  >  >  >  >  >  >
>  >  >  >  >  >  >
>  >  >  >  >  >  >  --
>  >  >  >  >  >  >  With best regards,
>  >  >  >  >  >  >  Alexei
>  >  >  >  >  >  >
>  >  >  >  >  >
>  >  >  >  >
>  >  >  >  >
>  >  >  >  >
>  >  >  >  >  --
>  >  >  >  >  With best regards,
>  >  >  >  >  Alexei
>  >  >  >  >
>  >  >  >
>  >  >
>  >
>  >
>  >
>  >  --
>  >  With best regards,
>  >  Alexei
>  >
>



-- 
With best regards,
Alexei

Re: [archive] test failure, odd url

Posted by Nathan Beyer <nb...@gmail.com>.
These are the tests failing that are directly related to the
'jcltest.apache.org' host.

org.apache.harmony.archive.tests.java.util.jar.JarFileTest.test_getJarEntryLjava_lang_String()
org.apache.harmony.security.tests.java.security.cert.CertificateFactory4Test.test_generateCertificatesLjava_io_InputStream()
org.apache.harmony.security.tests.java.security.cert.CertificateFactory4Test.test_generateCRLLjava_io_InputStream()

Here' the entire report -
http://people.apache.org/~ndbeyer/m5-tests/classlib-r629329.zip.

-Nathan


On Mon, Feb 25, 2008 at 6:45 AM, Alexei Fedotov
<al...@gmail.com> wrote:
> Nathan,
>  Which test fails for you?
>
>  Thanks!
>
>
>
>  On Sun, Feb 24, 2008 at 7:33 AM, Nathan Beyer <nb...@gmail.com> wrote:
>  > This all seems to come from Support_Configuration -
>  >  http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_Configuration.java?view=markup
>  >
>  >  I don't quite understand the details, but I'm guessing it's trying to
>  >  setup an http server that responds to 'jcltest.apache.org'. This
>  >  doesn't seem to be working on my network.
>  >
>  >  -Nathan
>  >
>  >
>  >
>  >  On Sat, Feb 23, 2008 at 9:58 PM, Nathan Beyer <nb...@gmail.com> wrote:
>  >  > I think it's originating from the
>  >  >  Support_Resources.getResourceURL("../internalres/") calls, not just
>  >  >  "signedjars". For some reason the resulting URL is
>  >  >  "http://jcltest.apache.org/" based.
>  >  >
>  >  >  -Nathan
>  >  >
>  >  >  On Sat, Feb 23, 2008 at 2:35 PM, Alexei Fedotov
>  >  >
>  >  >
>  >  > <al...@gmail.com> wrote:
>  >  >  > Nathan,
>  >  >  >  I was talking about
>  >  >  >  org.apache.harmony.archive.tests.java.util.jar.JarFileTest.testGetJarEntry().
>  >  >  >  I have run "grep" for another occurrence of "signedjars" and fail to
>  >  >  >  find another match.
>  >  >  >
>  >  >  >  Thanks.
>  >  >  >
>  >  >  >
>  >  >  >
>  >  >  >  On Sat, Feb 23, 2008 at 8:48 PM, Nathan Beyer <nb...@gmail.com> wrote:
>  >  >  >  > What class is that test? I don't think that's the same test I'm seeing
>  >  >  >  >  failures in.
>  >  >  >  >
>  >  >  >  >  On Fri, Feb 22, 2008 at 4:09 AM, Alexei Fedotov
>  >  >  >  >
>  >  >  >  >
>  >  >  >  > <al...@gmail.com> wrote:
>  >  >  >  >  > Nathan,
>  >  >  >  >  >  Actually this was a test I was patching today. It works perfectly on
>  >  >  >  >  >  my computer, but doesn't perform any connections. To debug this I have
>  >  >  >  >  >  added a print at the catch section (see below), and the print outputs
>  >  >  >  >  >  "we are here" for me. This means the URL is absent, but the test does
>  >  >  >  >  >  not report fail due to IOException, and just ignores URL absence.
>  >  >  >  >  >
>  >  >  >  >  >     public void testGetJarEntry() throws Exception {
>  >  >  >  >  >         [...]
>  >  >  >  >  >
>  >  >  >  >  >         // tests for signed jars
>  >  >  >  >  >         // test all signed jars in the /Testres/Internal/SignedJars directory
>  >  >  >  >  >         String jarDirUrl = Support_Resources
>  >  >  >  >  >                 .getResourceURL("/../internalres/signedjars");
>  >  >  >  >  >         Vector<String> signedJars = new Vector<String>();
>  >  >  >  >  >         try {
>  >  >  >  >  >             [...]
>  >  >  >  >  >         } catch (IOException e) {
>  >  >  >  >  >             System.out.println("we are here");
>  >  >  >  >  >             // no list of jars found
>  >  >  >  >  >
>  >  >  >  >  >
>  >  >  >  >  >         }
>  >  >  >  >  >
>  >  >  >  >  >
>  >  >  >  >  >  On Fri, Feb 22, 2008 at 12:53 PM, Alexei Fedotov
>  >  >  >  >  >  <al...@gmail.com> wrote:
>  >  >  >  >  >  > I have no other data at this moment except the fact that all tests
>  >  >  >  >  >  >  were passing for me. This does not mean that URL works, there may be
>  >  >  >  >  >  >  exclude lists, or something. Sorry, I did not realize this is the same
>  >  >  >  >  >  >  module I'm running tests on.
>  >  >  >  >  >  >
>  >  >  >  >  >  >  On Fri, Feb 22, 2008 at 7:12 AM, Stepan Mishura
>  >  >  >  >  >  >
>  >  >  >  >  >  >
>  >  >  >  >  >  > <st...@gmail.com> wrote:
>  >  >  >  >  >  >  > On 2/22/08, Nathan Beyer <nb...@gmail.com> wrote:
>  >  >  >  >  >  >  >  > I have OpenDNS configured, so I'm getting this -
>  >  >  >  >  >  >  >  > http://guide.opendns.com/?url=jcltest.apache.org%2Finternalres%2FBug93893-1.crl.
>  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  > I guess that's the issue ... thanks.
>  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  I think that the issue is the test itself - it is expected to test
>  >  >  >  >  >  >  >  certificates and crls stored in files but there are no required files.
>  >  >  >  >  >  >  >  Also I've checked HARMONY-88 (the origin JIRA for the test) - it
>  >  >  >  >  >  >  >  doesn't contain them too.
>  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  Thanks,
>  >  >  >  >  >  >  >  Stepan.
>  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  > -Nathan
>  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >  > On Thu, Feb 21, 2008 at 3:22 AM, Stepan Mishura
>  >  >  >  >  >  >  >  > <st...@gmail.com> wrote:
>  >  >  >  >  >  >  >  > > On 2/21/08, Stepan Mishura <st...@gmail.com> wrote:
>  >  >  >  >  >  >  >  > >  > On 2/21/08, Nathan Beyer <nb...@gmail.com> wrote:
>  >  >  >  >  >  >  >  > >  > > I'm getting a bunch of failures for various tests connecting to the
>  >  >  >  >  >  >  >  > >  > > 'jcltest.apache.org' host. Does anyone know how that works? Is that a
>  >  >  >  >  >  >  >  > >  > > real host?
>  >  >  >  >  >  >  >  > >  > >
>  >  >  >  >  >  >  >  > >  > > I've uploaded my classlib test report here -
>  >  >  >  >  >  >  >  > >  > > http://people.apache.org/~ndbeyer/m5-tests/classlib-r629329.zip
>  >  >  >  >  >  >  >  > >  >
>  >  >  >  >  >  >  >  > >  > Interesting, yes there are failed tests in security module (not in archive).
>  >  >  >  >  >  >  >  > >  > I'll try to investigate why they failed.
>  >  >  >  >  >  >  >  > >
>  >  >  >  >  >  >  >  > >  I've looked into:
>  >  >  >  >  >  >  >  > >  org.apache.harmony.security.tests.java.security.cert.CertificateFactory4Test
>  >  >  >  >  >  >  >  > >     test_generateCRLLjava_io_InputStream
>  >  >  >  >  >  >  >  > >
>  >  >  >  >  >  >  >  > >  The next update:
>  >  >  >  >  >  >  >  > >  $ svn di
>  >  >  >  >  >  >  >  > >  Index: CertificateFactory4Test.java
>  >  >  >  >  >  >  >  > >  ===================================================================
>  >  >  >  >  >  >  >  > >  --- CertificateFactory4Test.java        (revision 629706)
>  >  >  >  >  >  >  >  > >  +++ CertificateFactory4Test.java        (working copy)
>  >  >  >  >  >  >  >  > >  @@ -116,6 +116,7 @@
>  >  >  >  >  >  >  >  > >                          + "\" were not parsed correctly", crl);
>  >  >  >  >  >  >  >  > >              } catch (IOException e) {
>  >  >  >  >  >  >  >  > >                  // the certificate could not be found, skip it
>  >  >  >  >  >  >  >  > >  +                System.out.println("Couldn't find certificate: " +
>  >  >  >  >  >  >  >  > >  certUrl.toExternalForm());
>  >  >  >  >  >  >  >  > >              } catch (CRLException e) {
>  >  >  >  >  >  >  >  > >                  fail("An exception was thrown while parsing \""
>  >  >  >  >  >  >  >  > >                          + certUrl.toExternalForm() + "\": " + e.getMessage());
>  >  >  >  >  >  >  >  > >
>  >  >  >  >  >  >  >  > >  Gives the next output:
>  >  >  >  >  >  >  >  > >  run-tests-api:
>  >  >  >  >  >  >  >  > >      [echo] Running SECURITY api tests
>  >  >  >  >  >  >  >  > >     [mkdir] Created dir: C:\Apache\Harmony\ClassLib\build\test_report
>  >  >  >  >  >  >  >  > >     [junit] Running
>  >  >  >  >  >  >  >  > >  org.apache.harmony.security.tests.java.security.cert.CertificateFactory4Test
>  >  >  >  >  >  >  >  > >     [junit] Couldn't find certificate:
>  >  >  >  >  >  >  >  > >  http://jcltest.apache.org/testres231/../internalres/Bug93893-1.crl
>  >  >  >  >  >  >  >  > >     [junit] Couldn't find certificate:
>  >  >  >  >  >  >  >  > >  http://jcltest.apache.org/testres231/../internalres/Bug93893-2.crl
>  >  >  >  >  >  >  >  > >     [junit] Couldn't find certificate:
>  >  >  >  >  >  >  >  > >  http://jcltest.apache.org/testres231/../internalres/Bug94404-DER.crl
>  >  >  >  >  >  >  >  > >     [junit] Tests run: 14, Failures: 0, Errors: 0, Time elapsed: 0.594 sec
>  >  >  >  >  >  >  >  > >
>  >  >  >  >  >  >  >  > >  So the test tries to open unreachable URL by
>  >  >  >  >  >  >  >  > >     InputStream is = certUrl.openStream();
>  >  >  >  >  >  >  >  > >  and IOException is thrown.
>  >  >  >  >  >  >  >  > >  But in your case there is no exception and test tries to parse
>  >  >  >  >  >  >  >  > >  certificates and crls.
>  >  >  >  >  >  >  >  > >  You may wish to examine InputStream content.
>  >  >  >  >  >  >  >  > >
>  >  >  >  >  >  >  >  > >  Thanks,
>  >  >  >  >  >  >  >  > >  Stepan.
>  >  >  >  >  >  >  >  > >
>  >  >  >  >  >  >  >  > >
>  >  >  >  >  >  >  >  > >
>  >  >  >  >  >  >  >  > >  >
>  >  >  >  >  >  >  >  > >  > -Stepan.
>  >  >  >  >  >  >  >  > >  >
>  >  >  >  >  >  >  >  > >  > >
>  >  >  >  >  >  >  >  > >  > > -Nathan
>  >  >  >  >  >  >  >  > >  > >
>  >  >  >  >  >  >  >  > >  > > On Mon, Feb 18, 2008 at 11:23 PM, Sean Qiu <se...@gmail.com> wrote:
>  >  >  >  >  >  >  >  > >  > > > Hi, Nathan
>  >  >  >  >  >  >  >  > >  > > >  It works well in my machine, windows xp sp2 32.
>  >  >  >  >  >  >  >  > >  > > >
>  >  >  >  >  >  >  >  > >  > > >
>  >  >  >  >  >  >  >  > >  > > >  2008/2/19, Nathan Beyer <nd...@apache.org>:
>  >  >  >  >  >  >  >  > >  > > >
>  >  >  >  >  >  >  >  > >  > > >
>  >  >  >  >  >  >  >  > >  > > > >
>  >  >  >  >  >  >  >  > >  > > >  > Anyone else seeing a test failure in the archive module? I'm seeing
>  >  >  >  >  >  >  >  > >  > > >  > this on all of my machines for the latest revision.
>  >  >  >  >  >  >  >  > >  > > >  >
>  >  >  >  >  >  >  >  > >  > > >  > On Feb 16, 2008 10:44 PM, Nathan Beyer <nd...@apache.org> wrote:
>  >  >  >  >  >  >  >  > >  > > >  > > One of the archive module's tests is making a URL connection to
>  >  >  >  >  >  >  >  > >  > > >  > > "http://jcltest.apache.org/testres231/../internalres/signedjars". Is
>  >  >  >  >  >  >  >  > >  > > >  > > something supposed to be intercepting this and faking out the server?
>  >  >  >  >  >  >  >  > >  > > >  > >
>  >  >  >  >  >  >  >  > >  > > >  > > -Nathan
>  >  >  >  >  >  >  >  > >  > > >  > >
>  >  >  >  >  >  >  >  > >  > > >  >
>  >  >  >  >  >  >  >  > >  > > >
>  >  >  >  >  >  >  >  > >  > > >
>  >  >  >  >  >  >  >  > >  > > >
>  >  >  >  >  >  >  >  > >  > > >  --
>  >  >  >  >  >  >  >  > >  > > >  Sean Qiu
>  >  >  >  >  >  >  >  > >  > > >  http://xiaoxia.turendui.com
>  >  >  >  >  >  >  >  > >  > > >
>  >  >  >  >  >  >  >  > >  > >
>  >  >  >  >  >  >  >  > >  >
>  >  >  >  >  >  >  >  > >
>  >  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >
>  >  >  >  >  >  >
>  >  >  >  >  >  >
>  >  >  >  >  >  >
>  >  >  >  >  >  >  --
>  >  >  >  >  >  >  With best regards,
>  >  >  >  >  >  >  Alexei
>  >  >  >  >  >  >
>  >  >  >  >  >
>  >  >  >  >  >
>  >  >  >  >  >
>  >  >  >  >  >  --
>  >  >  >  >  >  With best regards,
>  >  >  >  >  >  Alexei
>  >  >  >  >  >
>  >  >  >  >
>  >  >  >
>  >  >  >
>  >  >  >
>  >  >  >  --
>  >  >  >  With best regards,
>  >  >  >  Alexei
>  >  >  >
>  >  >
>  >
>
>
>
>  --
>  With best regards,
>  Alexei
>

Re: [archive] test failure, odd url

Posted by Alexei Fedotov <al...@gmail.com>.
Nathan,
Which test fails for you?

Thanks!

On Sun, Feb 24, 2008 at 7:33 AM, Nathan Beyer <nb...@gmail.com> wrote:
> This all seems to come from Support_Configuration -
>  http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_Configuration.java?view=markup
>
>  I don't quite understand the details, but I'm guessing it's trying to
>  setup an http server that responds to 'jcltest.apache.org'. This
>  doesn't seem to be working on my network.
>
>  -Nathan
>
>
>
>  On Sat, Feb 23, 2008 at 9:58 PM, Nathan Beyer <nb...@gmail.com> wrote:
>  > I think it's originating from the
>  >  Support_Resources.getResourceURL("../internalres/") calls, not just
>  >  "signedjars". For some reason the resulting URL is
>  >  "http://jcltest.apache.org/" based.
>  >
>  >  -Nathan
>  >
>  >  On Sat, Feb 23, 2008 at 2:35 PM, Alexei Fedotov
>  >
>  >
>  > <al...@gmail.com> wrote:
>  >  > Nathan,
>  >  >  I was talking about
>  >  >  org.apache.harmony.archive.tests.java.util.jar.JarFileTest.testGetJarEntry().
>  >  >  I have run "grep" for another occurrence of "signedjars" and fail to
>  >  >  find another match.
>  >  >
>  >  >  Thanks.
>  >  >
>  >  >
>  >  >
>  >  >  On Sat, Feb 23, 2008 at 8:48 PM, Nathan Beyer <nb...@gmail.com> wrote:
>  >  >  > What class is that test? I don't think that's the same test I'm seeing
>  >  >  >  failures in.
>  >  >  >
>  >  >  >  On Fri, Feb 22, 2008 at 4:09 AM, Alexei Fedotov
>  >  >  >
>  >  >  >
>  >  >  > <al...@gmail.com> wrote:
>  >  >  >  > Nathan,
>  >  >  >  >  Actually this was a test I was patching today. It works perfectly on
>  >  >  >  >  my computer, but doesn't perform any connections. To debug this I have
>  >  >  >  >  added a print at the catch section (see below), and the print outputs
>  >  >  >  >  "we are here" for me. This means the URL is absent, but the test does
>  >  >  >  >  not report fail due to IOException, and just ignores URL absence.
>  >  >  >  >
>  >  >  >  >     public void testGetJarEntry() throws Exception {
>  >  >  >  >         [...]
>  >  >  >  >
>  >  >  >  >         // tests for signed jars
>  >  >  >  >         // test all signed jars in the /Testres/Internal/SignedJars directory
>  >  >  >  >         String jarDirUrl = Support_Resources
>  >  >  >  >                 .getResourceURL("/../internalres/signedjars");
>  >  >  >  >         Vector<String> signedJars = new Vector<String>();
>  >  >  >  >         try {
>  >  >  >  >             [...]
>  >  >  >  >         } catch (IOException e) {
>  >  >  >  >             System.out.println("we are here");
>  >  >  >  >             // no list of jars found
>  >  >  >  >
>  >  >  >  >
>  >  >  >  >         }
>  >  >  >  >
>  >  >  >  >
>  >  >  >  >  On Fri, Feb 22, 2008 at 12:53 PM, Alexei Fedotov
>  >  >  >  >  <al...@gmail.com> wrote:
>  >  >  >  >  > I have no other data at this moment except the fact that all tests
>  >  >  >  >  >  were passing for me. This does not mean that URL works, there may be
>  >  >  >  >  >  exclude lists, or something. Sorry, I did not realize this is the same
>  >  >  >  >  >  module I'm running tests on.
>  >  >  >  >  >
>  >  >  >  >  >  On Fri, Feb 22, 2008 at 7:12 AM, Stepan Mishura
>  >  >  >  >  >
>  >  >  >  >  >
>  >  >  >  >  > <st...@gmail.com> wrote:
>  >  >  >  >  >  > On 2/22/08, Nathan Beyer <nb...@gmail.com> wrote:
>  >  >  >  >  >  >  > I have OpenDNS configured, so I'm getting this -
>  >  >  >  >  >  >  > http://guide.opendns.com/?url=jcltest.apache.org%2Finternalres%2FBug93893-1.crl.
>  >  >  >  >  >  >  >
>  >  >  >  >  >  >  > I guess that's the issue ... thanks.
>  >  >  >  >  >  >  >
>  >  >  >  >  >  >
>  >  >  >  >  >  >  I think that the issue is the test itself - it is expected to test
>  >  >  >  >  >  >  certificates and crls stored in files but there are no required files.
>  >  >  >  >  >  >  Also I've checked HARMONY-88 (the origin JIRA for the test) - it
>  >  >  >  >  >  >  doesn't contain them too.
>  >  >  >  >  >  >
>  >  >  >  >  >  >  Thanks,
>  >  >  >  >  >  >  Stepan.
>  >  >  >  >  >  >
>  >  >  >  >  >  >
>  >  >  >  >  >  >
>  >  >  >  >  >  >  > -Nathan
>  >  >  >  >  >  >  >
>  >  >  >  >  >  >  > On Thu, Feb 21, 2008 at 3:22 AM, Stepan Mishura
>  >  >  >  >  >  >  > <st...@gmail.com> wrote:
>  >  >  >  >  >  >  > > On 2/21/08, Stepan Mishura <st...@gmail.com> wrote:
>  >  >  >  >  >  >  > >  > On 2/21/08, Nathan Beyer <nb...@gmail.com> wrote:
>  >  >  >  >  >  >  > >  > > I'm getting a bunch of failures for various tests connecting to the
>  >  >  >  >  >  >  > >  > > 'jcltest.apache.org' host. Does anyone know how that works? Is that a
>  >  >  >  >  >  >  > >  > > real host?
>  >  >  >  >  >  >  > >  > >
>  >  >  >  >  >  >  > >  > > I've uploaded my classlib test report here -
>  >  >  >  >  >  >  > >  > > http://people.apache.org/~ndbeyer/m5-tests/classlib-r629329.zip
>  >  >  >  >  >  >  > >  >
>  >  >  >  >  >  >  > >  > Interesting, yes there are failed tests in security module (not in archive).
>  >  >  >  >  >  >  > >  > I'll try to investigate why they failed.
>  >  >  >  >  >  >  > >
>  >  >  >  >  >  >  > >  I've looked into:
>  >  >  >  >  >  >  > >  org.apache.harmony.security.tests.java.security.cert.CertificateFactory4Test
>  >  >  >  >  >  >  > >     test_generateCRLLjava_io_InputStream
>  >  >  >  >  >  >  > >
>  >  >  >  >  >  >  > >  The next update:
>  >  >  >  >  >  >  > >  $ svn di
>  >  >  >  >  >  >  > >  Index: CertificateFactory4Test.java
>  >  >  >  >  >  >  > >  ===================================================================
>  >  >  >  >  >  >  > >  --- CertificateFactory4Test.java        (revision 629706)
>  >  >  >  >  >  >  > >  +++ CertificateFactory4Test.java        (working copy)
>  >  >  >  >  >  >  > >  @@ -116,6 +116,7 @@
>  >  >  >  >  >  >  > >                          + "\" were not parsed correctly", crl);
>  >  >  >  >  >  >  > >              } catch (IOException e) {
>  >  >  >  >  >  >  > >                  // the certificate could not be found, skip it
>  >  >  >  >  >  >  > >  +                System.out.println("Couldn't find certificate: " +
>  >  >  >  >  >  >  > >  certUrl.toExternalForm());
>  >  >  >  >  >  >  > >              } catch (CRLException e) {
>  >  >  >  >  >  >  > >                  fail("An exception was thrown while parsing \""
>  >  >  >  >  >  >  > >                          + certUrl.toExternalForm() + "\": " + e.getMessage());
>  >  >  >  >  >  >  > >
>  >  >  >  >  >  >  > >  Gives the next output:
>  >  >  >  >  >  >  > >  run-tests-api:
>  >  >  >  >  >  >  > >      [echo] Running SECURITY api tests
>  >  >  >  >  >  >  > >     [mkdir] Created dir: C:\Apache\Harmony\ClassLib\build\test_report
>  >  >  >  >  >  >  > >     [junit] Running
>  >  >  >  >  >  >  > >  org.apache.harmony.security.tests.java.security.cert.CertificateFactory4Test
>  >  >  >  >  >  >  > >     [junit] Couldn't find certificate:
>  >  >  >  >  >  >  > >  http://jcltest.apache.org/testres231/../internalres/Bug93893-1.crl
>  >  >  >  >  >  >  > >     [junit] Couldn't find certificate:
>  >  >  >  >  >  >  > >  http://jcltest.apache.org/testres231/../internalres/Bug93893-2.crl
>  >  >  >  >  >  >  > >     [junit] Couldn't find certificate:
>  >  >  >  >  >  >  > >  http://jcltest.apache.org/testres231/../internalres/Bug94404-DER.crl
>  >  >  >  >  >  >  > >     [junit] Tests run: 14, Failures: 0, Errors: 0, Time elapsed: 0.594 sec
>  >  >  >  >  >  >  > >
>  >  >  >  >  >  >  > >  So the test tries to open unreachable URL by
>  >  >  >  >  >  >  > >     InputStream is = certUrl.openStream();
>  >  >  >  >  >  >  > >  and IOException is thrown.
>  >  >  >  >  >  >  > >  But in your case there is no exception and test tries to parse
>  >  >  >  >  >  >  > >  certificates and crls.
>  >  >  >  >  >  >  > >  You may wish to examine InputStream content.
>  >  >  >  >  >  >  > >
>  >  >  >  >  >  >  > >  Thanks,
>  >  >  >  >  >  >  > >  Stepan.
>  >  >  >  >  >  >  > >
>  >  >  >  >  >  >  > >
>  >  >  >  >  >  >  > >
>  >  >  >  >  >  >  > >  >
>  >  >  >  >  >  >  > >  > -Stepan.
>  >  >  >  >  >  >  > >  >
>  >  >  >  >  >  >  > >  > >
>  >  >  >  >  >  >  > >  > > -Nathan
>  >  >  >  >  >  >  > >  > >
>  >  >  >  >  >  >  > >  > > On Mon, Feb 18, 2008 at 11:23 PM, Sean Qiu <se...@gmail.com> wrote:
>  >  >  >  >  >  >  > >  > > > Hi, Nathan
>  >  >  >  >  >  >  > >  > > >  It works well in my machine, windows xp sp2 32.
>  >  >  >  >  >  >  > >  > > >
>  >  >  >  >  >  >  > >  > > >
>  >  >  >  >  >  >  > >  > > >  2008/2/19, Nathan Beyer <nd...@apache.org>:
>  >  >  >  >  >  >  > >  > > >
>  >  >  >  >  >  >  > >  > > >
>  >  >  >  >  >  >  > >  > > > >
>  >  >  >  >  >  >  > >  > > >  > Anyone else seeing a test failure in the archive module? I'm seeing
>  >  >  >  >  >  >  > >  > > >  > this on all of my machines for the latest revision.
>  >  >  >  >  >  >  > >  > > >  >
>  >  >  >  >  >  >  > >  > > >  > On Feb 16, 2008 10:44 PM, Nathan Beyer <nd...@apache.org> wrote:
>  >  >  >  >  >  >  > >  > > >  > > One of the archive module's tests is making a URL connection to
>  >  >  >  >  >  >  > >  > > >  > > "http://jcltest.apache.org/testres231/../internalres/signedjars". Is
>  >  >  >  >  >  >  > >  > > >  > > something supposed to be intercepting this and faking out the server?
>  >  >  >  >  >  >  > >  > > >  > >
>  >  >  >  >  >  >  > >  > > >  > > -Nathan
>  >  >  >  >  >  >  > >  > > >  > >
>  >  >  >  >  >  >  > >  > > >  >
>  >  >  >  >  >  >  > >  > > >
>  >  >  >  >  >  >  > >  > > >
>  >  >  >  >  >  >  > >  > > >
>  >  >  >  >  >  >  > >  > > >  --
>  >  >  >  >  >  >  > >  > > >  Sean Qiu
>  >  >  >  >  >  >  > >  > > >  http://xiaoxia.turendui.com
>  >  >  >  >  >  >  > >  > > >
>  >  >  >  >  >  >  > >  > >
>  >  >  >  >  >  >  > >  >
>  >  >  >  >  >  >  > >
>  >  >  >  >  >  >  >
>  >  >  >  >  >  >
>  >  >  >  >  >
>  >  >  >  >  >
>  >  >  >  >  >
>  >  >  >  >  >  --
>  >  >  >  >  >  With best regards,
>  >  >  >  >  >  Alexei
>  >  >  >  >  >
>  >  >  >  >
>  >  >  >  >
>  >  >  >  >
>  >  >  >  >  --
>  >  >  >  >  With best regards,
>  >  >  >  >  Alexei
>  >  >  >  >
>  >  >  >
>  >  >
>  >  >
>  >  >
>  >  >  --
>  >  >  With best regards,
>  >  >  Alexei
>  >  >
>  >
>



-- 
With best regards,
Alexei

Re: [archive] test failure, odd url

Posted by Nathan Beyer <nb...@gmail.com>.
This all seems to come from Support_Configuration -
http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/support/src/test/java/tests/support/Support_Configuration.java?view=markup

I don't quite understand the details, but I'm guessing it's trying to
setup an http server that responds to 'jcltest.apache.org'. This
doesn't seem to be working on my network.

-Nathan

On Sat, Feb 23, 2008 at 9:58 PM, Nathan Beyer <nb...@gmail.com> wrote:
> I think it's originating from the
>  Support_Resources.getResourceURL("../internalres/") calls, not just
>  "signedjars". For some reason the resulting URL is
>  "http://jcltest.apache.org/" based.
>
>  -Nathan
>
>  On Sat, Feb 23, 2008 at 2:35 PM, Alexei Fedotov
>
>
> <al...@gmail.com> wrote:
>  > Nathan,
>  >  I was talking about
>  >  org.apache.harmony.archive.tests.java.util.jar.JarFileTest.testGetJarEntry().
>  >  I have run "grep" for another occurrence of "signedjars" and fail to
>  >  find another match.
>  >
>  >  Thanks.
>  >
>  >
>  >
>  >  On Sat, Feb 23, 2008 at 8:48 PM, Nathan Beyer <nb...@gmail.com> wrote:
>  >  > What class is that test? I don't think that's the same test I'm seeing
>  >  >  failures in.
>  >  >
>  >  >  On Fri, Feb 22, 2008 at 4:09 AM, Alexei Fedotov
>  >  >
>  >  >
>  >  > <al...@gmail.com> wrote:
>  >  >  > Nathan,
>  >  >  >  Actually this was a test I was patching today. It works perfectly on
>  >  >  >  my computer, but doesn't perform any connections. To debug this I have
>  >  >  >  added a print at the catch section (see below), and the print outputs
>  >  >  >  "we are here" for me. This means the URL is absent, but the test does
>  >  >  >  not report fail due to IOException, and just ignores URL absence.
>  >  >  >
>  >  >  >     public void testGetJarEntry() throws Exception {
>  >  >  >         [...]
>  >  >  >
>  >  >  >         // tests for signed jars
>  >  >  >         // test all signed jars in the /Testres/Internal/SignedJars directory
>  >  >  >         String jarDirUrl = Support_Resources
>  >  >  >                 .getResourceURL("/../internalres/signedjars");
>  >  >  >         Vector<String> signedJars = new Vector<String>();
>  >  >  >         try {
>  >  >  >             [...]
>  >  >  >         } catch (IOException e) {
>  >  >  >             System.out.println("we are here");
>  >  >  >             // no list of jars found
>  >  >  >
>  >  >  >
>  >  >  >         }
>  >  >  >
>  >  >  >
>  >  >  >  On Fri, Feb 22, 2008 at 12:53 PM, Alexei Fedotov
>  >  >  >  <al...@gmail.com> wrote:
>  >  >  >  > I have no other data at this moment except the fact that all tests
>  >  >  >  >  were passing for me. This does not mean that URL works, there may be
>  >  >  >  >  exclude lists, or something. Sorry, I did not realize this is the same
>  >  >  >  >  module I'm running tests on.
>  >  >  >  >
>  >  >  >  >  On Fri, Feb 22, 2008 at 7:12 AM, Stepan Mishura
>  >  >  >  >
>  >  >  >  >
>  >  >  >  > <st...@gmail.com> wrote:
>  >  >  >  >  > On 2/22/08, Nathan Beyer <nb...@gmail.com> wrote:
>  >  >  >  >  >  > I have OpenDNS configured, so I'm getting this -
>  >  >  >  >  >  > http://guide.opendns.com/?url=jcltest.apache.org%2Finternalres%2FBug93893-1.crl.
>  >  >  >  >  >  >
>  >  >  >  >  >  > I guess that's the issue ... thanks.
>  >  >  >  >  >  >
>  >  >  >  >  >
>  >  >  >  >  >  I think that the issue is the test itself - it is expected to test
>  >  >  >  >  >  certificates and crls stored in files but there are no required files.
>  >  >  >  >  >  Also I've checked HARMONY-88 (the origin JIRA for the test) - it
>  >  >  >  >  >  doesn't contain them too.
>  >  >  >  >  >
>  >  >  >  >  >  Thanks,
>  >  >  >  >  >  Stepan.
>  >  >  >  >  >
>  >  >  >  >  >
>  >  >  >  >  >
>  >  >  >  >  >  > -Nathan
>  >  >  >  >  >  >
>  >  >  >  >  >  > On Thu, Feb 21, 2008 at 3:22 AM, Stepan Mishura
>  >  >  >  >  >  > <st...@gmail.com> wrote:
>  >  >  >  >  >  > > On 2/21/08, Stepan Mishura <st...@gmail.com> wrote:
>  >  >  >  >  >  > >  > On 2/21/08, Nathan Beyer <nb...@gmail.com> wrote:
>  >  >  >  >  >  > >  > > I'm getting a bunch of failures for various tests connecting to the
>  >  >  >  >  >  > >  > > 'jcltest.apache.org' host. Does anyone know how that works? Is that a
>  >  >  >  >  >  > >  > > real host?
>  >  >  >  >  >  > >  > >
>  >  >  >  >  >  > >  > > I've uploaded my classlib test report here -
>  >  >  >  >  >  > >  > > http://people.apache.org/~ndbeyer/m5-tests/classlib-r629329.zip
>  >  >  >  >  >  > >  >
>  >  >  >  >  >  > >  > Interesting, yes there are failed tests in security module (not in archive).
>  >  >  >  >  >  > >  > I'll try to investigate why they failed.
>  >  >  >  >  >  > >
>  >  >  >  >  >  > >  I've looked into:
>  >  >  >  >  >  > >  org.apache.harmony.security.tests.java.security.cert.CertificateFactory4Test
>  >  >  >  >  >  > >     test_generateCRLLjava_io_InputStream
>  >  >  >  >  >  > >
>  >  >  >  >  >  > >  The next update:
>  >  >  >  >  >  > >  $ svn di
>  >  >  >  >  >  > >  Index: CertificateFactory4Test.java
>  >  >  >  >  >  > >  ===================================================================
>  >  >  >  >  >  > >  --- CertificateFactory4Test.java        (revision 629706)
>  >  >  >  >  >  > >  +++ CertificateFactory4Test.java        (working copy)
>  >  >  >  >  >  > >  @@ -116,6 +116,7 @@
>  >  >  >  >  >  > >                          + "\" were not parsed correctly", crl);
>  >  >  >  >  >  > >              } catch (IOException e) {
>  >  >  >  >  >  > >                  // the certificate could not be found, skip it
>  >  >  >  >  >  > >  +                System.out.println("Couldn't find certificate: " +
>  >  >  >  >  >  > >  certUrl.toExternalForm());
>  >  >  >  >  >  > >              } catch (CRLException e) {
>  >  >  >  >  >  > >                  fail("An exception was thrown while parsing \""
>  >  >  >  >  >  > >                          + certUrl.toExternalForm() + "\": " + e.getMessage());
>  >  >  >  >  >  > >
>  >  >  >  >  >  > >  Gives the next output:
>  >  >  >  >  >  > >  run-tests-api:
>  >  >  >  >  >  > >      [echo] Running SECURITY api tests
>  >  >  >  >  >  > >     [mkdir] Created dir: C:\Apache\Harmony\ClassLib\build\test_report
>  >  >  >  >  >  > >     [junit] Running
>  >  >  >  >  >  > >  org.apache.harmony.security.tests.java.security.cert.CertificateFactory4Test
>  >  >  >  >  >  > >     [junit] Couldn't find certificate:
>  >  >  >  >  >  > >  http://jcltest.apache.org/testres231/../internalres/Bug93893-1.crl
>  >  >  >  >  >  > >     [junit] Couldn't find certificate:
>  >  >  >  >  >  > >  http://jcltest.apache.org/testres231/../internalres/Bug93893-2.crl
>  >  >  >  >  >  > >     [junit] Couldn't find certificate:
>  >  >  >  >  >  > >  http://jcltest.apache.org/testres231/../internalres/Bug94404-DER.crl
>  >  >  >  >  >  > >     [junit] Tests run: 14, Failures: 0, Errors: 0, Time elapsed: 0.594 sec
>  >  >  >  >  >  > >
>  >  >  >  >  >  > >  So the test tries to open unreachable URL by
>  >  >  >  >  >  > >     InputStream is = certUrl.openStream();
>  >  >  >  >  >  > >  and IOException is thrown.
>  >  >  >  >  >  > >  But in your case there is no exception and test tries to parse
>  >  >  >  >  >  > >  certificates and crls.
>  >  >  >  >  >  > >  You may wish to examine InputStream content.
>  >  >  >  >  >  > >
>  >  >  >  >  >  > >  Thanks,
>  >  >  >  >  >  > >  Stepan.
>  >  >  >  >  >  > >
>  >  >  >  >  >  > >
>  >  >  >  >  >  > >
>  >  >  >  >  >  > >  >
>  >  >  >  >  >  > >  > -Stepan.
>  >  >  >  >  >  > >  >
>  >  >  >  >  >  > >  > >
>  >  >  >  >  >  > >  > > -Nathan
>  >  >  >  >  >  > >  > >
>  >  >  >  >  >  > >  > > On Mon, Feb 18, 2008 at 11:23 PM, Sean Qiu <se...@gmail.com> wrote:
>  >  >  >  >  >  > >  > > > Hi, Nathan
>  >  >  >  >  >  > >  > > >  It works well in my machine, windows xp sp2 32.
>  >  >  >  >  >  > >  > > >
>  >  >  >  >  >  > >  > > >
>  >  >  >  >  >  > >  > > >  2008/2/19, Nathan Beyer <nd...@apache.org>:
>  >  >  >  >  >  > >  > > >
>  >  >  >  >  >  > >  > > >
>  >  >  >  >  >  > >  > > > >
>  >  >  >  >  >  > >  > > >  > Anyone else seeing a test failure in the archive module? I'm seeing
>  >  >  >  >  >  > >  > > >  > this on all of my machines for the latest revision.
>  >  >  >  >  >  > >  > > >  >
>  >  >  >  >  >  > >  > > >  > On Feb 16, 2008 10:44 PM, Nathan Beyer <nd...@apache.org> wrote:
>  >  >  >  >  >  > >  > > >  > > One of the archive module's tests is making a URL connection to
>  >  >  >  >  >  > >  > > >  > > "http://jcltest.apache.org/testres231/../internalres/signedjars". Is
>  >  >  >  >  >  > >  > > >  > > something supposed to be intercepting this and faking out the server?
>  >  >  >  >  >  > >  > > >  > >
>  >  >  >  >  >  > >  > > >  > > -Nathan
>  >  >  >  >  >  > >  > > >  > >
>  >  >  >  >  >  > >  > > >  >
>  >  >  >  >  >  > >  > > >
>  >  >  >  >  >  > >  > > >
>  >  >  >  >  >  > >  > > >
>  >  >  >  >  >  > >  > > >  --
>  >  >  >  >  >  > >  > > >  Sean Qiu
>  >  >  >  >  >  > >  > > >  http://xiaoxia.turendui.com
>  >  >  >  >  >  > >  > > >
>  >  >  >  >  >  > >  > >
>  >  >  >  >  >  > >  >
>  >  >  >  >  >  > >
>  >  >  >  >  >  >
>  >  >  >  >  >
>  >  >  >  >
>  >  >  >  >
>  >  >  >  >
>  >  >  >  >  --
>  >  >  >  >  With best regards,
>  >  >  >  >  Alexei
>  >  >  >  >
>  >  >  >
>  >  >  >
>  >  >  >
>  >  >  >  --
>  >  >  >  With best regards,
>  >  >  >  Alexei
>  >  >  >
>  >  >
>  >
>  >
>  >
>  >  --
>  >  With best regards,
>  >  Alexei
>  >
>

Re: [archive] test failure, odd url

Posted by Nathan Beyer <nb...@gmail.com>.
I think it's originating from the
Support_Resources.getResourceURL("../internalres/") calls, not just
"signedjars". For some reason the resulting URL is
"http://jcltest.apache.org/" based.

-Nathan

On Sat, Feb 23, 2008 at 2:35 PM, Alexei Fedotov
<al...@gmail.com> wrote:
> Nathan,
>  I was talking about
>  org.apache.harmony.archive.tests.java.util.jar.JarFileTest.testGetJarEntry().
>  I have run "grep" for another occurrence of "signedjars" and fail to
>  find another match.
>
>  Thanks.
>
>
>
>  On Sat, Feb 23, 2008 at 8:48 PM, Nathan Beyer <nb...@gmail.com> wrote:
>  > What class is that test? I don't think that's the same test I'm seeing
>  >  failures in.
>  >
>  >  On Fri, Feb 22, 2008 at 4:09 AM, Alexei Fedotov
>  >
>  >
>  > <al...@gmail.com> wrote:
>  >  > Nathan,
>  >  >  Actually this was a test I was patching today. It works perfectly on
>  >  >  my computer, but doesn't perform any connections. To debug this I have
>  >  >  added a print at the catch section (see below), and the print outputs
>  >  >  "we are here" for me. This means the URL is absent, but the test does
>  >  >  not report fail due to IOException, and just ignores URL absence.
>  >  >
>  >  >     public void testGetJarEntry() throws Exception {
>  >  >         [...]
>  >  >
>  >  >         // tests for signed jars
>  >  >         // test all signed jars in the /Testres/Internal/SignedJars directory
>  >  >         String jarDirUrl = Support_Resources
>  >  >                 .getResourceURL("/../internalres/signedjars");
>  >  >         Vector<String> signedJars = new Vector<String>();
>  >  >         try {
>  >  >             [...]
>  >  >         } catch (IOException e) {
>  >  >             System.out.println("we are here");
>  >  >             // no list of jars found
>  >  >
>  >  >
>  >  >         }
>  >  >
>  >  >
>  >  >  On Fri, Feb 22, 2008 at 12:53 PM, Alexei Fedotov
>  >  >  <al...@gmail.com> wrote:
>  >  >  > I have no other data at this moment except the fact that all tests
>  >  >  >  were passing for me. This does not mean that URL works, there may be
>  >  >  >  exclude lists, or something. Sorry, I did not realize this is the same
>  >  >  >  module I'm running tests on.
>  >  >  >
>  >  >  >  On Fri, Feb 22, 2008 at 7:12 AM, Stepan Mishura
>  >  >  >
>  >  >  >
>  >  >  > <st...@gmail.com> wrote:
>  >  >  >  > On 2/22/08, Nathan Beyer <nb...@gmail.com> wrote:
>  >  >  >  >  > I have OpenDNS configured, so I'm getting this -
>  >  >  >  >  > http://guide.opendns.com/?url=jcltest.apache.org%2Finternalres%2FBug93893-1.crl.
>  >  >  >  >  >
>  >  >  >  >  > I guess that's the issue ... thanks.
>  >  >  >  >  >
>  >  >  >  >
>  >  >  >  >  I think that the issue is the test itself - it is expected to test
>  >  >  >  >  certificates and crls stored in files but there are no required files.
>  >  >  >  >  Also I've checked HARMONY-88 (the origin JIRA for the test) - it
>  >  >  >  >  doesn't contain them too.
>  >  >  >  >
>  >  >  >  >  Thanks,
>  >  >  >  >  Stepan.
>  >  >  >  >
>  >  >  >  >
>  >  >  >  >
>  >  >  >  >  > -Nathan
>  >  >  >  >  >
>  >  >  >  >  > On Thu, Feb 21, 2008 at 3:22 AM, Stepan Mishura
>  >  >  >  >  > <st...@gmail.com> wrote:
>  >  >  >  >  > > On 2/21/08, Stepan Mishura <st...@gmail.com> wrote:
>  >  >  >  >  > >  > On 2/21/08, Nathan Beyer <nb...@gmail.com> wrote:
>  >  >  >  >  > >  > > I'm getting a bunch of failures for various tests connecting to the
>  >  >  >  >  > >  > > 'jcltest.apache.org' host. Does anyone know how that works? Is that a
>  >  >  >  >  > >  > > real host?
>  >  >  >  >  > >  > >
>  >  >  >  >  > >  > > I've uploaded my classlib test report here -
>  >  >  >  >  > >  > > http://people.apache.org/~ndbeyer/m5-tests/classlib-r629329.zip
>  >  >  >  >  > >  >
>  >  >  >  >  > >  > Interesting, yes there are failed tests in security module (not in archive).
>  >  >  >  >  > >  > I'll try to investigate why they failed.
>  >  >  >  >  > >
>  >  >  >  >  > >  I've looked into:
>  >  >  >  >  > >  org.apache.harmony.security.tests.java.security.cert.CertificateFactory4Test
>  >  >  >  >  > >     test_generateCRLLjava_io_InputStream
>  >  >  >  >  > >
>  >  >  >  >  > >  The next update:
>  >  >  >  >  > >  $ svn di
>  >  >  >  >  > >  Index: CertificateFactory4Test.java
>  >  >  >  >  > >  ===================================================================
>  >  >  >  >  > >  --- CertificateFactory4Test.java        (revision 629706)
>  >  >  >  >  > >  +++ CertificateFactory4Test.java        (working copy)
>  >  >  >  >  > >  @@ -116,6 +116,7 @@
>  >  >  >  >  > >                          + "\" were not parsed correctly", crl);
>  >  >  >  >  > >              } catch (IOException e) {
>  >  >  >  >  > >                  // the certificate could not be found, skip it
>  >  >  >  >  > >  +                System.out.println("Couldn't find certificate: " +
>  >  >  >  >  > >  certUrl.toExternalForm());
>  >  >  >  >  > >              } catch (CRLException e) {
>  >  >  >  >  > >                  fail("An exception was thrown while parsing \""
>  >  >  >  >  > >                          + certUrl.toExternalForm() + "\": " + e.getMessage());
>  >  >  >  >  > >
>  >  >  >  >  > >  Gives the next output:
>  >  >  >  >  > >  run-tests-api:
>  >  >  >  >  > >      [echo] Running SECURITY api tests
>  >  >  >  >  > >     [mkdir] Created dir: C:\Apache\Harmony\ClassLib\build\test_report
>  >  >  >  >  > >     [junit] Running
>  >  >  >  >  > >  org.apache.harmony.security.tests.java.security.cert.CertificateFactory4Test
>  >  >  >  >  > >     [junit] Couldn't find certificate:
>  >  >  >  >  > >  http://jcltest.apache.org/testres231/../internalres/Bug93893-1.crl
>  >  >  >  >  > >     [junit] Couldn't find certificate:
>  >  >  >  >  > >  http://jcltest.apache.org/testres231/../internalres/Bug93893-2.crl
>  >  >  >  >  > >     [junit] Couldn't find certificate:
>  >  >  >  >  > >  http://jcltest.apache.org/testres231/../internalres/Bug94404-DER.crl
>  >  >  >  >  > >     [junit] Tests run: 14, Failures: 0, Errors: 0, Time elapsed: 0.594 sec
>  >  >  >  >  > >
>  >  >  >  >  > >  So the test tries to open unreachable URL by
>  >  >  >  >  > >     InputStream is = certUrl.openStream();
>  >  >  >  >  > >  and IOException is thrown.
>  >  >  >  >  > >  But in your case there is no exception and test tries to parse
>  >  >  >  >  > >  certificates and crls.
>  >  >  >  >  > >  You may wish to examine InputStream content.
>  >  >  >  >  > >
>  >  >  >  >  > >  Thanks,
>  >  >  >  >  > >  Stepan.
>  >  >  >  >  > >
>  >  >  >  >  > >
>  >  >  >  >  > >
>  >  >  >  >  > >  >
>  >  >  >  >  > >  > -Stepan.
>  >  >  >  >  > >  >
>  >  >  >  >  > >  > >
>  >  >  >  >  > >  > > -Nathan
>  >  >  >  >  > >  > >
>  >  >  >  >  > >  > > On Mon, Feb 18, 2008 at 11:23 PM, Sean Qiu <se...@gmail.com> wrote:
>  >  >  >  >  > >  > > > Hi, Nathan
>  >  >  >  >  > >  > > >  It works well in my machine, windows xp sp2 32.
>  >  >  >  >  > >  > > >
>  >  >  >  >  > >  > > >
>  >  >  >  >  > >  > > >  2008/2/19, Nathan Beyer <nd...@apache.org>:
>  >  >  >  >  > >  > > >
>  >  >  >  >  > >  > > >
>  >  >  >  >  > >  > > > >
>  >  >  >  >  > >  > > >  > Anyone else seeing a test failure in the archive module? I'm seeing
>  >  >  >  >  > >  > > >  > this on all of my machines for the latest revision.
>  >  >  >  >  > >  > > >  >
>  >  >  >  >  > >  > > >  > On Feb 16, 2008 10:44 PM, Nathan Beyer <nd...@apache.org> wrote:
>  >  >  >  >  > >  > > >  > > One of the archive module's tests is making a URL connection to
>  >  >  >  >  > >  > > >  > > "http://jcltest.apache.org/testres231/../internalres/signedjars". Is
>  >  >  >  >  > >  > > >  > > something supposed to be intercepting this and faking out the server?
>  >  >  >  >  > >  > > >  > >
>  >  >  >  >  > >  > > >  > > -Nathan
>  >  >  >  >  > >  > > >  > >
>  >  >  >  >  > >  > > >  >
>  >  >  >  >  > >  > > >
>  >  >  >  >  > >  > > >
>  >  >  >  >  > >  > > >
>  >  >  >  >  > >  > > >  --
>  >  >  >  >  > >  > > >  Sean Qiu
>  >  >  >  >  > >  > > >  http://xiaoxia.turendui.com
>  >  >  >  >  > >  > > >
>  >  >  >  >  > >  > >
>  >  >  >  >  > >  >
>  >  >  >  >  > >
>  >  >  >  >  >
>  >  >  >  >
>  >  >  >
>  >  >  >
>  >  >  >
>  >  >  >  --
>  >  >  >  With best regards,
>  >  >  >  Alexei
>  >  >  >
>  >  >
>  >  >
>  >  >
>  >  >  --
>  >  >  With best regards,
>  >  >  Alexei
>  >  >
>  >
>
>
>
>  --
>  With best regards,
>  Alexei
>

Re: [archive] test failure, odd url

Posted by Alexei Fedotov <al...@gmail.com>.
Nathan,
I was talking about
org.apache.harmony.archive.tests.java.util.jar.JarFileTest.testGetJarEntry().
I have run "grep" for another occurrence of "signedjars" and fail to
find another match.

Thanks.

On Sat, Feb 23, 2008 at 8:48 PM, Nathan Beyer <nb...@gmail.com> wrote:
> What class is that test? I don't think that's the same test I'm seeing
>  failures in.
>
>  On Fri, Feb 22, 2008 at 4:09 AM, Alexei Fedotov
>
>
> <al...@gmail.com> wrote:
>  > Nathan,
>  >  Actually this was a test I was patching today. It works perfectly on
>  >  my computer, but doesn't perform any connections. To debug this I have
>  >  added a print at the catch section (see below), and the print outputs
>  >  "we are here" for me. This means the URL is absent, but the test does
>  >  not report fail due to IOException, and just ignores URL absence.
>  >
>  >     public void testGetJarEntry() throws Exception {
>  >         [...]
>  >
>  >         // tests for signed jars
>  >         // test all signed jars in the /Testres/Internal/SignedJars directory
>  >         String jarDirUrl = Support_Resources
>  >                 .getResourceURL("/../internalres/signedjars");
>  >         Vector<String> signedJars = new Vector<String>();
>  >         try {
>  >             [...]
>  >         } catch (IOException e) {
>  >             System.out.println("we are here");
>  >             // no list of jars found
>  >
>  >
>  >         }
>  >
>  >
>  >  On Fri, Feb 22, 2008 at 12:53 PM, Alexei Fedotov
>  >  <al...@gmail.com> wrote:
>  >  > I have no other data at this moment except the fact that all tests
>  >  >  were passing for me. This does not mean that URL works, there may be
>  >  >  exclude lists, or something. Sorry, I did not realize this is the same
>  >  >  module I'm running tests on.
>  >  >
>  >  >  On Fri, Feb 22, 2008 at 7:12 AM, Stepan Mishura
>  >  >
>  >  >
>  >  > <st...@gmail.com> wrote:
>  >  >  > On 2/22/08, Nathan Beyer <nb...@gmail.com> wrote:
>  >  >  >  > I have OpenDNS configured, so I'm getting this -
>  >  >  >  > http://guide.opendns.com/?url=jcltest.apache.org%2Finternalres%2FBug93893-1.crl.
>  >  >  >  >
>  >  >  >  > I guess that's the issue ... thanks.
>  >  >  >  >
>  >  >  >
>  >  >  >  I think that the issue is the test itself - it is expected to test
>  >  >  >  certificates and crls stored in files but there are no required files.
>  >  >  >  Also I've checked HARMONY-88 (the origin JIRA for the test) - it
>  >  >  >  doesn't contain them too.
>  >  >  >
>  >  >  >  Thanks,
>  >  >  >  Stepan.
>  >  >  >
>  >  >  >
>  >  >  >
>  >  >  >  > -Nathan
>  >  >  >  >
>  >  >  >  > On Thu, Feb 21, 2008 at 3:22 AM, Stepan Mishura
>  >  >  >  > <st...@gmail.com> wrote:
>  >  >  >  > > On 2/21/08, Stepan Mishura <st...@gmail.com> wrote:
>  >  >  >  > >  > On 2/21/08, Nathan Beyer <nb...@gmail.com> wrote:
>  >  >  >  > >  > > I'm getting a bunch of failures for various tests connecting to the
>  >  >  >  > >  > > 'jcltest.apache.org' host. Does anyone know how that works? Is that a
>  >  >  >  > >  > > real host?
>  >  >  >  > >  > >
>  >  >  >  > >  > > I've uploaded my classlib test report here -
>  >  >  >  > >  > > http://people.apache.org/~ndbeyer/m5-tests/classlib-r629329.zip
>  >  >  >  > >  >
>  >  >  >  > >  > Interesting, yes there are failed tests in security module (not in archive).
>  >  >  >  > >  > I'll try to investigate why they failed.
>  >  >  >  > >
>  >  >  >  > >  I've looked into:
>  >  >  >  > >  org.apache.harmony.security.tests.java.security.cert.CertificateFactory4Test
>  >  >  >  > >     test_generateCRLLjava_io_InputStream
>  >  >  >  > >
>  >  >  >  > >  The next update:
>  >  >  >  > >  $ svn di
>  >  >  >  > >  Index: CertificateFactory4Test.java
>  >  >  >  > >  ===================================================================
>  >  >  >  > >  --- CertificateFactory4Test.java        (revision 629706)
>  >  >  >  > >  +++ CertificateFactory4Test.java        (working copy)
>  >  >  >  > >  @@ -116,6 +116,7 @@
>  >  >  >  > >                          + "\" were not parsed correctly", crl);
>  >  >  >  > >              } catch (IOException e) {
>  >  >  >  > >                  // the certificate could not be found, skip it
>  >  >  >  > >  +                System.out.println("Couldn't find certificate: " +
>  >  >  >  > >  certUrl.toExternalForm());
>  >  >  >  > >              } catch (CRLException e) {
>  >  >  >  > >                  fail("An exception was thrown while parsing \""
>  >  >  >  > >                          + certUrl.toExternalForm() + "\": " + e.getMessage());
>  >  >  >  > >
>  >  >  >  > >  Gives the next output:
>  >  >  >  > >  run-tests-api:
>  >  >  >  > >      [echo] Running SECURITY api tests
>  >  >  >  > >     [mkdir] Created dir: C:\Apache\Harmony\ClassLib\build\test_report
>  >  >  >  > >     [junit] Running
>  >  >  >  > >  org.apache.harmony.security.tests.java.security.cert.CertificateFactory4Test
>  >  >  >  > >     [junit] Couldn't find certificate:
>  >  >  >  > >  http://jcltest.apache.org/testres231/../internalres/Bug93893-1.crl
>  >  >  >  > >     [junit] Couldn't find certificate:
>  >  >  >  > >  http://jcltest.apache.org/testres231/../internalres/Bug93893-2.crl
>  >  >  >  > >     [junit] Couldn't find certificate:
>  >  >  >  > >  http://jcltest.apache.org/testres231/../internalres/Bug94404-DER.crl
>  >  >  >  > >     [junit] Tests run: 14, Failures: 0, Errors: 0, Time elapsed: 0.594 sec
>  >  >  >  > >
>  >  >  >  > >  So the test tries to open unreachable URL by
>  >  >  >  > >     InputStream is = certUrl.openStream();
>  >  >  >  > >  and IOException is thrown.
>  >  >  >  > >  But in your case there is no exception and test tries to parse
>  >  >  >  > >  certificates and crls.
>  >  >  >  > >  You may wish to examine InputStream content.
>  >  >  >  > >
>  >  >  >  > >  Thanks,
>  >  >  >  > >  Stepan.
>  >  >  >  > >
>  >  >  >  > >
>  >  >  >  > >
>  >  >  >  > >  >
>  >  >  >  > >  > -Stepan.
>  >  >  >  > >  >
>  >  >  >  > >  > >
>  >  >  >  > >  > > -Nathan
>  >  >  >  > >  > >
>  >  >  >  > >  > > On Mon, Feb 18, 2008 at 11:23 PM, Sean Qiu <se...@gmail.com> wrote:
>  >  >  >  > >  > > > Hi, Nathan
>  >  >  >  > >  > > >  It works well in my machine, windows xp sp2 32.
>  >  >  >  > >  > > >
>  >  >  >  > >  > > >
>  >  >  >  > >  > > >  2008/2/19, Nathan Beyer <nd...@apache.org>:
>  >  >  >  > >  > > >
>  >  >  >  > >  > > >
>  >  >  >  > >  > > > >
>  >  >  >  > >  > > >  > Anyone else seeing a test failure in the archive module? I'm seeing
>  >  >  >  > >  > > >  > this on all of my machines for the latest revision.
>  >  >  >  > >  > > >  >
>  >  >  >  > >  > > >  > On Feb 16, 2008 10:44 PM, Nathan Beyer <nd...@apache.org> wrote:
>  >  >  >  > >  > > >  > > One of the archive module's tests is making a URL connection to
>  >  >  >  > >  > > >  > > "http://jcltest.apache.org/testres231/../internalres/signedjars". Is
>  >  >  >  > >  > > >  > > something supposed to be intercepting this and faking out the server?
>  >  >  >  > >  > > >  > >
>  >  >  >  > >  > > >  > > -Nathan
>  >  >  >  > >  > > >  > >
>  >  >  >  > >  > > >  >
>  >  >  >  > >  > > >
>  >  >  >  > >  > > >
>  >  >  >  > >  > > >
>  >  >  >  > >  > > >  --
>  >  >  >  > >  > > >  Sean Qiu
>  >  >  >  > >  > > >  http://xiaoxia.turendui.com
>  >  >  >  > >  > > >
>  >  >  >  > >  > >
>  >  >  >  > >  >
>  >  >  >  > >
>  >  >  >  >
>  >  >  >
>  >  >
>  >  >
>  >  >
>  >  >  --
>  >  >  With best regards,
>  >  >  Alexei
>  >  >
>  >
>  >
>  >
>  >  --
>  >  With best regards,
>  >  Alexei
>  >
>



-- 
With best regards,
Alexei

Re: [archive] test failure, odd url

Posted by Nathan Beyer <nb...@gmail.com>.
What class is that test? I don't think that's the same test I'm seeing
failures in.

On Fri, Feb 22, 2008 at 4:09 AM, Alexei Fedotov
<al...@gmail.com> wrote:
> Nathan,
>  Actually this was a test I was patching today. It works perfectly on
>  my computer, but doesn't perform any connections. To debug this I have
>  added a print at the catch section (see below), and the print outputs
>  "we are here" for me. This means the URL is absent, but the test does
>  not report fail due to IOException, and just ignores URL absence.
>
>     public void testGetJarEntry() throws Exception {
>         [...]
>
>         // tests for signed jars
>         // test all signed jars in the /Testres/Internal/SignedJars directory
>         String jarDirUrl = Support_Resources
>                 .getResourceURL("/../internalres/signedjars");
>         Vector<String> signedJars = new Vector<String>();
>         try {
>             [...]
>         } catch (IOException e) {
>             System.out.println("we are here");
>             // no list of jars found
>
>
>         }
>
>
>  On Fri, Feb 22, 2008 at 12:53 PM, Alexei Fedotov
>  <al...@gmail.com> wrote:
>  > I have no other data at this moment except the fact that all tests
>  >  were passing for me. This does not mean that URL works, there may be
>  >  exclude lists, or something. Sorry, I did not realize this is the same
>  >  module I'm running tests on.
>  >
>  >  On Fri, Feb 22, 2008 at 7:12 AM, Stepan Mishura
>  >
>  >
>  > <st...@gmail.com> wrote:
>  >  > On 2/22/08, Nathan Beyer <nb...@gmail.com> wrote:
>  >  >  > I have OpenDNS configured, so I'm getting this -
>  >  >  > http://guide.opendns.com/?url=jcltest.apache.org%2Finternalres%2FBug93893-1.crl.
>  >  >  >
>  >  >  > I guess that's the issue ... thanks.
>  >  >  >
>  >  >
>  >  >  I think that the issue is the test itself - it is expected to test
>  >  >  certificates and crls stored in files but there are no required files.
>  >  >  Also I've checked HARMONY-88 (the origin JIRA for the test) - it
>  >  >  doesn't contain them too.
>  >  >
>  >  >  Thanks,
>  >  >  Stepan.
>  >  >
>  >  >
>  >  >
>  >  >  > -Nathan
>  >  >  >
>  >  >  > On Thu, Feb 21, 2008 at 3:22 AM, Stepan Mishura
>  >  >  > <st...@gmail.com> wrote:
>  >  >  > > On 2/21/08, Stepan Mishura <st...@gmail.com> wrote:
>  >  >  > >  > On 2/21/08, Nathan Beyer <nb...@gmail.com> wrote:
>  >  >  > >  > > I'm getting a bunch of failures for various tests connecting to the
>  >  >  > >  > > 'jcltest.apache.org' host. Does anyone know how that works? Is that a
>  >  >  > >  > > real host?
>  >  >  > >  > >
>  >  >  > >  > > I've uploaded my classlib test report here -
>  >  >  > >  > > http://people.apache.org/~ndbeyer/m5-tests/classlib-r629329.zip
>  >  >  > >  >
>  >  >  > >  > Interesting, yes there are failed tests in security module (not in archive).
>  >  >  > >  > I'll try to investigate why they failed.
>  >  >  > >
>  >  >  > >  I've looked into:
>  >  >  > >  org.apache.harmony.security.tests.java.security.cert.CertificateFactory4Test
>  >  >  > >     test_generateCRLLjava_io_InputStream
>  >  >  > >
>  >  >  > >  The next update:
>  >  >  > >  $ svn di
>  >  >  > >  Index: CertificateFactory4Test.java
>  >  >  > >  ===================================================================
>  >  >  > >  --- CertificateFactory4Test.java        (revision 629706)
>  >  >  > >  +++ CertificateFactory4Test.java        (working copy)
>  >  >  > >  @@ -116,6 +116,7 @@
>  >  >  > >                          + "\" were not parsed correctly", crl);
>  >  >  > >              } catch (IOException e) {
>  >  >  > >                  // the certificate could not be found, skip it
>  >  >  > >  +                System.out.println("Couldn't find certificate: " +
>  >  >  > >  certUrl.toExternalForm());
>  >  >  > >              } catch (CRLException e) {
>  >  >  > >                  fail("An exception was thrown while parsing \""
>  >  >  > >                          + certUrl.toExternalForm() + "\": " + e.getMessage());
>  >  >  > >
>  >  >  > >  Gives the next output:
>  >  >  > >  run-tests-api:
>  >  >  > >      [echo] Running SECURITY api tests
>  >  >  > >     [mkdir] Created dir: C:\Apache\Harmony\ClassLib\build\test_report
>  >  >  > >     [junit] Running
>  >  >  > >  org.apache.harmony.security.tests.java.security.cert.CertificateFactory4Test
>  >  >  > >     [junit] Couldn't find certificate:
>  >  >  > >  http://jcltest.apache.org/testres231/../internalres/Bug93893-1.crl
>  >  >  > >     [junit] Couldn't find certificate:
>  >  >  > >  http://jcltest.apache.org/testres231/../internalres/Bug93893-2.crl
>  >  >  > >     [junit] Couldn't find certificate:
>  >  >  > >  http://jcltest.apache.org/testres231/../internalres/Bug94404-DER.crl
>  >  >  > >     [junit] Tests run: 14, Failures: 0, Errors: 0, Time elapsed: 0.594 sec
>  >  >  > >
>  >  >  > >  So the test tries to open unreachable URL by
>  >  >  > >     InputStream is = certUrl.openStream();
>  >  >  > >  and IOException is thrown.
>  >  >  > >  But in your case there is no exception and test tries to parse
>  >  >  > >  certificates and crls.
>  >  >  > >  You may wish to examine InputStream content.
>  >  >  > >
>  >  >  > >  Thanks,
>  >  >  > >  Stepan.
>  >  >  > >
>  >  >  > >
>  >  >  > >
>  >  >  > >  >
>  >  >  > >  > -Stepan.
>  >  >  > >  >
>  >  >  > >  > >
>  >  >  > >  > > -Nathan
>  >  >  > >  > >
>  >  >  > >  > > On Mon, Feb 18, 2008 at 11:23 PM, Sean Qiu <se...@gmail.com> wrote:
>  >  >  > >  > > > Hi, Nathan
>  >  >  > >  > > >  It works well in my machine, windows xp sp2 32.
>  >  >  > >  > > >
>  >  >  > >  > > >
>  >  >  > >  > > >  2008/2/19, Nathan Beyer <nd...@apache.org>:
>  >  >  > >  > > >
>  >  >  > >  > > >
>  >  >  > >  > > > >
>  >  >  > >  > > >  > Anyone else seeing a test failure in the archive module? I'm seeing
>  >  >  > >  > > >  > this on all of my machines for the latest revision.
>  >  >  > >  > > >  >
>  >  >  > >  > > >  > On Feb 16, 2008 10:44 PM, Nathan Beyer <nd...@apache.org> wrote:
>  >  >  > >  > > >  > > One of the archive module's tests is making a URL connection to
>  >  >  > >  > > >  > > "http://jcltest.apache.org/testres231/../internalres/signedjars". Is
>  >  >  > >  > > >  > > something supposed to be intercepting this and faking out the server?
>  >  >  > >  > > >  > >
>  >  >  > >  > > >  > > -Nathan
>  >  >  > >  > > >  > >
>  >  >  > >  > > >  >
>  >  >  > >  > > >
>  >  >  > >  > > >
>  >  >  > >  > > >
>  >  >  > >  > > >  --
>  >  >  > >  > > >  Sean Qiu
>  >  >  > >  > > >  http://xiaoxia.turendui.com
>  >  >  > >  > > >
>  >  >  > >  > >
>  >  >  > >  >
>  >  >  > >
>  >  >  >
>  >  >
>  >
>  >
>  >
>  >  --
>  >  With best regards,
>  >  Alexei
>  >
>
>
>
>  --
>  With best regards,
>  Alexei
>

Re: [archive] test failure, odd url

Posted by Alexei Fedotov <al...@gmail.com>.
Nathan,
Actually this was a test I was patching today. It works perfectly on
my computer, but doesn't perform any connections. To debug this I have
added a print at the catch section (see below), and the print outputs
"we are here" for me. This means the URL is absent, but the test does
not report fail due to IOException, and just ignores URL absence.

    public void testGetJarEntry() throws Exception {
        [...]

        // tests for signed jars
        // test all signed jars in the /Testres/Internal/SignedJars directory
        String jarDirUrl = Support_Resources
                .getResourceURL("/../internalres/signedjars");
        Vector<String> signedJars = new Vector<String>();
        try {
            [...]
        } catch (IOException e) {
            System.out.println("we are here");
            // no list of jars found
        }


On Fri, Feb 22, 2008 at 12:53 PM, Alexei Fedotov
<al...@gmail.com> wrote:
> I have no other data at this moment except the fact that all tests
>  were passing for me. This does not mean that URL works, there may be
>  exclude lists, or something. Sorry, I did not realize this is the same
>  module I'm running tests on.
>
>  On Fri, Feb 22, 2008 at 7:12 AM, Stepan Mishura
>
>
> <st...@gmail.com> wrote:
>  > On 2/22/08, Nathan Beyer <nb...@gmail.com> wrote:
>  >  > I have OpenDNS configured, so I'm getting this -
>  >  > http://guide.opendns.com/?url=jcltest.apache.org%2Finternalres%2FBug93893-1.crl.
>  >  >
>  >  > I guess that's the issue ... thanks.
>  >  >
>  >
>  >  I think that the issue is the test itself - it is expected to test
>  >  certificates and crls stored in files but there are no required files.
>  >  Also I've checked HARMONY-88 (the origin JIRA for the test) - it
>  >  doesn't contain them too.
>  >
>  >  Thanks,
>  >  Stepan.
>  >
>  >
>  >
>  >  > -Nathan
>  >  >
>  >  > On Thu, Feb 21, 2008 at 3:22 AM, Stepan Mishura
>  >  > <st...@gmail.com> wrote:
>  >  > > On 2/21/08, Stepan Mishura <st...@gmail.com> wrote:
>  >  > >  > On 2/21/08, Nathan Beyer <nb...@gmail.com> wrote:
>  >  > >  > > I'm getting a bunch of failures for various tests connecting to the
>  >  > >  > > 'jcltest.apache.org' host. Does anyone know how that works? Is that a
>  >  > >  > > real host?
>  >  > >  > >
>  >  > >  > > I've uploaded my classlib test report here -
>  >  > >  > > http://people.apache.org/~ndbeyer/m5-tests/classlib-r629329.zip
>  >  > >  >
>  >  > >  > Interesting, yes there are failed tests in security module (not in archive).
>  >  > >  > I'll try to investigate why they failed.
>  >  > >
>  >  > >  I've looked into:
>  >  > >  org.apache.harmony.security.tests.java.security.cert.CertificateFactory4Test
>  >  > >     test_generateCRLLjava_io_InputStream
>  >  > >
>  >  > >  The next update:
>  >  > >  $ svn di
>  >  > >  Index: CertificateFactory4Test.java
>  >  > >  ===================================================================
>  >  > >  --- CertificateFactory4Test.java        (revision 629706)
>  >  > >  +++ CertificateFactory4Test.java        (working copy)
>  >  > >  @@ -116,6 +116,7 @@
>  >  > >                          + "\" were not parsed correctly", crl);
>  >  > >              } catch (IOException e) {
>  >  > >                  // the certificate could not be found, skip it
>  >  > >  +                System.out.println("Couldn't find certificate: " +
>  >  > >  certUrl.toExternalForm());
>  >  > >              } catch (CRLException e) {
>  >  > >                  fail("An exception was thrown while parsing \""
>  >  > >                          + certUrl.toExternalForm() + "\": " + e.getMessage());
>  >  > >
>  >  > >  Gives the next output:
>  >  > >  run-tests-api:
>  >  > >      [echo] Running SECURITY api tests
>  >  > >     [mkdir] Created dir: C:\Apache\Harmony\ClassLib\build\test_report
>  >  > >     [junit] Running
>  >  > >  org.apache.harmony.security.tests.java.security.cert.CertificateFactory4Test
>  >  > >     [junit] Couldn't find certificate:
>  >  > >  http://jcltest.apache.org/testres231/../internalres/Bug93893-1.crl
>  >  > >     [junit] Couldn't find certificate:
>  >  > >  http://jcltest.apache.org/testres231/../internalres/Bug93893-2.crl
>  >  > >     [junit] Couldn't find certificate:
>  >  > >  http://jcltest.apache.org/testres231/../internalres/Bug94404-DER.crl
>  >  > >     [junit] Tests run: 14, Failures: 0, Errors: 0, Time elapsed: 0.594 sec
>  >  > >
>  >  > >  So the test tries to open unreachable URL by
>  >  > >     InputStream is = certUrl.openStream();
>  >  > >  and IOException is thrown.
>  >  > >  But in your case there is no exception and test tries to parse
>  >  > >  certificates and crls.
>  >  > >  You may wish to examine InputStream content.
>  >  > >
>  >  > >  Thanks,
>  >  > >  Stepan.
>  >  > >
>  >  > >
>  >  > >
>  >  > >  >
>  >  > >  > -Stepan.
>  >  > >  >
>  >  > >  > >
>  >  > >  > > -Nathan
>  >  > >  > >
>  >  > >  > > On Mon, Feb 18, 2008 at 11:23 PM, Sean Qiu <se...@gmail.com> wrote:
>  >  > >  > > > Hi, Nathan
>  >  > >  > > >  It works well in my machine, windows xp sp2 32.
>  >  > >  > > >
>  >  > >  > > >
>  >  > >  > > >  2008/2/19, Nathan Beyer <nd...@apache.org>:
>  >  > >  > > >
>  >  > >  > > >
>  >  > >  > > > >
>  >  > >  > > >  > Anyone else seeing a test failure in the archive module? I'm seeing
>  >  > >  > > >  > this on all of my machines for the latest revision.
>  >  > >  > > >  >
>  >  > >  > > >  > On Feb 16, 2008 10:44 PM, Nathan Beyer <nd...@apache.org> wrote:
>  >  > >  > > >  > > One of the archive module's tests is making a URL connection to
>  >  > >  > > >  > > "http://jcltest.apache.org/testres231/../internalres/signedjars". Is
>  >  > >  > > >  > > something supposed to be intercepting this and faking out the server?
>  >  > >  > > >  > >
>  >  > >  > > >  > > -Nathan
>  >  > >  > > >  > >
>  >  > >  > > >  >
>  >  > >  > > >
>  >  > >  > > >
>  >  > >  > > >
>  >  > >  > > >  --
>  >  > >  > > >  Sean Qiu
>  >  > >  > > >  http://xiaoxia.turendui.com
>  >  > >  > > >
>  >  > >  > >
>  >  > >  >
>  >  > >
>  >  >
>  >
>
>
>
>  --
>  With best regards,
>  Alexei
>



-- 
With best regards,
Alexei

Re: [archive] test failure, odd url

Posted by Alexei Fedotov <al...@gmail.com>.
I have no other data at this moment except the fact that all tests
were passing for me. This does not mean that URL works, there may be
exclude lists, or something. Sorry, I did not realize this is the same
module I'm running tests on.

On Fri, Feb 22, 2008 at 7:12 AM, Stepan Mishura
<st...@gmail.com> wrote:
> On 2/22/08, Nathan Beyer <nb...@gmail.com> wrote:
>  > I have OpenDNS configured, so I'm getting this -
>  > http://guide.opendns.com/?url=jcltest.apache.org%2Finternalres%2FBug93893-1.crl.
>  >
>  > I guess that's the issue ... thanks.
>  >
>
>  I think that the issue is the test itself - it is expected to test
>  certificates and crls stored in files but there are no required files.
>  Also I've checked HARMONY-88 (the origin JIRA for the test) - it
>  doesn't contain them too.
>
>  Thanks,
>  Stepan.
>
>
>
>  > -Nathan
>  >
>  > On Thu, Feb 21, 2008 at 3:22 AM, Stepan Mishura
>  > <st...@gmail.com> wrote:
>  > > On 2/21/08, Stepan Mishura <st...@gmail.com> wrote:
>  > >  > On 2/21/08, Nathan Beyer <nb...@gmail.com> wrote:
>  > >  > > I'm getting a bunch of failures for various tests connecting to the
>  > >  > > 'jcltest.apache.org' host. Does anyone know how that works? Is that a
>  > >  > > real host?
>  > >  > >
>  > >  > > I've uploaded my classlib test report here -
>  > >  > > http://people.apache.org/~ndbeyer/m5-tests/classlib-r629329.zip
>  > >  >
>  > >  > Interesting, yes there are failed tests in security module (not in archive).
>  > >  > I'll try to investigate why they failed.
>  > >
>  > >  I've looked into:
>  > >  org.apache.harmony.security.tests.java.security.cert.CertificateFactory4Test
>  > >     test_generateCRLLjava_io_InputStream
>  > >
>  > >  The next update:
>  > >  $ svn di
>  > >  Index: CertificateFactory4Test.java
>  > >  ===================================================================
>  > >  --- CertificateFactory4Test.java        (revision 629706)
>  > >  +++ CertificateFactory4Test.java        (working copy)
>  > >  @@ -116,6 +116,7 @@
>  > >                          + "\" were not parsed correctly", crl);
>  > >              } catch (IOException e) {
>  > >                  // the certificate could not be found, skip it
>  > >  +                System.out.println("Couldn't find certificate: " +
>  > >  certUrl.toExternalForm());
>  > >              } catch (CRLException e) {
>  > >                  fail("An exception was thrown while parsing \""
>  > >                          + certUrl.toExternalForm() + "\": " + e.getMessage());
>  > >
>  > >  Gives the next output:
>  > >  run-tests-api:
>  > >      [echo] Running SECURITY api tests
>  > >     [mkdir] Created dir: C:\Apache\Harmony\ClassLib\build\test_report
>  > >     [junit] Running
>  > >  org.apache.harmony.security.tests.java.security.cert.CertificateFactory4Test
>  > >     [junit] Couldn't find certificate:
>  > >  http://jcltest.apache.org/testres231/../internalres/Bug93893-1.crl
>  > >     [junit] Couldn't find certificate:
>  > >  http://jcltest.apache.org/testres231/../internalres/Bug93893-2.crl
>  > >     [junit] Couldn't find certificate:
>  > >  http://jcltest.apache.org/testres231/../internalres/Bug94404-DER.crl
>  > >     [junit] Tests run: 14, Failures: 0, Errors: 0, Time elapsed: 0.594 sec
>  > >
>  > >  So the test tries to open unreachable URL by
>  > >     InputStream is = certUrl.openStream();
>  > >  and IOException is thrown.
>  > >  But in your case there is no exception and test tries to parse
>  > >  certificates and crls.
>  > >  You may wish to examine InputStream content.
>  > >
>  > >  Thanks,
>  > >  Stepan.
>  > >
>  > >
>  > >
>  > >  >
>  > >  > -Stepan.
>  > >  >
>  > >  > >
>  > >  > > -Nathan
>  > >  > >
>  > >  > > On Mon, Feb 18, 2008 at 11:23 PM, Sean Qiu <se...@gmail.com> wrote:
>  > >  > > > Hi, Nathan
>  > >  > > >  It works well in my machine, windows xp sp2 32.
>  > >  > > >
>  > >  > > >
>  > >  > > >  2008/2/19, Nathan Beyer <nd...@apache.org>:
>  > >  > > >
>  > >  > > >
>  > >  > > > >
>  > >  > > >  > Anyone else seeing a test failure in the archive module? I'm seeing
>  > >  > > >  > this on all of my machines for the latest revision.
>  > >  > > >  >
>  > >  > > >  > On Feb 16, 2008 10:44 PM, Nathan Beyer <nd...@apache.org> wrote:
>  > >  > > >  > > One of the archive module's tests is making a URL connection to
>  > >  > > >  > > "http://jcltest.apache.org/testres231/../internalres/signedjars". Is
>  > >  > > >  > > something supposed to be intercepting this and faking out the server?
>  > >  > > >  > >
>  > >  > > >  > > -Nathan
>  > >  > > >  > >
>  > >  > > >  >
>  > >  > > >
>  > >  > > >
>  > >  > > >
>  > >  > > >  --
>  > >  > > >  Sean Qiu
>  > >  > > >  http://xiaoxia.turendui.com
>  > >  > > >
>  > >  > >
>  > >  >
>  > >
>  >
>



-- 
With best regards,
Alexei

Re: [archive] test failure, odd url

Posted by Stepan Mishura <st...@gmail.com>.
On 2/22/08, Nathan Beyer <nb...@gmail.com> wrote:
> I have OpenDNS configured, so I'm getting this -
> http://guide.opendns.com/?url=jcltest.apache.org%2Finternalres%2FBug93893-1.crl.
>
> I guess that's the issue ... thanks.
>

I think that the issue is the test itself - it is expected to test
certificates and crls stored in files but there are no required files.
Also I've checked HARMONY-88 (the origin JIRA for the test) - it
doesn't contain them too.

Thanks,
Stepan.

> -Nathan
>
> On Thu, Feb 21, 2008 at 3:22 AM, Stepan Mishura
> <st...@gmail.com> wrote:
> > On 2/21/08, Stepan Mishura <st...@gmail.com> wrote:
> >  > On 2/21/08, Nathan Beyer <nb...@gmail.com> wrote:
> >  > > I'm getting a bunch of failures for various tests connecting to the
> >  > > 'jcltest.apache.org' host. Does anyone know how that works? Is that a
> >  > > real host?
> >  > >
> >  > > I've uploaded my classlib test report here -
> >  > > http://people.apache.org/~ndbeyer/m5-tests/classlib-r629329.zip
> >  >
> >  > Interesting, yes there are failed tests in security module (not in archive).
> >  > I'll try to investigate why they failed.
> >
> >  I've looked into:
> >  org.apache.harmony.security.tests.java.security.cert.CertificateFactory4Test
> >     test_generateCRLLjava_io_InputStream
> >
> >  The next update:
> >  $ svn di
> >  Index: CertificateFactory4Test.java
> >  ===================================================================
> >  --- CertificateFactory4Test.java        (revision 629706)
> >  +++ CertificateFactory4Test.java        (working copy)
> >  @@ -116,6 +116,7 @@
> >                          + "\" were not parsed correctly", crl);
> >              } catch (IOException e) {
> >                  // the certificate could not be found, skip it
> >  +                System.out.println("Couldn't find certificate: " +
> >  certUrl.toExternalForm());
> >              } catch (CRLException e) {
> >                  fail("An exception was thrown while parsing \""
> >                          + certUrl.toExternalForm() + "\": " + e.getMessage());
> >
> >  Gives the next output:
> >  run-tests-api:
> >      [echo] Running SECURITY api tests
> >     [mkdir] Created dir: C:\Apache\Harmony\ClassLib\build\test_report
> >     [junit] Running
> >  org.apache.harmony.security.tests.java.security.cert.CertificateFactory4Test
> >     [junit] Couldn't find certificate:
> >  http://jcltest.apache.org/testres231/../internalres/Bug93893-1.crl
> >     [junit] Couldn't find certificate:
> >  http://jcltest.apache.org/testres231/../internalres/Bug93893-2.crl
> >     [junit] Couldn't find certificate:
> >  http://jcltest.apache.org/testres231/../internalres/Bug94404-DER.crl
> >     [junit] Tests run: 14, Failures: 0, Errors: 0, Time elapsed: 0.594 sec
> >
> >  So the test tries to open unreachable URL by
> >     InputStream is = certUrl.openStream();
> >  and IOException is thrown.
> >  But in your case there is no exception and test tries to parse
> >  certificates and crls.
> >  You may wish to examine InputStream content.
> >
> >  Thanks,
> >  Stepan.
> >
> >
> >
> >  >
> >  > -Stepan.
> >  >
> >  > >
> >  > > -Nathan
> >  > >
> >  > > On Mon, Feb 18, 2008 at 11:23 PM, Sean Qiu <se...@gmail.com> wrote:
> >  > > > Hi, Nathan
> >  > > >  It works well in my machine, windows xp sp2 32.
> >  > > >
> >  > > >
> >  > > >  2008/2/19, Nathan Beyer <nd...@apache.org>:
> >  > > >
> >  > > >
> >  > > > >
> >  > > >  > Anyone else seeing a test failure in the archive module? I'm seeing
> >  > > >  > this on all of my machines for the latest revision.
> >  > > >  >
> >  > > >  > On Feb 16, 2008 10:44 PM, Nathan Beyer <nd...@apache.org> wrote:
> >  > > >  > > One of the archive module's tests is making a URL connection to
> >  > > >  > > "http://jcltest.apache.org/testres231/../internalres/signedjars". Is
> >  > > >  > > something supposed to be intercepting this and faking out the server?
> >  > > >  > >
> >  > > >  > > -Nathan
> >  > > >  > >
> >  > > >  >
> >  > > >
> >  > > >
> >  > > >
> >  > > >  --
> >  > > >  Sean Qiu
> >  > > >  http://xiaoxia.turendui.com
> >  > > >
> >  > >
> >  >
> >
>

Re: [archive] test failure, odd url

Posted by Nathan Beyer <nb...@gmail.com>.
I have OpenDNS configured, so I'm getting this -
http://guide.opendns.com/?url=jcltest.apache.org%2Finternalres%2FBug93893-1.crl.

I guess that's the issue ... thanks.

-Nathan

On Thu, Feb 21, 2008 at 3:22 AM, Stepan Mishura
<st...@gmail.com> wrote:
> On 2/21/08, Stepan Mishura <st...@gmail.com> wrote:
>  > On 2/21/08, Nathan Beyer <nb...@gmail.com> wrote:
>  > > I'm getting a bunch of failures for various tests connecting to the
>  > > 'jcltest.apache.org' host. Does anyone know how that works? Is that a
>  > > real host?
>  > >
>  > > I've uploaded my classlib test report here -
>  > > http://people.apache.org/~ndbeyer/m5-tests/classlib-r629329.zip
>  >
>  > Interesting, yes there are failed tests in security module (not in archive).
>  > I'll try to investigate why they failed.
>
>  I've looked into:
>  org.apache.harmony.security.tests.java.security.cert.CertificateFactory4Test
>     test_generateCRLLjava_io_InputStream
>
>  The next update:
>  $ svn di
>  Index: CertificateFactory4Test.java
>  ===================================================================
>  --- CertificateFactory4Test.java        (revision 629706)
>  +++ CertificateFactory4Test.java        (working copy)
>  @@ -116,6 +116,7 @@
>                          + "\" were not parsed correctly", crl);
>              } catch (IOException e) {
>                  // the certificate could not be found, skip it
>  +                System.out.println("Couldn't find certificate: " +
>  certUrl.toExternalForm());
>              } catch (CRLException e) {
>                  fail("An exception was thrown while parsing \""
>                          + certUrl.toExternalForm() + "\": " + e.getMessage());
>
>  Gives the next output:
>  run-tests-api:
>      [echo] Running SECURITY api tests
>     [mkdir] Created dir: C:\Apache\Harmony\ClassLib\build\test_report
>     [junit] Running
>  org.apache.harmony.security.tests.java.security.cert.CertificateFactory4Test
>     [junit] Couldn't find certificate:
>  http://jcltest.apache.org/testres231/../internalres/Bug93893-1.crl
>     [junit] Couldn't find certificate:
>  http://jcltest.apache.org/testres231/../internalres/Bug93893-2.crl
>     [junit] Couldn't find certificate:
>  http://jcltest.apache.org/testres231/../internalres/Bug94404-DER.crl
>     [junit] Tests run: 14, Failures: 0, Errors: 0, Time elapsed: 0.594 sec
>
>  So the test tries to open unreachable URL by
>     InputStream is = certUrl.openStream();
>  and IOException is thrown.
>  But in your case there is no exception and test tries to parse
>  certificates and crls.
>  You may wish to examine InputStream content.
>
>  Thanks,
>  Stepan.
>
>
>
>  >
>  > -Stepan.
>  >
>  > >
>  > > -Nathan
>  > >
>  > > On Mon, Feb 18, 2008 at 11:23 PM, Sean Qiu <se...@gmail.com> wrote:
>  > > > Hi, Nathan
>  > > >  It works well in my machine, windows xp sp2 32.
>  > > >
>  > > >
>  > > >  2008/2/19, Nathan Beyer <nd...@apache.org>:
>  > > >
>  > > >
>  > > > >
>  > > >  > Anyone else seeing a test failure in the archive module? I'm seeing
>  > > >  > this on all of my machines for the latest revision.
>  > > >  >
>  > > >  > On Feb 16, 2008 10:44 PM, Nathan Beyer <nd...@apache.org> wrote:
>  > > >  > > One of the archive module's tests is making a URL connection to
>  > > >  > > "http://jcltest.apache.org/testres231/../internalres/signedjars". Is
>  > > >  > > something supposed to be intercepting this and faking out the server?
>  > > >  > >
>  > > >  > > -Nathan
>  > > >  > >
>  > > >  >
>  > > >
>  > > >
>  > > >
>  > > >  --
>  > > >  Sean Qiu
>  > > >  http://xiaoxia.turendui.com
>  > > >
>  > >
>  >
>

Re: [archive] test failure, odd url

Posted by Stepan Mishura <st...@gmail.com>.
On 2/21/08, Stepan Mishura <st...@gmail.com> wrote:
> On 2/21/08, Nathan Beyer <nb...@gmail.com> wrote:
> > I'm getting a bunch of failures for various tests connecting to the
> > 'jcltest.apache.org' host. Does anyone know how that works? Is that a
> > real host?
> >
> > I've uploaded my classlib test report here -
> > http://people.apache.org/~ndbeyer/m5-tests/classlib-r629329.zip
>
> Interesting, yes there are failed tests in security module (not in archive).
> I'll try to investigate why they failed.

I've looked into:
org.apache.harmony.security.tests.java.security.cert.CertificateFactory4Test
    test_generateCRLLjava_io_InputStream

The next update:
$ svn di
Index: CertificateFactory4Test.java
===================================================================
--- CertificateFactory4Test.java        (revision 629706)
+++ CertificateFactory4Test.java        (working copy)
@@ -116,6 +116,7 @@
                         + "\" were not parsed correctly", crl);
             } catch (IOException e) {
                 // the certificate could not be found, skip it
+                System.out.println("Couldn't find certificate: " +
certUrl.toExternalForm());
             } catch (CRLException e) {
                 fail("An exception was thrown while parsing \""
                         + certUrl.toExternalForm() + "\": " + e.getMessage());

Gives the next output:
run-tests-api:
     [echo] Running SECURITY api tests
    [mkdir] Created dir: C:\Apache\Harmony\ClassLib\build\test_report
    [junit] Running
org.apache.harmony.security.tests.java.security.cert.CertificateFactory4Test
    [junit] Couldn't find certificate:
http://jcltest.apache.org/testres231/../internalres/Bug93893-1.crl
    [junit] Couldn't find certificate:
http://jcltest.apache.org/testres231/../internalres/Bug93893-2.crl
    [junit] Couldn't find certificate:
http://jcltest.apache.org/testres231/../internalres/Bug94404-DER.crl
    [junit] Tests run: 14, Failures: 0, Errors: 0, Time elapsed: 0.594 sec

So the test tries to open unreachable URL by
    InputStream is = certUrl.openStream();
and IOException is thrown.
But in your case there is no exception and test tries to parse
certificates and crls.
You may wish to examine InputStream content.

Thanks,
Stepan.

>
> -Stepan.
>
> >
> > -Nathan
> >
> > On Mon, Feb 18, 2008 at 11:23 PM, Sean Qiu <se...@gmail.com> wrote:
> > > Hi, Nathan
> > >  It works well in my machine, windows xp sp2 32.
> > >
> > >
> > >  2008/2/19, Nathan Beyer <nd...@apache.org>:
> > >
> > >
> > > >
> > >  > Anyone else seeing a test failure in the archive module? I'm seeing
> > >  > this on all of my machines for the latest revision.
> > >  >
> > >  > On Feb 16, 2008 10:44 PM, Nathan Beyer <nd...@apache.org> wrote:
> > >  > > One of the archive module's tests is making a URL connection to
> > >  > > "http://jcltest.apache.org/testres231/../internalres/signedjars". Is
> > >  > > something supposed to be intercepting this and faking out the server?
> > >  > >
> > >  > > -Nathan
> > >  > >
> > >  >
> > >
> > >
> > >
> > >  --
> > >  Sean Qiu
> > >  http://xiaoxia.turendui.com
> > >
> >
>

Re: [archive] test failure, odd url

Posted by Stepan Mishura <st...@gmail.com>.
On 2/21/08, Nathan Beyer <nb...@gmail.com> wrote:
> I'm getting a bunch of failures for various tests connecting to the
> 'jcltest.apache.org' host. Does anyone know how that works? Is that a
> real host?
>
> I've uploaded my classlib test report here -
> http://people.apache.org/~ndbeyer/m5-tests/classlib-r629329.zip

Interesting, yes there are failed tests in security module (not in archive).
I'll try to investigate why they failed.

-Stepan.

>
> -Nathan
>
> On Mon, Feb 18, 2008 at 11:23 PM, Sean Qiu <se...@gmail.com> wrote:
> > Hi, Nathan
> >  It works well in my machine, windows xp sp2 32.
> >
> >
> >  2008/2/19, Nathan Beyer <nd...@apache.org>:
> >
> >
> > >
> >  > Anyone else seeing a test failure in the archive module? I'm seeing
> >  > this on all of my machines for the latest revision.
> >  >
> >  > On Feb 16, 2008 10:44 PM, Nathan Beyer <nd...@apache.org> wrote:
> >  > > One of the archive module's tests is making a URL connection to
> >  > > "http://jcltest.apache.org/testres231/../internalres/signedjars". Is
> >  > > something supposed to be intercepting this and faking out the server?
> >  > >
> >  > > -Nathan
> >  > >
> >  >
> >
> >
> >
> >  --
> >  Sean Qiu
> >  http://xiaoxia.turendui.com
> >
>

Re: [archive] test failure, odd url

Posted by Nathan Beyer <nb...@gmail.com>.
I'm getting a bunch of failures for various tests connecting to the
'jcltest.apache.org' host. Does anyone know how that works? Is that a
real host?

I've uploaded my classlib test report here -
http://people.apache.org/~ndbeyer/m5-tests/classlib-r629329.zip

-Nathan

On Mon, Feb 18, 2008 at 11:23 PM, Sean Qiu <se...@gmail.com> wrote:
> Hi, Nathan
>  It works well in my machine, windows xp sp2 32.
>
>
>  2008/2/19, Nathan Beyer <nd...@apache.org>:
>
>
> >
>  > Anyone else seeing a test failure in the archive module? I'm seeing
>  > this on all of my machines for the latest revision.
>  >
>  > On Feb 16, 2008 10:44 PM, Nathan Beyer <nd...@apache.org> wrote:
>  > > One of the archive module's tests is making a URL connection to
>  > > "http://jcltest.apache.org/testres231/../internalres/signedjars". Is
>  > > something supposed to be intercepting this and faking out the server?
>  > >
>  > > -Nathan
>  > >
>  >
>
>
>
>  --
>  Sean Qiu
>  http://xiaoxia.turendui.com
>

Re: [archive] test failure, odd url

Posted by Sean Qiu <se...@gmail.com>.
Hi, Nathan
It works well in my machine, windows xp sp2 32.


2008/2/19, Nathan Beyer <nd...@apache.org>:
>
> Anyone else seeing a test failure in the archive module? I'm seeing
> this on all of my machines for the latest revision.
>
> On Feb 16, 2008 10:44 PM, Nathan Beyer <nd...@apache.org> wrote:
> > One of the archive module's tests is making a URL connection to
> > "http://jcltest.apache.org/testres231/../internalres/signedjars". Is
> > something supposed to be intercepting this and faking out the server?
> >
> > -Nathan
> >
>



-- 
Sean Qiu
http://xiaoxia.turendui.com

Re: [archive] test failure, odd url

Posted by Stepan Mishura <st...@gmail.com>.
On 2/19/08, Nathan Beyer <nd...@apache.org> wrote:
> Anyone else seeing a test failure in the archive module?

Which one?

According to snapshot's testing status page for r628209 there are no
failed archive's tests

[1] http://people.apache.org/~mloenko/snapshot_testing/script/r628209/index.html

Thanks,
Stepan.

> I'm seeing
> this on all of my machines for the latest revision.
>
> On Feb 16, 2008 10:44 PM, Nathan Beyer <nd...@apache.org> wrote:
> > One of the archive module's tests is making a URL connection to
> > "http://jcltest.apache.org/testres231/../internalres/signedjars". Is
> > something supposed to be intercepting this and faking out the server?
> >
> > -Nathan
> >
>

Re: [archive] test failure, odd url

Posted by Nathan Beyer <nd...@apache.org>.
Anyone else seeing a test failure in the archive module? I'm seeing
this on all of my machines for the latest revision.

On Feb 16, 2008 10:44 PM, Nathan Beyer <nd...@apache.org> wrote:
> One of the archive module's tests is making a URL connection to
> "http://jcltest.apache.org/testres231/../internalres/signedjars". Is
> something supposed to be intercepting this and faking out the server?
>
> -Nathan
>