From owner-freebsd-java@FreeBSD.ORG Fri Nov 4 05:39:22 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B55A516A420 for ; Fri, 4 Nov 2005 05:39:22 +0000 (GMT) (envelope-from ncoelle@gmx.de) Received: from mail.gmx.net (pop.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 017CD43D45 for ; Fri, 4 Nov 2005 05:39:21 +0000 (GMT) (envelope-from ncoelle@gmx.de) Received: (qmail invoked by alias); 04 Nov 2005 05:39:19 -0000 Received: from p5496A9E5.dip0.t-ipconnect.de (EHLO localhost) [84.150.169.229] by mail.gmx.net (mp006) with SMTP; 04 Nov 2005 06:39:19 +0100 X-Authenticated: #3587294 Date: Fri, 04 Nov 2005 06:39:24 -0000 To: freebsd-java@freebsd.org From: =?iso-8859-15?Q?Niels_C=F6lle?= Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: User-Agent: Opera M2/8.50 (FreeBSD, build 1358) X-Y-GMX-Trusted: 0 Subject: JDK15: Cipher.getInstance throws UnsupportedOperationException X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Nov 2005 05:39:22 -0000 Hello, are there any known restrictions in the JCE implementation of jdk-1.5.0p2_1? If I use the native jdk15 I get the Exception below. On other platforms my code works: - FreeBSD linux-jdk15 - Windows XP jdk1.5.0_05 - RedHat EE 3.x jdk1.5.0_05 - Solaris 8 jdk1.5.0_05 - Solaris 9 jdk1.5.0_05 I checked jce.jar with jarsigner -verify : OK. I installed the jce_policy files for 1.5.0 : failed. I replaced the jce.jar and the security directory with files from one of the working platforms : failed (of course?) Maybe I am searching in the wrong direction, but if I formerly got these "java.lang.SecurityException: Cannot set up certs for trusted CAs" errors, there was something wrong with the certificates/signatures/policy in jre/lib jre/lib/security. Has anybody new ideas? Thanks in advance Niels java.lang.ExceptionInInitializerError at javax.crypto.Cipher.getInstance(DashoA12275) at javax.crypto.Cipher.getInstance(DashoA12275) at com.coelle_online.Token.init(IAIKToken.java:253) at com.coelle_online.GenerateMasterKey.run(GenerateMasterKey.java:59) at com.coelle_online.GenerateMasterKey.main(GenerateMasterKey.java:91) Caused by: java.lang.SecurityException: Cannot set up certs for trusted CAs at javax.crypto.SunJCE_b.(DashoA12275) ... 5 more Caused by: java.lang.UnsupportedOperationException at java.security.cert.CertificateFactorySpi.engineGenerateCertPath(CertificateFactorySpi.java:162) at java.security.cert.CertificateFactory.generateCertPath(CertificateFactory.java:353) at sun.security.util.SignatureFileVerifier.getSigners(SignatureFileVerifier.java:464) at sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:208) at sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:176) at java.util.jar.JarVerifier.processEntry(JarVerifier.java:282) at java.util.jar.JarVerifier.update(JarVerifier.java:194) at java.util.jar.JarFile.initializeVerifier(JarFile.java:317) at java.util.jar.JarFile.getInputStream(JarFile.java:382) at sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:119) at javax.crypto.SunJCE_d.a(DashoA12275) at javax.crypto.SunJCE_b.g(DashoA12275) at javax.crypto.SunJCE_b.e(DashoA12275) at javax.crypto.SunJCE_q.run(DashoA12275) at java.security.AccessController.doPrivileged(Native Method) ... 6 more