Discussion:
JXTA on N800
Demetris G
2008-09-10 05:33:23 UTC
Permalink
Hi all,

I am running JXTA under Jalimo on an N800 tablet running OS 2008. I
get the following
exception although the bcprov-jdk15-140.jar is in the classpath at
runtime. Any ideas?

Thanks in advance

10 Sep 2008 04:27:08 net.jxta.platform.NetworkManager startNetwork
INFO: Starting JXTA Network! MODE = EDGE, HOME =
file:/root/p2pSOA/P2PA/.cache/P2PA
10 Sep 2008 04:27:55 net.jxta.impl.membership.pse.PSEUtils
pkcs5_Encrypt_pbePrivateKey
WARNING: Encrypt failed
java.security.NoSuchAlgorithmException: Algorithm [PBEWITHMD5ANDDES] of
type [AlgorithmParameters] from provider
[org.bouncycastle.jce.provider.BouncyCastleProvider: name=BC
version=1.4] is not found
at gnu.java.security.Engine.getInstance(Engine.java:189)
at gnu.java.security.Engine.getInstance(Engine.java:103)
at
java.security.AlgorithmParameters.getInstance(AlgorithmParameters.java:184)
at
java.security.AlgorithmParameters.getInstance(AlgorithmParameters.java:114)
at
net.jxta.impl.membership.pse.PSEUtils.pkcs5_Encrypt_pbePrivateKey(PSEUtils.java:541)
at
net.jxta.impl.protocol.PSEConfigAdv.setPrivateKey(PSEConfigAdv.java:628)
at
net.jxta.platform.NetworkConfigurator.createPSEAdv(NetworkConfigurator.java:1644)
at
net.jxta.platform.NetworkConfigurator.getPlatformConfig(NetworkConfigurator.java:1814)
at net.jxta.platform.NetworkManager.startNetwork(NetworkManager.java:410)
at PeerToPeerAdapter.startJxta_2_5(PeerToPeerAdapter.java:1011)
at PeerToPeerAdapter.main(PeerToPeerAdapter.java:781)
Catalin Roman
2008-09-11 16:19:59 UTC
Permalink
My system handles emails and I need to add S/MIME functionality. Currently if an email is encrypted I get attachment with a file called smime.p7m.
Is is possible to decrypt a smime.p7m attachemnt file using BouncyCastel S/MIME package if I have the correct private key?

I tried the the following:

MimeMessage msg = new MimeMessage(session, new FileInputStream("d:\\downloads\\smime.p7m")); SMIMEEnveloped m = new SMIMEEnveloped(msg);
and:
SMIMEEnvelopedParser m = new SMIMEEnvelopedParser(msg);

but I get exceptions:

Exception in thread "main" java.lang.NullPointerException at org.bouncycastle.cms.CMSEnvelopedData.<init>(Unknown Source) at org.bouncycastle.cms.CMSEnvelopedData.<init>(Unknown Source) at org.bouncycastle.mail.smime.SMIMEEnveloped.<init>(Unknown Source) at SMIMETest.main(SMIMETest.java:95)

or:

Exception in thread "main" java.lang.NullPointerException at org.bouncycastle.asn1.cms.ContentInfoParser.<init>(Unknown Source) at org.bouncycastle.cms.CMSContentInfoParser.<init>(Unknown Source) at org.bouncycastle.cms.CMSEnvelopedDataParser.<init>(Unknown Source) at org.bouncycastle.mail.smime.SMIMEEnvelopedParser.<init>(Unknown Source) at org.bouncycastle.mail.smime.SMIMEEnvelopedParser.<init>(Unknown Source) at SMIMETest.main(SMIMETest.java:96)

Is my approach right? Is there another way?

Thanks,
Catalin







_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
David Hook
2008-09-12 06:26:47 UTC
Permalink
The approach sounds right, I'm not sure about the message though. What's
in it?

Regards,

David
Post by Catalin Roman
My system handles emails and I need to add S/MIME functionality.
Currently if an email is encrypted I get attachment with a file called
smime.p7m.
Is is possible to decrypt a smime.p7m attachemnt file using
BouncyCastel S/MIME package if I have the correct private key?
MimeMessage msg = new MimeMessage(session, new
FileInputStream("d:\\downloads\\smime.p7m"));
SMIMEEnveloped m = new SMIMEEnveloped(msg);
SMIMEEnvelopedParser m = new SMIMEEnvelopedParser(msg);
Exception in thread "main" java.lang.NullPointerException
at org.bouncycastle.cms.CMSEnvelopedData.<init>(Unknown Source)
at org.bouncycastle.cms.CMSEnvelopedData.<init>(Unknown Source)
at org.bouncycastle.mail.smime.SMIMEEnveloped.<init>(Unknown
Source)
at SMIMETest.main(SMIMETest.java:95)
Exception in thread "main" java.lang.NullPointerException
at org.bouncycastle.asn1.cms.ContentInfoParser.<init>(Unknown
Source)
at org.bouncycastle.cms.CMSContentInfoParser.<init>(Unknown
Source)
at org.bouncycastle.cms.CMSEnvelopedDataParser.<init>(Unknown
Source)
at org.bouncycastle.mail.smime.SMIMEEnvelopedParser.<init>(Unknown
Source)
at org.bouncycastle.mail.smime.SMIMEEnvelopedParser.<init>(Unknown
Source)
at SMIMETest.main(SMIMETest.java:96)
Is my approach right? Is there another way?
Thanks,
Catalin
______________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live
Spaces. It's easy! Try it!
Catalin Roman
2008-09-12 09:05:51 UTC
Permalink
It's just a test email. Containing text: "Welcome to S/MIME world". The email was sent using Outlook Express 6.
See it attached.

Regards,
Catalin
Subject: Re: [dev-crypto] decrypting a smime.p7m attachemant with bcmail
Date: Fri, 12 Sep 2008 16:26:47 +1000
The approach sounds right, I'm not sure about the message though. What's
in it?
Regards,
David
Post by Catalin Roman
My system handles emails and I need to add S/MIME functionality.
Currently if an email is encrypted I get attachment with a file called
smime.p7m.
Is is possible to decrypt a smime.p7m attachemnt file using
BouncyCastel S/MIME package if I have the correct private key?
MimeMessage msg = new MimeMessage(session, new
FileInputStream("d:\\downloads\\smime.p7m"));
SMIMEEnveloped m = new SMIMEEnveloped(msg);
SMIMEEnvelopedParser m = new SMIMEEnvelopedParser(msg);
Exception in thread "main" java.lang.NullPointerException
at org.bouncycastle.cms.CMSEnvelopedData.<init>(Unknown Source)
at org.bouncycastle.cms.CMSEnvelopedData.<init>(Unknown Source)
at org.bouncycastle.mail.smime.SMIMEEnveloped.<init>(Unknown
Source)
at SMIMETest.main(SMIMETest.java:95)
Exception in thread "main" java.lang.NullPointerException
at org.bouncycastle.asn1.cms.ContentInfoParser.<init>(Unknown
Source)
at org.bouncycastle.cms.CMSContentInfoParser.<init>(Unknown
Source)
at org.bouncycastle.cms.CMSEnvelopedDataParser.<init>(Unknown
Source)
at org.bouncycastle.mail.smime.SMIMEEnvelopedParser.<init>(Unknown
Source)
at org.bouncycastle.mail.smime.SMIMEEnvelopedParser.<init>(Unknown
Source)
at SMIMETest.main(SMIMETest.java:96)
Is my approach right? Is there another way?
Thanks,
Catalin
______________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live
Spaces. It's easy! Try it!
_________________________________________________________________
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx
Catalin Roman
2008-09-12 09:19:20 UTC
Permalink
Here is the attachment.

