I had a similar problem.  The  Configuration<HttpConfiguration> wasn't 
null for me, but when attempting to access the HttpConfiguration with 
config.configuration() you get the NPE because when Qi4j is trying to 
create the HttpConfiguration object the unitOfWork is null.  I wound up 
moving all the startup code to the activate() method.  I'm not 100% 
happy with that, but it's working.

Rich

Edward Yakop wrote:
> On Tue, Jul 8, 2008 at 8:50 AM, Sonny Gill <[EMAIL PROTECTED]> wrote:
>   
>> Yeah, that makes sense.
>>
>> But, I am also curious to know what the current code is supposed to
>> do, and why it is not working.
>>     
>
> After playing around last night, I still couldn't get it to work.
> One of the problem is NPE when invoking
>
> @This Configuration<HttpConfiguration> config
> config.httpPort();
>
> During debugging, I found that config = null (weird!).
> Hopefully, I will revisit this tonight.
>
> Regards,
> Edward Yakop
>
> _______________________________________________
> qi4j-dev mailing list
> [email protected]
> http://lists.ops4j.org/mailman/listinfo/qi4j-dev
>   


_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to