Hi Rafal,

I tried the workaround as you said and it works!!!! :-))

I'll download the new snapshot (with your fix) tomorrow and try it again
(without workaround).

Thanx for all your help.

/colin





> Colin Chalmers wrote:
> >
> > Hi Rafal,
> >
> > Without trying to sound too monotonous.......
> >
> > I've been stepping through the code and I understand what you're saying
> > regarding the default values in the securityservice file. However....
> >
> > The code I had yesterday was not initialising the init(RunData ) method
in
> > DBSecurityService.
>
> Right. For some reason, userManager was initialized in init(RunData)
> instead
> of init(ServletConfig). Today I was trying hard to remember why I made
> it
> this way, but I couldn't think of any valid reason. (Gee, Jon isn't
> going
> to like that ;-))
> I fixed BaseService in CVS so it will be initialized by
> turbine.init(config)
> method.
>
> > After adding the extra code you see below the init(RunData) method is
> > accessed. In that method a call is done to BaseService.getProperties().
>
> Yes it will return null, because you created the service class by hand
> and you didn't give it a ServiceBroker to request properties from.
>
> A valid workaroud for the problem would be:
>
> ...
> RunData rData = new RunData();
> Service service =
> TurbineServices.getInstance().getService(SecurityService.SERVICE_NAME);
> service.init(rData);
> ...
>
> but since init(ServletConfig) will get called by
> Turbine.init(ServletConfig)
> it is not needed anymore.
>
> I hope it should work now. I didn't try in outside a servlet myself.
> Thanks
> for finding the bug!
>
> Rafal
>
> --
> Rafal Krzewski
> Senior Internet Developer
> mailto:[EMAIL PROTECTED]
> +48 22 8534830 http://e-point.pl
>
>
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?:           [EMAIL PROTECTED]
>
>



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to