Hi Serge, I have applied your patch to my server and am still faced with the same issue: servernames variable is null as it still throws a NullPointerException at line 434 of RemoteDelivery.java. Can you please ascertain what's causing the MailetContext object to retrieve a null servername attribute when at James run-time it was setting it correctly into the MailetContext environment?
Thanks, sam. >From: Serge Knystautas <[EMAIL PROTECTED]> >Reply-To: "James Users List" <[EMAIL PROTECTED]> >To: James Users List <[EMAIL PROTECTED]> >Subject: Re: Problem with sending a mail message to a remote mail server >Date: Thu, 18 Apr 2002 09:35:28 -0400 > >Sam, > >I've just committed my change. I'm still going through some testing, >but I'm pretty sure it should work now. >-- >Serge Knystautas >Loki Technologies - Unstoppable Websites >http://www.lokitech.com/ > >Samuel Sadek wrote: >>Serge, >> >>Thanks for the acknowledgement. Can you please send out a note when this >>fix is checked-in to CVS repository? >> >>I'd be very grateful. >> >>Thanks in advance. >> >>sam. >> >> >>>From: Serge Knystautas <[EMAIL PROTECTED]> >>>Reply-To: "James Users List" <[EMAIL PROTECTED]> >>>To: James Users List <[EMAIL PROTECTED]> >>>Subject: Re: Problem with sending a mail message to a remote mail server >>>Date: Wed, 17 Apr 2002 22:44:33 -0400 >>> >>>Yes, this is a bug I just introduced and should be fixed (if not >>>already, by tomorrow morning). I have it looking for that Collection in >>>the mailet context attributes, but I forgot to commit James.java to have >>>it store that Collection in the attributes as well. >>>-- >>>Serge Knystautas >>>Loki Technologies - Unstoppable Websites >>>http://www.lokitech.com/ >>> >>>Samuel Sadek wrote: >>> >>>>It appears that the mailetconfig fails to retrieve the >>>>Constants.SERVER_NAMES attribute from the current mail session object. I >>>>have traced this problem with the following culprit line within the >>>>RemoteDelivery.deliver method: >>>> >>>>Collection servernames = (Collection) >>>>getMailetContext().getAttribute(Constants.SERVER_NAMES); >>>> >>>>I have configured James server to be 'secemail.dnsalias.com' with >>>>autodetect option set to false as shown in the following config portion: >>>> >>>><servernames autodetect="FALSE"> >>>> <servername>secemail.dnsalias.com</servername> >>>></servernames> >>>> >>>>And I know that at James start-up it refers to the mentioned host >>>>servername as it's shown in the James.log file as follows: >>>> >>>>1019084630921 [INFO ] (James): JAMES init... >>>>1019084630921 [DEBUG ] (James): Using MailStore: >>>>org.apache.james.core.AvalonMailStore@c62c8 >>>>1019084630921 [DEBUG ] (James): Using UsersStore: >>>>org.apache.james.core.AvalonUsersStore@2940b3 >>>>1019084630921 [INFO ] (James): Local host is: orange >>>>1019084630921 [INFO ] (James): Handling mail for: >>>>secemail.dnsalias.com >>>>1019084630937 [INFO ] (James): Local users repository opened >>>>1019084630937 [INFO ] (James): Private Repository LocalInbox opened >>>>1019084630937 [DEBUG ] (James): Got spool >>>>1019084630937 [INFO ] (James): JAMES ...init end >>>> >>>>Could anyone please provide any feedback? >>>> >>>>Much obliged. >>>> >>>>Sam. >>>> >>>> >>>>>From: "Danny Angus" <[EMAIL PROTECTED]> >>>>>Reply-To: "James Users List" <[EMAIL PROTECTED]> >>>>>To: "James Users List" <[EMAIL PROTECTED]> >>>>>Subject: RE: Problem with sending a mail message to a remote mail >>>>>server >>>>>Date: Wed, 17 Apr 2002 14:45:11 +0100 >>>>> >>>>>We've seen people have problems connecting to hotmail before, I expect >>>>>it is >>>>>probably because the service is busy or some other network related >>>>>issue, >>>>>rather than a mail related one, but I don't really know. >>>>>The real test would be whether you fail to connect to every service >>>>>you try >>>>>or only hotmail. >>>>> >>>>>One possibility is that hotmail demands a HELO or EHLO before it will >>>>>accept >>>>>a MAIL FROM command. >>>>>As we use java mail for sending I wouldn't know whether this is being >>>>>complied with or not. >>>>> >>>>>Again the test would be whether James can never connect to hotmail, or >>>>>only >>>>>occasionaly. >>>>> >>>>>d. >>>>> >>>>> >>>>> > -----Original Message----- >>>>> > From: Samuel Sadek [mailto:[EMAIL PROTECTED]] >>>>> > Sent: 17 April 2002 14:22 >>>>> > To: [EMAIL PROTECTED] >>>>> > Subject: RE: Problem with sending a mail message to a remote mail >>>>>server >>>>> > >>>>> > >>>>> > Thanks for the reply Dan. >>>>> > >>>>> > Can you possibly explain why the JAMES server has failed to >>>>>connect to >>>>> > Hotmail.com's smtp server via port 25? Bearing in mind that I'm >>>>> > using IMAP >>>>> > server to achieve this and the fact that I'm using the latest >>>>> > version of the >>>>> > RemoteDelivery mailet... >>>>> > >>>>> > I'd appreciate any thoughts you may have on this matter. >>>>> > >>>>> > Sam. >>>>> > >>>>> > >From: "Danny Angus" <[EMAIL PROTECTED]> >>>>> > >Reply-To: "James Users List" <[EMAIL PROTECTED]> >>>>> > >To: "James User List" <[EMAIL PROTECTED]> >>>>> > >Subject: RE: Problem with sending a mail message to a remote mail >>>>>server >>>>> > >Date: Wed, 17 Apr 2002 14:13:18 +0100 >>>>> > > >>>>> > >Sam, >>>>> > >reading this last entry in your log extract... >>>>> > > >>>>> > > > 1018997266562 [INFO ] (James.Mailet): RemoteDelivery: >>>>> > Storing message >>>>> > > > Mail1018997243718-0-!21833932-to-hotmail.com into outgoing >>>>>after 0 >>>>> > >retries >>>>> > > > >>>>> > > > Why hasn't it attempted to resend the message? Isn't there any >>>>> > >reattempts >>>>> > > > allowed or configured within James to achieve this? >>>>> > > >>>>> > > >>>>> > >... makes me wonder what the problem is, this (I think) >>>>> > indicates that the >>>>> > >mail has been pushed back into the spool. >>>>> > >James will attempt to send it the first time it processes the spool >>>>>after >>>>> > >the wait between retries interval has elapsed. >>>>> > > >>>>> > >d. > > >-- >To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> > _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
