Thanks, Jan. I'll give it a try!

-will

On 11.10.2012, at 16:25, Jan Haderka wrote:

> I believe what is now called BootstrapUtil used to be 
> info.magnolia.cms.module.ModuleUtil
> check MAGNOLIA-2245 for more details.
> 
> You might also want to run this in system context.
> MgnlContext.getSystemContext()
> 
> HTH,
> Jan
> 
> On Oct 11, 2012, at 12:29 PM, Will Scheidegger <[email protected]> 
> wrote:
> 
>> Dear Magnolians
>> 
>> We somehow lost the superuser account on a very old Magnolia instance 
>> (3.6.x). So I've spent quite some time trying to get the recovery script [1] 
>> to work with Magnolia 3.6. SInce there is no BoostrapUtils in 3.6, it 
>> involved quite a bit of ugly code in a scriptlet even including inner an 
>> class. Now, the script compiles fine, but I get a NPE pretty much right at 
>> the beginning.
>> 
>> - I first set up MgnlContext
>> - As soon as I try to get the "users" hierarchy manager an NPE is thrown.
>> 
>> I assume that MgnlContext is not yet setup right, but what is missing? This 
>> is how the first few lines look:
>> 
>> MgnlContext.setInstance(new 
>> info.magnolia.context.SingleJCRSessionSystemContext());
>> System.out.println("MgnlContext: " + MgnlContext.getInstance());     // 
>> everything fine here
>> HierarchyManager hm = MgnlContext.getHierarchyManager("users");      // 
>> boom! NPE
>> 
>> Does anyone have an idea where to look next?
>> 
>> Thanks!
>> -will
>> 
>> 
>> 
>> [1] http://wiki.magnolia-cms.com/display/WIKI/Reset+superuser+account
>> 
>> 
>> ----------------------------------------------------------------
>> For list details, see 
>> http://www.magnolia-cms.com/community/mailing-lists.html
>> Alternatively, use our forums: http://forum.magnolia-cms.com/
>> To unsubscribe, E-mail to: <[email protected]>
>> ----------------------------------------------------------------
> 
> 
> 
> ----------------------------------------------------------------
> For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
> Alternatively, use our forums: http://forum.magnolia-cms.com/
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------



----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to