Hi Rafal,


I'm using Turbine from my IDE loading the properties file *manually*.

Here's the stacktrace I'm getting, I hope it helps

<trace>
java.lang.NullPointerException

at
org.apache.turbine.services.security.BaseSecurityService.addUser(BaseSecurit
yService.java:358)

at
org.apache.turbine.services.security.TurbineSecurity.addUser(TurbineSecurity
.java:424)

</trace>

/colin

> Colin Chalmers wrote:
>
> > Phew, I 'm marginally happy that I'm not the only slightly confused
here.
> >
> > I tried the following code and got a NullPointerException.
>
> could you post the stacktrace?
>
> > I also don't see a a method "setLoginName".
>
> it's setUserName, as seen below...
>
> > Can anyone enlighten me as to whats going wrong?
> >
> > <code>
> >     TurbineUser user = (TurbineUser)TurbineSecurity.getAnonymousUser();
> >     user.setUserName("collie");
> >     user.setFirstName("colin");
> >     user.setLastName("chalmers");
> >     TurbineSecurity.addUser(user, "password");
> > </code>
> >
> > Should there also be a method for setting email address?
>
> It was missing. I just added it.
>
> 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