Return-Path: X-Original-To: apmail-felix-dev-archive@www.apache.org Delivered-To: apmail-felix-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 8D1F372BF for ; Thu, 1 Dec 2011 17:05:04 +0000 (UTC) Received: (qmail 80472 invoked by uid 500); 1 Dec 2011 17:05:04 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 80432 invoked by uid 500); 1 Dec 2011 17:05:04 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 80424 invoked by uid 99); 1 Dec 2011 17:05:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2011 17:05:04 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2011 17:05:01 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 3DE0DAEA15 for ; Thu, 1 Dec 2011 17:04:40 +0000 (UTC) Date: Thu, 1 Dec 2011 17:04:40 +0000 (UTC) From: "Caspar MacRae (Issue Comment Edited) (JIRA)" To: dev@felix.apache.org Message-ID: <696736528.31342.1322759080255.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1796223802.31285.1322757040463.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Issue Comment Edited] (FELIX-3250) Bouncy Castle JCE with Felix framework 3.0.8/3.0.9 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FELIX-3250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13160981#comment-13160981 ] Caspar MacRae edited comment on FELIX-3250 at 12/1/11 5:04 PM: --------------------------------------------------------------- Thanks Karl, that correct, user error; it's commas instead of semi-colons. In case anyone stumbles on this looking for the system package extras, you'll need to add "org.bouncycastle.crypto.prng" as well was (Author: earcam): Thanks Karl, that correct, user error; it's commas instead of semi-colons > Bouncy Castle JCE with Felix framework 3.0.8/3.0.9 > -------------------------------------------------- > > Key: FELIX-3250 > URL: https://issues.apache.org/jira/browse/FELIX-3250 > Project: Felix > Issue Type: Bug > Components: Framework > Affects Versions: framework-3.0.1, framework-3.0.8 > Environment: Linux, sun jdk 1.6 (20.1-b02), Karaf 2.20 - 2.2.4 > Reporter: Caspar MacRae > > Apologies for only providing information in the context of Karaf, but I don't have time to do a standalone testcase. > I've an issue with Bouncy Castle JCE running with Felix (I found this while trying to extend our custom Karaf distro, it seems to be a problem with Karaf 2.2.0 (Felix 3.0.8) through to 2.2.4 (Felix 3.0.9) but doesn't happen when I use Equinox. > Could not create framework: java.lang.ArrayIndexOutOfBoundsException: -1 > java.lang.ArrayIndexOutOfBoundsException: -1 > at java.util.ArrayList.get(ArrayList.java:324) > at org.apache.felix.framework.BundleImpl.getCurrentModule(BundleImpl.java:1050) > at org.apache.felix.framework.BundleImpl.getSymbolicName(BundleImpl.java:859) > at org.apache.felix.framework.Felix.toString(Felix.java:1019) > at org.apache.felix.framework.Logger.doLog(Logger.java:128) > at org.apache.felix.framework.Logger._log(Logger.java:181) > at org.apache.felix.framework.Logger.log(Logger.java:114) > at org.apache.felix.framework.ExtensionManager.(ExtensionManager.java:201) > at org.apache.felix.framework.Felix.(Felix.java:374) > at org.apache.felix.framework.FrameworkFactory.newFramework(FrameworkFactory.java:28) > at org.apache.karaf.main.Main.launch(Main.java:266) > at org.apache.karaf.main.Main.main(Main.java:427) > Steps to reproduce: > wget http://www.apache.org/dyn/closer.cgi/karaf/2.2.4/apache-karaf-2.2.4.tar.gz > tar -xvzf apache-karaf-2.2.4.tar.gz > cd apache-karaf-2.2.4/ > # Assuming you've got bcprov-jdk16-1.46.jar in your maven repo > cp ~/.m2/repository/org/bouncycastle/bcprov-jdk16/1.46/bcprov-jdk16-1.46.jar ./lib/ext/ > nano etc/custom.properties # Add the following: > org.osgi.framework.system.packages.extra = \ > org.bouncycastle.math.ec;version=1.46; \ > org.bouncycastle.jce.provider;version=1.46; > org.apache.felix.karaf.security.providers = org.bouncycastle.jce.provider.BouncyCastleProvider > org.osgi.framework.bootdelegation = org.bouncycastle.*; > ./bin/karaf > # It exits immediately with the stacktrace above -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira