You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Mark Hindess <ma...@googlemail.com> on 2006/07/07 17:07:02 UTC

Re: [classlib][security] crypto provider: implementation of SHA-1 algorithm

On 7 July 2006 at 18:34, "Anton Luht" <an...@gmail.com> wrote:
> Yuri,
> 
> I'm trying to test serialization but the simple test:
> 
> import java.io.*;
> 
> public class Test {
>   public static void main(String[] args) throws Throwable {
>      ObjectOutputStream oos = new ObjectOutputStream(new
> ByteArrayOutputStream());
>      oos.writeObject(new Object());
>   }
> }
> 
> fails:
> 
> java.lang.Error: java.security.NoSuchAlgorithmException: MessageDigest SHA im
> ple
> mentation not found
>         at java.io.ObjectStreamClass.computeSerialVersionUID(ObjectStreamClas
> s.j
> ava:345)
> ........
> 
> I've built a version of classlib with your patch but the test still
> fails. Is it because I didn't apply it correctly or maybe something
> else is missing?

Yes.  "jre/lib/security".  Oddly enough I was just looking at this.

-Mark.



---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [classlib][security] crypto provider: implementation of SHA-1 algorithm

Posted by Mikhail Loenko <ml...@gmail.com>.
2006/7/10, Anton Luht <an...@gmail.com>:
> Mark,
>
> Let me report one more build problem in this thread: On build 420458
> of VM + classlib the following test:
>
> import javax.swing.*;
>
> public class Test {
>  public static void main(String[] args) throws Throwable {
>     new JButton();
>  }
> }
>
>
> prints:
>
> Uncaught exception in AWT-EventQueue:
> java.lang.UnsatisfiedLinkError: Can not find the library: accessors.dll
>        at java.lang.Runtime.loadLibrary0()
>        at java.lang.System.loadLibrary()


Hi Anton,

do you think it's related to Yuri's contribution?

Thanks,
Mikhail



>
>
> On 7/7/06, Mark Hindess <ma...@googlemail.com> wrote:
> >
> > On 7 July 2006 at 16:07, Mark Hindess <ma...@googlemail.com> wrote:
> > >
> > > On 7 July 2006 at 18:34, "Anton Luht" <an...@gmail.com> wrote:
> > > > Yuri,
> > > >
> > > > I'm trying to test serialization but the simple test:
> > > >
> > > > import java.io.*;
> > > >
> > > > public class Test {
> > > >   public static void main(String[] args) throws Throwable {
> > > >      ObjectOutputStream oos = new ObjectOutputStream(new
> > > > ByteArrayOutputStream());
> > > >      oos.writeObject(new Object());
> > > >   }
> > > > }
> > > >
> > > > fails:
> > > >
> > > > java.lang.Error: java.security.NoSuchAlgorithmException: MessageDigest SHA
> > > > implementation not found
> > > >         at java.io.ObjectStreamClass.computeSerialVersionUID
> > > >            (ObjectStreamClass.java:345)
> > > > ........
> > > >
> > > > I've built a version of classlib with your patch but the test still
> > > > fails. Is it because I didn't apply it correctly or maybe something
> > > > else is missing?
> > >
> > > Yes.  "jre/lib/security".  Oddly enough I was just looking at this.
> >
> > Fixed in r419914.  I've removed the multiple copy tasks that we listing
> > everything drlvm wanted from classlib and replaced it with a copy
> > that copies everything except they things we *don't* need.  This should
> > be more reliable.  Hopefully it will become obsolete when we have a
> > top-level build.
> >
> > Regards,
> >  Mark.
> >
> >
> >
> > ---------------------------------------------------------------------
> > Terms of use : http://incubator.apache.org/harmony/mailing.html
> > To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> > For additional commands, e-mail: harmony-dev-help@incubator.apache.org
> >
> >
>
>
> --
> Regards,
> Anton Luht,
> Intel Middleware Products Division
>
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>
>

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Re: [classlib][security] crypto provider: implementation of SHA-1 algorithm

Posted by Anton Luht <an...@gmail.com>.
Mark,

Let me report one more build problem in this thread: On build 420458
of VM + classlib the following test:

import javax.swing.*;

public class Test {
 public static void main(String[] args) throws Throwable {
     new JButton();
 }
}


prints:

Uncaught exception in AWT-EventQueue:
java.lang.UnsatisfiedLinkError: Can not find the library: accessors.dll
        at java.lang.Runtime.loadLibrary0()
        at java.lang.System.loadLibrary()


On 7/7/06, Mark Hindess <ma...@googlemail.com> wrote:
>
> On 7 July 2006 at 16:07, Mark Hindess <ma...@googlemail.com> wrote:
> >
> > On 7 July 2006 at 18:34, "Anton Luht" <an...@gmail.com> wrote:
> > > Yuri,
> > >
> > > I'm trying to test serialization but the simple test:
> > >
> > > import java.io.*;
> > >
> > > public class Test {
> > >   public static void main(String[] args) throws Throwable {
> > >      ObjectOutputStream oos = new ObjectOutputStream(new
> > > ByteArrayOutputStream());
> > >      oos.writeObject(new Object());
> > >   }
> > > }
> > >
> > > fails:
> > >
> > > java.lang.Error: java.security.NoSuchAlgorithmException: MessageDigest SHA
> > > implementation not found
> > >         at java.io.ObjectStreamClass.computeSerialVersionUID
> > >            (ObjectStreamClass.java:345)
> > > ........
> > >
> > > I've built a version of classlib with your patch but the test still
> > > fails. Is it because I didn't apply it correctly or maybe something
> > > else is missing?
> >
> > Yes.  "jre/lib/security".  Oddly enough I was just looking at this.
>
> Fixed in r419914.  I've removed the multiple copy tasks that we listing
> everything drlvm wanted from classlib and replaced it with a copy
> that copies everything except they things we *don't* need.  This should
> be more reliable.  Hopefully it will become obsolete when we have a
> top-level build.
>
> Regards,
>  Mark.
>
>
>
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>
>


-- 
Regards,
Anton Luht,
Intel Middleware Products Division

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org