[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bouncycastle-crypto-dev
Subject:    [dev-crypto] about strange cast operation exception - X509CertificateObject
From:       Ayhan Güngör <agungor () gmail ! com>
Date:       2009-01-22 9:48:39
Message-ID: c46e2f1c0901220148k732985d3u9d27d8c5c8efb9cb () mail ! gmail ! com
[Download RAW message or body]

Hi,

i am getting an
exception(org.bouncycastle.jce.provider.X509CertificateObject cannot
be cast to org.bouncycastle.jce.provider.X509CertificateObject) from
following code.
i can't replicate it regularly but i suspect that it happens when
tomcat(6.0.18) is started after my application changed and deployed.

any ideas?

...
CertificateFactory fact = CertificateFactory.getInstance("X.509", "BC");
X509CertificateObject cert =
(X509CertificateObject)fact.generateCertificate(new
ByteInputStream(signedData, signedData.length));
...

conf : win2003, tomcat 6.0.18, Java(TM) SE Runtime Environment (build
1.6.0_05-b13)


regards,
Ayhan GUNGOR

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic