Exception when importing public key

52 views
Skip to first unread message

Prakatheesh

unread,
Dec 22, 2011, 12:13:34 PM12/22/11
to DidiSoft Forum
Exception in thread "main" java.lang.NoSuchMethodError:
org.bouncycastle.bcpg.ArmoredInputStream.isEndOfStream()Z

didisoft

unread,
Dec 22, 2011, 1:55:34 PM12/22/11
to DidiSoft Forum
Hello Prakatheesh,

Can you please clarify some details in order to help us investigate
this issue

1. what is the operating system you are running
2. what is the Java version
3. if possible the code snippet that throws this exception and
possibly more lines from the stack trace.

Cheers,
Peter Kalef
DidiSoft Ltd.

Prakatheesh

unread,
Dec 22, 2011, 2:19:42 PM12/22/11
to DidiSoft Forum
Hi Peter,

1. Window7
2. JDK.1.6.0.27

keyStore = new KeyStore("c:/pgp/a.keystore", "changeit");
keyStore.importPublicKey("c:/pgp/unit-test.asc");


Exception
************
Exception in thread "main" java.lang.NoSuchMethodError:
org.bouncycastle.bcpg.ArmoredInputStream.isEndOfStream()Z
at com.didisoft.pgp.KeyStore.loadKeyFile(KeyStore.java:3299)
at com.didisoft.pgp.KeyStore.importPublicKey(KeyStore.java:2252)
at com.support.pgp.utils.DecryptFile.main(DecryptFile.java:22)


Thanks
Prakatheesh
> > org.bouncycastle.bcpg.ArmoredInputStream.isEndOfStream()Z- Hide quoted text -
>
> - Show quoted text -

didisoft

unread,
Dec 22, 2011, 2:41:02 PM12/22/11
to DidiSoft Forum
Hi Prakatheesh,

I have tested your code with the current version on the same
environment (Win 7, jre 6)
but unfortunately was not able to reproduce this error.

Can you tell me the version of the library you are using.
(You can see it in the file ReleaseNotes.txt that ships with the
library or in the MANIFEST.MF file in the pgplib jar file)

Best Regards,
Peter Kalef
DidiSoft Ltd.

Prakatheesh

unread,
Dec 22, 2011, 2:50:45 PM12/22/11
to DidiSoft Forum
Peter

Below is the version detais
pgplib-2.5 version 1.4 : 48.0

regards
Prakatheesh
> > > - Show quoted text -- Hide quoted text -

Prakatheesh

unread,
Dec 22, 2011, 2:53:26 PM12/22/11
to DidiSoft Forum
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.1
Created-By: 16.0-b13 (Sun Microsystems Inc.)
Built-By: DidiSoft Eood (www.didisoft.com)
Build-Version: 2.5.7
Description: OpenPGP Library for Java
Implementation-Version: 2.5
Implementation-Vendor: DidiSoft Eood (www.didisoft.com)



On Dec 22, 2:41 pm, didisoft <akrac...@gmail.com> wrote:
> > > - Show quoted text -- Hide quoted text -

didisoft

unread,
Dec 22, 2011, 3:02:08 PM12/22/11
to DidiSoft Forum
Hi Prakatheesh,

Can you please send the file unit-test.asc
to sup...@didisoft.com
so we can check the code against the same key file.
Reply all
Reply to author
Forward
0 new messages