Return-Path: X-Original-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A3B0610C81 for ; Tue, 11 Jun 2013 09:25:26 +0000 (UTC) Received: (qmail 42729 invoked by uid 500); 11 Jun 2013 09:25:26 -0000 Delivered-To: apmail-jackrabbit-oak-dev-archive@jackrabbit.apache.org Received: (qmail 42602 invoked by uid 500); 11 Jun 2013 09:25:24 -0000 Mailing-List: contact oak-dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oak-dev@jackrabbit.apache.org Delivered-To: mailing list oak-dev@jackrabbit.apache.org Received: (qmail 42442 invoked by uid 99); 11 Jun 2013 09:25:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jun 2013 09:25:23 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [64.18.1.236] (HELO exprod6og120.obsmtp.com) (64.18.1.236) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jun 2013 09:25:14 +0000 Received: from outbound-smtp-2.corp.adobe.com ([193.104.215.16]) by exprod6ob120.postini.com ([64.18.5.12]) with SMTP ID DSNKUbbs0EgXQfAaVIwOs+9BLoQoBt/aXkeF@postini.com; Tue, 11 Jun 2013 02:24:54 PDT Received: from inner-relay-2.corp.adobe.com (mail-321.sea.adobe.com [153.32.1.52]) by outbound-smtp-2.corp.adobe.com (8.12.10/8.12.10) with ESMTP id r5B9OVAI003947 for ; Tue, 11 Jun 2013 02:24:31 -0700 (PDT) Received: from nacas02.corp.adobe.com (nacas02.corp.adobe.com [10.8.189.100]) by inner-relay-2.corp.adobe.com (8.12.10/8.12.10) with ESMTP id r5B9OUw7001776 for ; Tue, 11 Jun 2013 02:24:30 -0700 (PDT) Received: from eurhub01.eur.adobe.com (10.128.4.30) by nacas02.corp.adobe.com (10.8.189.100) with Microsoft SMTP Server (TLS) id 8.3.298.1; Tue, 11 Jun 2013 02:24:30 -0700 Received: from susi.local (10.136.132.15) by eurhub01.eur.adobe.com (10.128.4.111) with Microsoft SMTP Server id 8.3.298.1; Tue, 11 Jun 2013 10:24:28 +0100 Message-ID: <51B6ECCB.401@apache.org> Date: Tue, 11 Jun 2013 10:24:27 +0100 From: =?ISO-8859-1?Q?Michael_D=FCrig?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Subject: Re: Initialize Oak CR References: <64F8EDFA-BECB-4571-BA70-0DEE2082C786@indiana.edu> In-Reply-To: <64F8EDFA-BECB-4571-BA70-0DEE2082C786@indiana.edu> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Peri, You need to pass a security provider instance using one of the .with methods before calling createContentRepository(). Security configuration is still pretty much work in progress. Also you don't need a repository.xml. This is a thing of JR2. Michael On 10.6.13 19:00, PeriS wrote: > I m trying the following; > > Oak oak = new Oak(); > ContentRepository repository = oak.createContentRepository(); > > I understand this should give me a default CR with the MKs initialized. I m encountering a null-pointer exception in the Oak.java class particluarly in the createContentRepositry() method; > > > // FIXME: OAK-810 move to proper workspace initialization > // initialize default workspace > Iterable workspaceInitializers = > Iterables.transform(securityProvider.getSecurityConfigurations(), > new Function() { > @Override > public WorkspaceInitializer apply(SecurityConfiguration sc) { > return sc.getWorkspaceInitializer(); > } > }); > > The securityProvider is null and I was wondering if I missed anything during initialization. Also, it doesn't appear as if it needs a repository.xml (2.x where if one existed it got used and if it didn't, then a new default one got created). > > Any ideas? > > -Peri.S > > > >