harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Fedotov" <alexei.fedo...@gmail.com>
Subject Re: [archive] test failure, odd url
Date Tue, 26 Feb 2008 10:54:37 GMT
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 <nbeyer@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
>
>
> <alexei.fedotov@gmail.com> wrote:
>  > Nathan,
>  >  Which test fails for you?
>  >
>  >  Thanks!
>  >
>  >
>  >
>  >  On Sun, Feb 24, 2008 at 7:33 AM, Nathan Beyer <nbeyer@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 <nbeyer@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
>  >  >  >
>  >  >  >
>  >  >  > <alexei.fedotov@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 <nbeyer@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
>  >  >  >  >  >
>  >  >  >  >  >
>  >  >  >  >  > <alexei.fedotov@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
>  >  >  >  >  >  >  <alexei.fedotov@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
>  >  >  >  >  >  >  >
>  >  >  >  >  >  >  >
>  >  >  >  >  >  >  > <stepan.mishura@gmail.com> wrote:
>  >  >  >  >  >  >  >  > On 2/22/08, Nathan Beyer <nbeyer@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
>  >  >  >  >  >  >  >  >  > <stepan.mishura@gmail.com>
wrote:
>  >  >  >  >  >  >  >  >  > > On 2/21/08, Stepan Mishura
<stepan.mishura@gmail.com> wrote:
>  >  >  >  >  >  >  >  >  > >  > On 2/21/08, Nathan Beyer
<nbeyer@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 <sean.xx.qiu@gmail.com> wrote:
>  >  >  >  >  >  >  >  >  > >  > > > Hi, Nathan
>  >  >  >  >  >  >  >  >  > >  > > >  It works
well in my machine, windows xp sp2 32.
>  >  >  >  >  >  >  >  >  > >  > > >
>  >  >  >  >  >  >  >  >  > >  > > >
>  >  >  >  >  >  >  >  >  > >  > > >  2008/2/19,
Nathan Beyer <ndbeyer@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 <ndbeyer@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
Mime
View raw message