Sorry for spam.
Subject: RE: [dev-crypto] decrypting a smime.p7m attachemant with bcmail
Date: Fri, 12 Sep 2008 11:16:13 +0200
The attachment is missing
Martijn
Post by Catalin Roman
It's just a test email. Containing text: "Welcome to S/MIME world".
The email was sent using Outlook Express 6.
See it attached.
Regards,
Catalin
______________________________________________________________________
Subject: Re: [dev-crypto] decrypting a smime.p7m attachemant with
bcmail
Date: Fri, 12 Sep 2008 16:26:47 +1000
The approach sounds right, I'm not sure about the message though.
What's
in it?
Regards,
David
Post by Catalin Roman
My system handles emails and I need to add S/MIME functionality.
Currently if an email is encrypted I get attachment with a file
called
Post by Catalin Roman
smime.p7m.
Is is possible to decrypt a smime.p7m attachemnt file using
BouncyCastel S/MIME package if I have the correct private key?
MimeMessage msg = new MimeMessage(session, new
FileInputStream("d:\\downloads\\smime.p7m"));
SMIMEEnveloped m = new SMIMEEnveloped(msg);
SMIMEEnvelopedParser m = new SMIMEEnvelopedParser(msg);
Exception in thread "main" java.lang.NullPointerException
at org.bouncycastle.cms.CMSEnvelopedData.<init>(Unknown Source)
at org.bouncycastle.cms.CMSEnvelopedData.<init>(Unknown Source)
at org.bouncycastle.mail.smime.SMIMEEnveloped.<init>(Unknown
Source)
at SMIMETest.main(SMIMETest.java:95)
Exception in thread "main" java.lang.NullPointerException
at org.bouncycastle.asn1.cms.ContentInfoParser.<init>(Unknown
Source)
at org.bouncycastle.cms.CMSContentInfoParser.<init>(Unknown
Source)
at org.bouncycastle.cms.CMSEnvelopedDataParser.<init>(Unknown
Source)
at org.bouncycastle.mail.smime.SMIMEEnvelopedParser.<init>(Unknown
Source)
at org.bouncycastle.mail.smime.SMIMEEnvelopedParser.<init>(Unknown
Source)
at SMIMETest.main(SMIMETest.java:96)
Is my approach right? Is there another way?
Thanks,
Catalin
______________________________________________________________________
Post by Catalin Roman
Invite your mail contacts to join your friends list with Windows
Live
Post by Catalin Roman
Spaces. It's easy! Try it!
______________________________________________________________________
Get news, entertainment and everything you care about at Live.com.
Check it out!
_________________________________________________________________
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE
Martijn Brinkers
2008-09-12 09:35:00 UTC
Permalink
I am able to parse the message (of course not open it because it is
encrypted)

The message is encrypted with 3DES and encrypted with two public keys:


Encryption Algorithm: 3DES, Key size: 168

*** Recipient 0

CN=GlobalSign PersonalSign Class 1 CA, OU=PersonalSign Class 1 CA,
O=GlobalSign nv-sa, C=BE/100000000011C426FC129//1.2.840.113549.1.1.1

*** Recipient 1

CN=Thawte Personal Freemail Issuing CA, O=Thawte Consulting (Pty) Ltd.,
C=ZA/2D67E967B5E0F5A47E23843654BFBF63//1.2.840.113549.1.1.1

It looks like you are not building a correct S/MIME message before
parsing:

MimeMessage msg = new MimeMessage(session, new FileInputStream("d:\
\downloads\\smime.p7m"));

afaik you cannot just build a message from the binary blob. You have to
add the correct S/MIME headers and base64 encode the binary blob

