Hi Peter,

Yup, that almost solves it, but you forgot:

        theHandler.setMailServer(mailServer);

Thanks, Serge


----- Original Message -----
From: "Peter M. Goldstein" <[EMAIL PROTECTED]>
To: "'James Developers List'" <[EMAIL PROTECTED]>
Sent: Tuesday, October 22, 2002 9:17 PM
Subject: RE: Latest diffs, source code


>
> Yup.
>
> I can even tell you what that specific problem is.  The RemoteManager is
> the rev I posted is not setting the UsersRepository.  See the
> newHandler() method in RemoteManager.  Modify it so that it calls
> theHandler.setUsersStore(usersStore) and
> theHandler.setUsersRepository(users) immediately before the
> theHandler.setWatchdog call.
>
> That set of changes - isolating the handler creation - was one of the
> last I made before making the post, so I'm not surprised I introduced
> that error.  Sorry for the bother.
>
> --Peter
>
> > -----Original Message-----
> > From: Serge Sozonoff [mailto:serge@;globalbeach.com]
> > Sent: Tuesday, October 22, 2002 12:07 PM
> > To: James Developers List; [EMAIL PROTECTED]
> > Subject: Re: Latest diffs, source code
> >
> > Hi Peter,
> >
> > I am running the latest cvs version of James with your patches and
> > additional files.
> > Java SDK 1.3.1_06
> > Solaris 8 on a SUN SPARC
> >
> > I came across this error when trying to add a user using the remote
> > manager
> > to a fresh install of James (no user database yet and file based)
> > Basically it pukes with an NPE when I try and add a user :-(
> > Anything changed lately that could be causing this?
> >
> > Thanks, Serge
> >
> >
> >
> > JAMES Remote Administration Tool 2.1a1-cvs
> > Please enter your login and password
> > Login id:
> > root
> > Password:
> > ******
> > Welcome root. HELP for a list of commands
> > adduser test test
> > Exception: null
> > Connection closed by foreign host.
> >
> >
> > ==== Log Extract ====
> >
> > 22/10/02 19:30:18 INFO  remotemanager: Login for root successful
> > 22/10/02 19:30:27 ERROR remotemanager: Encountered exception in
> handling
> > the
> > remote manager connection.
> > java.lang.NullPointerException
> >         at
> >
> org.apache.james.remotemanager.RemoteManagerHandler.doADDUSER(RemoteMana
> ge
> > rH
> > andler.java:447)
> >         at
> >
> org.apache.james.remotemanager.RemoteManagerHandler.parseCommand(RemoteM
> an
> > ag
> > erHandler.java:390)
> >         at
> >
> org.apache.james.remotemanager.RemoteManagerHandler.handleConnection(Rem
> ot
> > eM
> > anagerHandler.java:321)
> >         at
> >
> org.apache.james.util.connection.ServerConnection$ClientConnectionRunner
> .r
> > un
> > (ServerConnection.java:364)
> >         at
> >
> org.apache.avalon.excalibur.thread.impl.ExecutableRunnable.execute(Execu
> ta
> > bl
> > eRunnable.java:47)
> >         at
> >
> org.apache.avalon.excalibur.thread.impl.WorkerThread.run(WorkerThread.ja
> va
> > :8
> > 0)
> > 22/10/02 19:30:27 INFO  remotemanager: Logout for root.
> >
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:   <mailto:james-dev-
> > [EMAIL PROTECTED]>
> > For additional commands, e-mail: <mailto:james-dev-
> > [EMAIL PROTECTED]>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:james-dev-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
<mailto:james-dev-help@;jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:james-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:james-dev-help@;jakarta.apache.org>

Reply via email to