Return-Path: X-Original-To: apmail-poi-dev-archive@www.apache.org Delivered-To: apmail-poi-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B8F4717DB0 for ; Wed, 5 Nov 2014 21:53:18 +0000 (UTC) Received: (qmail 61474 invoked by uid 500); 5 Nov 2014 21:53:18 -0000 Delivered-To: apmail-poi-dev-archive@poi.apache.org Received: (qmail 61434 invoked by uid 500); 5 Nov 2014 21:53:18 -0000 Mailing-List: contact dev-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Developers List" Delivered-To: mailing list dev@poi.apache.org Received: (qmail 61423 invoked by uid 99); 5 Nov 2014 21:53:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Nov 2014 21:53:18 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dominik.stadler@gmx.at designates 212.227.17.20 as permitted sender) Received: from [212.227.17.20] (HELO mout.gmx.net) (212.227.17.20) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Nov 2014 21:52:52 +0000 Received: from mail-pd0-f180.google.com ([209.85.192.180]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0M4B71-1Y3OZe0Adf-00rn3B for ; Wed, 05 Nov 2014 22:52:41 +0100 Received: by mail-pd0-f180.google.com with SMTP id ft15so1546291pdb.39 for ; Wed, 05 Nov 2014 13:52:39 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.70.102.164 with SMTP id fp4mr114466pdb.96.1415224359117; Wed, 05 Nov 2014 13:52:39 -0800 (PST) Received: by 10.70.41.166 with HTTP; Wed, 5 Nov 2014 13:52:39 -0800 (PST) In-Reply-To: References: <1415129138989-5717034.post@n5.nabble.com> <54595B45.5020008@gmx.de> Date: Wed, 5 Nov 2014 22:52:39 +0100 Message-ID: Subject: Re: org.apache.poi.poifs.crypt.TestSignatureInfo failing on trunk on Java 6? From: Dominik Stadler To: POI Developers List Content-Type: text/plain; charset=UTF-8 X-Provags-ID: V03:K0:GBGpQ0BYkLPNQ8TczOWomIwNcU8VFwQVF6tQMMJ4MpTOl32uDXt FqrhyshpSe+QHZRXvjFgb76qGQi5XjmUoZiIgUS+OHrC+do6k4MpyoavGf+v17Dei3Yfgta gkfrc1v4K+e9WYtJtHBNqc19pcTMbeHSioeVcsgIPFjDejgiZNAylUVe502nrW47ukX+xoO mHIN3zZAr3robGiQKjbXA== X-UI-Out-Filterresults: notjunk:1; X-Virus-Checked: Checked by ClamAV on apache.org Hi, I tried it locally with the same version of OpenJDK, only on Ubuntu 14.04, I get the same error. Dominik. On Wed, Nov 5, 2014 at 12:29 PM, Aram Mirzadeh wrote: > I think this is the same bug that throws off the XSSF column autosizer ... > we never came up with a test that actually failed on it -- or at least it's > in the same method/class. > > On Wed, Nov 5, 2014 at 5:28 AM, Nick Burch wrote: > >> On Wed, 5 Nov 2014, Dominik Stadler wrote: >> >>> The CI builds at https://builds.apache.org/job/POI/ run with JDK 6 and >>> don't run into this failure: >>> >>> Using Java: 1.6.0_27/1.6.0_27-b07/20.2-b06/Java HotSpot(TM) 64-Bit >>>>> Server VM from Sun Microsystems Inc. on Windows Server 2008: 6.0 >>>>> >>>> >> Hmm, it's still failing on my machine, which both means I can't build the >> 3.11 beta 3 release candidate, and that other users out there might hit the >> problem too :( At this point, I'd probably be happy if the code just >> detected it and threw a "your JVM is just too broken" exception which the >> test warned about but didn't fail with >> >> Latest failure below >> >> Thanks >> Nick >> >> >> Testsuite: org.apache.poi.poifs.crypt.TestSignatureInfo >> Tests run: 9, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.847 sec >> Testcase: testCertChain took 0.463 sec >> Testcase: testManipulation took 0.429 sec >> Testcase: testSignSpreadsheet took 0.075 sec >> Testcase: getSigner took 0.611 sec >> Testcase: testSignSpreadsheetWithSignatureInfo took 0.067 sec >> Testcase: testSignEnvelopingDocument took 0.555 sec >> Testcase: testNonSha1 took 0.041 sec >> Caused an ERROR >> null >> java.lang.ArrayIndexOutOfBoundsException >> at sun.security.provider.ByteArrayAccess.i2bBig( >> ByteArrayAccess.java:318) >> at sun.security.provider.SHA2.implDigest(SHA2.java:104) >> at sun.security.provider.DigestBase.engineDigest( >> DigestBase.java:173) >> at sun.security.provider.DigestBase.engineDigest( >> DigestBase.java:152) >> at java.security.MessageDigest$Delegate.engineDigest( >> MessageDigest.java:563) >> at java.security.MessageDigest.digest(MessageDigest.java:340) >> at sun.security.rsa.RSASignature.getDigestValue(RSASignature. >> java:148) >> at sun.security.rsa.RSASignature.engineSign(RSASignature.java:172) >> at java.security.Signature$Delegate.engineSign(Signature. >> java:1166) >> at java.security.Signature.sign(Signature.java:539) >> at org.apache.jcp.xml.dsig.internal.dom.DOMSignatureMethod.sign( >> DOMSignatureMethod.java:285) >> at org.apache.jcp.xml.dsig.internal.dom.DOMXMLSignature. >> sign(DOMXMLSignature.java:398) >> at org.apache.poi.poifs.crypt.dsig.SignatureInfo.preSign( >> SignatureInfo.java:476) >> at org.apache.poi.poifs.crypt.dsig.SignatureInfo.confirmSignature( >> SignatureInfo.java:292) >> at org.apache.poi.poifs.crypt.TestSignatureInfo.testNonSha1( >> TestSignatureInfo.java:465) >> >> Testcase: getMultiSigners took 0.042 sec >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org >> For additional commands, e-mail: dev-help@poi.apache.org >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org For additional commands, e-mail: dev-help@poi.apache.org