Martijn
Post by Catalin Roman
Here is the attachment.
Sorry for spam.
______________________________________________________________________
Subject: RE: [dev-crypto] decrypting a smime.p7m attachemant with
bcmail
Date: Fri, 12 Sep 2008 11:16:13 +0200
The attachment is missing
Martijn
Post by Catalin Roman
It's just a test email. Containing text: "Welcome to S/MIME
world".
Post by Catalin Roman
The email was sent using Outlook Express 6.
See it attached.
Regards,
Catalin
______________________________________________________________________
Post by Catalin Roman
Subject: Re: [dev-crypto] decrypting a smime.p7m attachemant
with
Post by Catalin Roman
bcmail
Date: Fri, 12 Sep 2008 16:26:47 +1000
The approach sounds right, I'm not sure about the message
though.
Post by Catalin Roman
What's
in it?
Regards,
David
Post by Catalin Roman
My system handles emails and I need to add S/MIME
functionality.
Post by Catalin Roman
Post by Catalin Roman
Currently if an email is encrypted I get attachment with a
file
Post by Catalin Roman
called
Post by Catalin Roman
smime.p7m.
Is is possible to decrypt a smime.p7m attachemnt file using
BouncyCastel S/MIME package if I have the correct private key?
MimeMessage msg = new MimeMessage(session, new
FileInputStream("d:\\downloads\\smime.p7m"));
SMIMEEnveloped m = new SMIMEEnveloped(msg);
SMIMEEnvelopedParser m = new SMIMEEnvelopedParser(msg);
Exception in thread "main" java.lang.NullPointerException
at org.bouncycastle.cms.CMSEnvelopedData.<init>(Unknown
Source)
Post by Catalin Roman
Post by Catalin Roman
at org.bouncycastle.cms.CMSEnvelopedData.<init>(Unknown
Source)
Post by Catalin Roman
Post by Catalin Roman
at org.bouncycastle.mail.smime.SMIMEEnveloped.<init>(Unknown
Source)
at SMIMETest.main(SMIMETest.java:95)
Exception in thread "main" java.lang.NullPointerException
at org.bouncycastle.asn1.cms.ContentInfoParser.<init>(Unknown
Source)
at org.bouncycastle.cms.CMSContentInfoParser.<init>(Unknown
Source)
at org.bouncycastle.cms.CMSEnvelopedDataParser.<init>(Unknown
Source)
at
org.bouncycastle.mail.smime.SMIMEEnvelopedParser.<init>(Unknown
Post by Catalin Roman
Post by Catalin Roman
Source)
at
org.bouncycastle.mail.smime.SMIMEEnvelopedParser.<init>(Unknown
Post by Catalin Roman
Post by Catalin Roman
Source)
at SMIMETest.main(SMIMETest.java:96)
Is my approach right? Is there another way?
Thanks,
Catalin
______________________________________________________________________
Post by Catalin Roman
Post by Catalin Roman
Invite your mail contacts to join your friends list with
Windows
Post by Catalin Roman
Live
Post by Catalin Roman
Spaces. It's easy! Try it!
______________________________________________________________________
Post by Catalin Roman
Get news, entertainment and everything you care about at Live.com.
Check it out!
______________________________________________________________________
Discover the new Windows Vista Learn more!
David Hook
2008-09-13 00:54:11 UTC
Permalink
Yes - it's the actually CMS message. In this case you could also deal
with it by going to the CMS API directly and skipping the SMIME API
altogether.

Regards,

