----- Original Message -----
From: "craig clow" <[EMAIL PROTECTED]>
> It appears that my Mailet is getting loaded and the service() method is
> called from line 127 of LinearProcessor.service() which appears to be
called
> from line 163 of JamesSpoolManager.process().
>
> You are correct that line 165 is the following:
> if (processorName.equals("error")) {
>
> I assume the null pointer exception is being thrown from the processorName
> variable? This variable gets set at line 157 of
JamesSpoolManager.process():
> String processorName = mail.getState();
>
> Do I need to explicitly set my mail state?
No, I'm not quite sure how your mail state got set to null... that isn't
supposed to be possible. I probably should patch the MailImpl class to
throw an exception if you set the state to null.
> I created my mailet from ToProcessor.java. It is nothing more than
> ToProcessor in a different package and name. Is this not a valid mailet
file
> to copy from?
That's a perfectly fine mailet, and probably one of the easiest around. My
only guess is that somewhere earlier in your processor the state is getting
set to null by mistake. Not really sure what to tell you... I'll patch for
1.2.1 the check that prevents state from being set to null, and that might
help you track things down.
Serge Knystautas
Loki Technologies
http://www.lokitech.com/
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives: <http://www.mail-archive.com/james%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]