directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Zoerner <>
Subject Re: Standalone & Webapp Examples not working with 1.5.6
Date Fri, 26 Mar 2010 05:46:06 GMT
Hi Peter!

Peter Horne wrote:
> Thanks for the replies and I'll look forward to the updates.  One place where you may
want to start is with installer/apacheds-noarch.  As I was trying to work out what was wrong
with my code, I thought I'd get it (installer/apacheds-noarch) going and then make some exploratory
changes.  It worked fine after a maven build and running the script.  However
when I removed arg[0] from the script (target/plan/server.xml) to make it use the defaults,
it crashed with the same exception that my code had... 
> Exception in thread "main" java.lang.NullPointerException 
> 	at
> 	at
> 	at

This is the same error I ran into when I tried to update the example for 
the custom partition example found here:

Problem was the way I created the DirectoryService. The SchemaManager 
was missing afterwards.

Currently I do the following

DirectoryServiceFactory factory = DefaultDirectoryServiceFactory.DEFAULT;
DirectoryService directoryService = factory.getDirectoryService();

which works. There is a discussion on our dev-list about whether this is 
the intended and most easiest way to accomplish the task programmaticaly.

Feel free to join the discussion. Sorry for the inconvenience.
Greetings from Bielefeld,

View raw message