Serge,

I am using Avalon 2.2-dev and James-1.2 with JDK 1.3.

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?

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?

thanks a lot!
Craig

At 05:48 PM 11/28/00 -0500, you wrote:
>Hmmm... can you include more of the stack trace?  Also, do you know what
>version you are running against?  My copy of the code shows line 165 to be a
>catch statement, so I'm not sure how that could have generated a
>NullPointerException.  Feel free to e-mail me directly if necessary.
>
>Serge Knystautas
>Loki Technologies
>http://www.lokitech.com/
>----- Original Message -----
>From: "craig clow" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Tuesday, November 28, 2000 1:45 PM
>Subject: NullPointerException loading my mailet
>
>
>> I get the following stack trace when I try to load my own GenericMailet
>class.
>> I believe my classpath and <mailetpackage> are correct because I can see
>> that it is calling my init() routine when I start James. Things work fine
>> with the RemoteDelivery class, but when I replace it with mine I get a
>> NullPointerException on all incoming emails that get redirected to my
>mailet
>> match and class.
>>
>> Any suggestions would be greatly appreciated!
>>
>>
>>         at
>org.apache.avalon.utils.recycle.pool.Worker.run(Worker.java:113)
>> java.lang.NullPointerException
>>         at
>org.apache.james.transport.JamesSpoolManager.process(JamesSpoolManage
>> r.java:165)
>>         at
>org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.ja
>> va:141)
>>         at
>org.apache.avalon.utils.recycle.pool.Worker.run(Worker.java:113)
>> java.lang.NullPointerException
>>         at
>>
>
>
>
>
>------------------------------------------------------------
>To subscribe:        [EMAIL PROTECTED]
>To unsubscribe:      [EMAIL PROTECTED]
>Archives:  <http://www.mail-archive.com/james%40list.working-dogs.com/>
>Problems?:           [EMAIL PROTECTED]
>
>



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

Reply via email to