Here is the line 379 from James.java:
---
MailAddress sender = new MailAddress((InternetAddress)message.getFrom()[0]);
---
This means ether your message is null or the sender (from) is not correctly
filled.

Stefano

> -----Messaggio originale-----
> Da: Sundeep Gelli [mailto:[EMAIL PROTECTED] 
> Inviato: martedì 8 novembre 2005 12.21
> A: [email protected]
> Oggetto: Re:Null pointer Exception
> 
> hi,
> thanx for quick response
> i am using james 2.2.0 and im trying to send a reply to the 
> mail through my mailet I am trying  to get mailet context and 
> i used the following line context.getMessage().sendMail(response);
> where conetxt is the mailet context and response is the reply 
> message I am getting the following error 
> java.lang.NullPointerException
>         at org.apache.james.James.sendMail(James.java:379)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at
> org.apache.avalon.phoenix.components.application.BlockInvocationHandl
> er.invoke(BlockInvocationHandler.java:92)
>         at $Proxy9.sendMail(Unknown Source)
>         at 
> com.picmond.test.TestEJBClient.service(TestEJBClient.java:69)
>         at
> org.apache.james.transport.LinearProcessor.service(LinearProcessor.ja
> va:407)
>         at
> org.apache.james.transport.JamesSpoolManager.process(JamesSpoolManage
> r.java:451)
>         at
> org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.ja
> va:360)
>         at java.lang.Thread.run(Thread.java:595)
>                                                               
>                
>                                               sundeep
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to