Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 35450 invoked from network); 14 Mar 2007 02:58:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Mar 2007 02:58:30 -0000 Received: (qmail 19110 invoked by uid 500); 14 Mar 2007 02:58:38 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 19088 invoked by uid 500); 14 Mar 2007 02:58:38 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 19076 invoked by uid 99); 14 Mar 2007 02:58:38 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Mar 2007 19:58:38 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Mar 2007 19:58:29 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A8623714078 for ; Tue, 13 Mar 2007 19:58:09 -0700 (PDT) Message-ID: <6269587.1173841089687.JavaMail.jira@brutus> Date: Tue, 13 Mar 2007 19:58:09 -0700 (PDT) From: "Stepan Mishura (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-3384) [classlib][security]java.security.cert.X509Certificate.toString() throws NullPointerException In-Reply-To: <23225662.1173794769400.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-3384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stepan Mishura updated HARMONY-3384: ------------------------------------ Component/s: Classlib > [classlib][security]java.security.cert.X509Certificate.toString() throws NullPointerException > --------------------------------------------------------------------------------------------- > > Key: HARMONY-3384 > URL: https://issues.apache.org/jira/browse/HARMONY-3384 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Leo Li > Assigned To: Stepan Mishura > Attachments: cert.dat > > > Here is a testcase: > public void testToString() throws Exception > { > ObjectInputStream oin = new ObjectInputStream(new FileInputStream("cert.dat")); > X509Certificate cert = (X509Certificate) oin.readObject(); > cert.toString(); > oin.close(); > } > And the serialization file cert .dat is in the attachment. > It passes on RI, but fails on Harmony with NullPointerException: > java.lang.NullPointerException > at java.math.BigInteger.(BigInteger.java:179) > at org.apache.harmony.security.x509.AuthorityKeyIdentifier$1.getDecodedObject(AuthorityKeyIdentifier.java:122) > at org.apache.harmony.security.asn1.ASN1Sequence.decode(ASN1Sequence.java:54) > at org.apache.harmony.security.asn1.ASN1Type.decode(ASN1Type.java:98) > at org.apache.harmony.security.x509.AuthorityKeyIdentifier.decode(AuthorityKeyIdentifier.java:72) > at org.apache.harmony.security.x509.Extension.decodeExtensionValue(Extension.java:297) > at org.apache.harmony.security.x509.Extension.dumpValue(Extension.java:333) > at org.apache.harmony.security.x509.Extensions.dumpValue(Extensions.java:40) > at org.apache.harmony.security.x509.TBSCertificate.dumpValue(TBSCertificate.java:290) > at org.apache.harmony.security.x509.Certificate.toString(Certificate.java:118) > at org.apache.harmony.security.provider.cert.X509CertImpl.toString(X509CertImpl.java:486) > at X509CertificateTest.testToString(X509CertificateTest.java:15) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.