David
Post by Martijn Brinkers
I am able to parse the message (of course not open it because it is
encrypted)
Encryption Algorithm: 3DES, Key size: 168
*** Recipient 0
CN=GlobalSign PersonalSign Class 1 CA, OU=PersonalSign Class 1 CA,
O=GlobalSign nv-sa, C=BE/100000000011C426FC129//1.2.840.113549.1.1.1
*** Recipient 1
CN=Thawte Personal Freemail Issuing CA, O=Thawte Consulting (Pty) Ltd.,
C=ZA/2D67E967B5E0F5A47E23843654BFBF63//1.2.840.113549.1.1.1
It looks like you are not building a correct S/MIME message before
MimeMessage msg = new MimeMessage(session, new FileInputStream("d:\
\downloads\\smime.p7m"));
afaik you cannot just build a message from the binary blob. You have to
add the correct S/MIME headers and base64 encode the binary blob
Martijn
Post by Catalin Roman
Here is the attachment.
Sorry for spam.
______________________________________________________________________
Subject: RE: [dev-crypto] decrypting a smime.p7m attachemant with
bcmail
Date: Fri, 12 Sep 2008 11:16:13 +0200
The attachment is missing
Martijn
Post by Catalin Roman
It's just a test email. Containing text: "Welcome to S/MIME
world".
Post by Catalin Roman
The email was sent using Outlook Express 6.
See it attached.
Regards,
Catalin
______________________________________________________________________
Post by Catalin Roman
Subject: Re: [dev-crypto] decrypting a smime.p7m attachemant
with
Post by Catalin Roman
bcmail
Date: Fri, 12 Sep 2008 16:26:47 +1000
The approach sounds right, I'm not sure about the message
though.
Post by Catalin Roman
What's
in it?
Regards,
David
Post by Catalin Roman
My system handles emails and I need to add S/MIME
functionality.
Post by Catalin Roman
Post by Catalin Roman
Currently if an email is encrypted I get attachment with a
file
Post by Catalin Roman
called
Post by Catalin Roman
smime.p7m.
Is is possible to decrypt a smime.p7m attachemnt file using
BouncyCastel S/MIME package if I have the correct private key?
MimeMessage msg = new MimeMessage(session, new
FileInputStream("d:\\downloads\\smime.p7m"));
SMIMEEnveloped m = new SMIMEEnveloped(msg);
SMIMEEnvelopedParser m = new SMIMEEnvelopedParser(msg);
Exception in thread "main" java.lang.NullPointerException
at org.bouncycastle.cms.CMSEnvelopedData.<init>(Unknown
Source)
Post by Catalin Roman
Post by Catalin Roman
at org.bouncycastle.cms.CMSEnvelopedData.<init>(Unknown
Source)
Post by Catalin Roman
Post by Catalin Roman
at org.bouncycastle.mail.smime.SMIMEEnveloped.<init>(Unknown
Source)
at SMIMETest.main(SMIMETest.java:95)
Exception in thread "main" java.lang.NullPointerException
at org.bouncycastle.asn1.cms.ContentInfoParser.<init>(Unknown
Source)
at org.bouncycastle.cms.CMSContentInfoParser.<init>(Unknown
Source)
at org.bouncycastle.cms.CMSEnvelopedDataParser.<init>(Unknown
Source)
at
org.bouncycastle.mail.smime.SMIMEEnvelopedParser.<init>(Unknown
Post by Catalin Roman
Post by Catalin Roman
Source)
at
org.bouncycastle.mail.smime.SMIMEEnvelopedParser.<init>(Unknown
Post by Catalin Roman
Post by Catalin Roman
Source)
at SMIMETest.main(SMIMETest.java:96)
Is my approach right? Is there another way?
Thanks,
Catalin
______________________________________________________________________
Post by Catalin Roman
Post by Catalin Roman
Invite your mail contacts to join your friends list with
Windows
Post by Catalin Roman
Live
Post by Catalin Roman
Spaces. It's easy! Try it!
______________________________________________________________________
Post by Catalin Roman
Get news, entertainment and everything you care about at Live.com.
Check it out!
______________________________________________________________________
Discover the new Windows Vista Learn more!
Suleman
2014-08-13 09:49:53 UTC
Permalink
Post by Catalin Roman
It's just a test email. Containing text: "Welcome to S/MIME world". The
email was sent using Outlook Express 6.See it attached.Regards,Catalin
Post by Catalin Roman
Subject: Re: [dev-crypto] decrypting a smime.p7m attachemant with
bcmail> From: dgh <at> lockboxlabs.com> To:
cr0man-***@public.gmane.org> CC: dev-crypto <at>
bouncycastle.org> Date: Fri, 12 Sep 2008 16:26:47 +1000> > > The approach
sounds right, I'm not sure about the message though. What's> in it?> >
Regards,> > David> > On Thu, 2008-09-11 at 19:19 +0300, Catalin Roman
wrote:> > > > > > My system handles emails and I need to add S/MIME
functionality.> > Currently if an email is encrypted I get attachment with a
file called> > smime.p7m. > > Is is possible to decrypt a smime.p7m
attachemnt file using> > BouncyCastel S/MIME package if I have the correct
private key?> > I tried the the following: > > > > MimeMessage msg =
new MimeMessage(session, new> >
FileInputStream("d:\\downloads\\smime.p7m"));> > SMIMEEnveloped
m = new SMIMEEnveloped(msg);> > and:> > SMIMEEnvelopedParser m =
new SMIMEEnvelopedParser(msg);> > > > but I get exceptions:> > > > Exception
in thread "main" java.lang.NullPointerException> > at
org.bouncycastle.cms.CMSEnvelopedData.<init>(Unknown Source)> > at
org.bouncycastle.cms.CMSEnvelopedData.<init>(Unknown Source)> > at
org.bouncycastle.mail.smime.SMIMEEnveloped.<init>(Unknown> > Source)> >
at SMIMETest.main(SMIMETest.java:95)> > > > or:> > > > Exception in thread
"main" java.lang.NullPointerException> > at
org.bouncycastle.asn1.cms.ContentInfoParser.<init>(Unknown> > Source)> >
at org.bouncycastle.cms.CMSContentInfoParser.<init>(Unknown> > Source)> >
at org.bouncycastle.cms.CMSEnvelopedDataParser.<init>(Unknown> > Source)>
Post by Catalin Roman
at org.bouncycastle.mail.smime.SMIMEEnvelopedParser.<init>(Unknown> >
Source)> > at
org.bouncycastle.mail.smime.SMIMEEnvelopedParser.<init>(Unknown> > Source)>
Post by Catalin Roman
at SMIMETest.main(SMIMETest.java:96)> > > > Is my approach right? Is
there another way?> > > > Thanks,> > Catalin> > > > > > > > > > > > > > > >
______________________________________________________________________> >
Invite your mail contacts to join your friends list with Windows Live> >
Spaces. It's easy! Try it!> > Get news, entertainment and everything you
care about at Live.com. Check it out!
I am facing exactly the same problem. Did someone manage to get it resolved?

Thanks.

David Hook
2008-09-12 06:32:54 UTC
Permalink
Is it in the system classpath? The provider must be loaded by either the
same class loader that loads the JCE or one that is trusted by it.

Regards,

David
Post by Demetris G
Hi all,
I am running JXTA under Jalimo on an N800 tablet running OS 2008. I
get the following
exception although the bcprov-jdk15-140.jar is in the classpath at
runtime. Any ideas?
Thanks in advance
10 Sep 2008 04:27:08 net.jxta.platform.NetworkManager startNetwork
INFO: Starting JXTA Network! MODE = EDGE, HOME =
file:/root/p2pSOA/P2PA/.cache/P2PA
10 Sep 2008 04:27:55 net.jxta.impl.membership.pse.PSEUtils
pkcs5_Encrypt_pbePrivateKey
WARNING: Encrypt failed
java.security.NoSuchAlgorithmException: Algorithm [PBEWITHMD5ANDDES] of
type [AlgorithmParameters] from provider
[org.bouncycastle.jce.provider.BouncyCastleProvider: name=BC
version=1.4] is not found
at gnu.java.security.Engine.getInstance(Engine.java:189)
at gnu.java.security.Engine.getInstance(Engine.java:103)
at
java.security.AlgorithmParameters.getInstance(AlgorithmParameters.java:184)
at
java.security.AlgorithmParameters.getInstance(AlgorithmParameters.java:114)
at
net.jxta.impl.membership.pse.PSEUtils.pkcs5_Encrypt_pbePrivateKey(PSEUtils.java:541)
at
net.jxta.impl.protocol.PSEConfigAdv.setPrivateKey(PSEConfigAdv.java:628)
at
net.jxta.platform.NetworkConfigurator.createPSEAdv(NetworkConfigurator.java:1644)
at
net.jxta.platform.NetworkConfigurator.getPlatformConfig(NetworkConfigurator.java:1814)
at net.jxta.platform.NetworkManager.startNetwork(NetworkManager.java:410)
at PeerToPeerAdapter.startJxta_2_5(PeerToPeerAdapter.java:1011)
at PeerToPeerAdapter.main(PeerToPeerAdapter.java:781)
Demetris G
2008-09-12 15:43:10 UTC
Permalink
Hi David - thanks for the response. Yes I do see the provider in the
system classpath as well.
Which makes it curious as to why this exception would occur. I do agree
that this definitely
seems like a path issue but I am wondering if the N800 has some peculiar
way to setup paths
or handle Jars.
I will investigate a bit more and let you know.

Thanks
Post by David Hook
Is it in the system classpath? The provider must be loaded by either the
same class loader that loads the JCE or one that is trusted by it.
Regards,
David
Post by Demetris G
Hi all,
I am running JXTA under Jalimo on an N800 tablet running OS 2008. I
get the following
exception although the bcprov-jdk15-140.jar is in the classpath at
runtime. Any ideas?
Thanks in advance
10 Sep 2008 04:27:08 net.jxta.platform.NetworkManager startNetwork
INFO: Starting JXTA Network! MODE = EDGE, HOME =
file:/root/p2pSOA/P2PA/.cache/P2PA
10 Sep 2008 04:27:55 net.jxta.impl.membership.pse.PSEUtils
pkcs5_Encrypt_pbePrivateKey
WARNING: Encrypt failed
java.security.NoSuchAlgorithmException: Algorithm [PBEWITHMD5ANDDES] of
type [AlgorithmParameters] from provider
[org.bouncycastle.jce.provider.BouncyCastleProvider: name=BC
version=1.4] is not found
at gnu.java.security.Engine.getInstance(Engine.java:189)
at gnu.java.security.Engine.getInstance(Engine.java:103)
at
java.security.AlgorithmParameters.getInstance(AlgorithmParameters.java:184)
at
java.security.AlgorithmParameters.getInstance(AlgorithmParameters.java:114)
at
net.jxta.impl.membership.pse.PSEUtils.pkcs5_Encrypt_pbePrivateKey(PSEUtils.java:541)
at
net.jxta.impl.protocol.PSEConfigAdv.setPrivateKey(PSEConfigAdv.java:628)
at
net.jxta.platform.NetworkConfigurator.createPSEAdv(NetworkConfigurator.java:1644)
at
net.jxta.platform.NetworkConfigurator.getPlatformConfig(NetworkConfigurator.java:1814)
at net.jxta.platform.NetworkManager.startNetwork(NetworkManager.java:410)
at PeerToPeerAdapter.startJxta_2_5(PeerToPeerAdapter.java:1011)
at PeerToPeerAdapter.main(PeerToPeerAdapter.java:781)
Demetris G
2008-09-12 20:15:29 UTC
Permalink
Plus I get this before the exception occurs -

12 Sep 2008 19:14:05 net.jxta.impl.membership.pse.PSEUtils <init>
INFO: Loaded Security Providers into system class loader
Post by Demetris G
Hi David - thanks for the response. Yes I do see the provider in the
system classpath as well.
Which makes it curious as to why this exception would occur. I do
agree that this definitely
seems like a path issue but I am wondering if the N800 has some
peculiar way to setup paths
or handle Jars.
I will investigate a bit more and let you know.
Thanks
Post by David Hook
Is it in the system classpath? The provider must be loaded by either the
same class loader that loads the JCE or one that is trusted by it.
Regards,
David
Post by Demetris G
Hi all,
I am running JXTA under Jalimo on an N800 tablet running OS
2008. I get the following
exception although the bcprov-jdk15-140.jar is in the classpath at
runtime. Any ideas?
Thanks in advance
10 Sep 2008 04:27:08 net.jxta.platform.NetworkManager startNetwork
INFO: Starting JXTA Network! MODE = EDGE, HOME =
file:/root/p2pSOA/P2PA/.cache/P2PA
10 Sep 2008 04:27:55 net.jxta.impl.membership.pse.PSEUtils
pkcs5_Encrypt_pbePrivateKey
WARNING: Encrypt failed
java.security.NoSuchAlgorithmException: Algorithm [PBEWITHMD5ANDDES]
of type [AlgorithmParameters] from provider
[org.bouncycastle.jce.provider.BouncyCastleProvider: name=BC
version=1.4] is not found
at gnu.java.security.Engine.getInstance(Engine.java:189)
at gnu.java.security.Engine.getInstance(Engine.java:103)
at
java.security.AlgorithmParameters.getInstance(AlgorithmParameters.java:184)
at
java.security.AlgorithmParameters.getInstance(AlgorithmParameters.java:114)
at
net.jxta.impl.membership.pse.PSEUtils.pkcs5_Encrypt_pbePrivateKey(PSEUtils.java:541)
at
net.jxta.impl.protocol.PSEConfigAdv.setPrivateKey(PSEConfigAdv.java:628)
at
net.jxta.platform.NetworkConfigurator.createPSEAdv(NetworkConfigurator.java:1644)
at
net.jxta.platform.NetworkConfigurator.getPlatformConfig(NetworkConfigurator.java:1814)
at
net.jxta.platform.NetworkManager.startNetwork(NetworkManager.java:410)
at PeerToPeerAdapter.startJxta_2_5(PeerToPeerAdapter.java:1011)
at PeerToPeerAdapter.main(PeerToPeerAdapter.java:781)
Loading...