You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by RPT <co...@internode.on.net> on 2006/01/06 02:15:00 UTC

Null pointer exception processing Outlook Read Receipts

Hi, 
	wondering if someone can shed some light on this.  Ive been running
james for a while now, and everythings been fine.  But I've now noted that
when Microsoft Outlook generates a requested 'read receipt' it causes a null
pointer exception in james, and as this reciept is never successfully
processed by james the clients outlook program continually then reports an
error sending.  Anyone come across this before, have a simple fix.  My james
installation is very plain vanilla.  I have included the smtp log below (for
privacy ive blanked out the addresses in the log using <address hidden>).

Any assistance greatly appreciated

Cosmic

-------------------
Robert Peter Taylor
 

06/01/06 10:56:57 DEBUG smtpserver: Retrieving a
org.apache.james.smtpserver.SMTPHandler from the pool
06/01/06 10:56:57 DEBUG smtpserver: Getting SMTPHandler from pool.
06/01/06 10:56:57 INFO smtpserver: Connection from 192.168.1.1 (192.168.1.1)
06/01/06 10:56:57 DEBUG smtpserver: Sent: 220 <address hidden> SMTP Server
(JAMES SMTP Server 2.2.0) ready Fri, 6 Jan 2006 10:56:57 +1000 (GMT+10:00)
06/01/06 10:56:57 DEBUG smtpserver: Calling start()
06/01/06 10:56:57 DEBUG smtpserver: Watchdog default Worker #11 has time to
sleep 990000
06/01/06 10:56:57 DEBUG smtpserver: Command received: EHLO cosmicsbox
06/01/06 10:56:57 DEBUG smtpserver: Sent: 250-SIZE 41943040
06/01/06 10:56:57 DEBUG smtpserver: Sent: 250-<address hidden> Hello
cosmicsbox (192.168.1.1 [192.168.1.1])
06/01/06 10:56:57 DEBUG smtpserver: Sent: 250-AUTH LOGIN PLAIN
06/01/06 10:56:57 DEBUG smtpserver: Sent: 250 AUTH=LOGIN PLAIN
06/01/06 10:56:57 DEBUG smtpserver: Calling reset() default Worker #11
06/01/06 10:56:57 DEBUG smtpserver: Command received: AUTH LOGIN
06/01/06 10:56:57 DEBUG smtpserver: Sent: 334 VXNlcm5hbWU6
06/01/06 10:56:57 DEBUG smtpserver: Sent: 334 UGFzc3dvcmQ6
06/01/06 10:56:57 DEBUG smtpserver: AUTH method LOGIN succeeded
06/01/06 10:56:57 DEBUG smtpserver: Sent: 235 Authentication Successful
06/01/06 10:56:57 DEBUG smtpserver: Calling reset() default Worker #11
06/01/06 10:56:57 DEBUG smtpserver: Command received: MAIL FROM: <>
06/01/06 10:56:57 DEBUG smtpserver: Sent: 250 Sender <> OK
06/01/06 10:56:57 DEBUG smtpserver: Calling reset() default Worker #11
06/01/06 10:56:57 DEBUG smtpserver: Command received: RCPT TO:
<test@<address hidden>>
06/01/06 10:56:57 ERROR smtpserver: Exception opening socket: null
java.lang.NullPointerException
	at
org.apache.james.smtpserver.SMTPHandler.doRCPT(SMTPHandler.java:1176)
	at
org.apache.james.smtpserver.SMTPHandler.parseCommand(SMTPHandler.java:583)
	at
org.apache.james.smtpserver.SMTPHandler.handleConnection(SMTPHandler.java:35
8)
	at
org.apache.james.util.connection.ServerConnection$ClientConnectionRunner.run
(ServerConnection.java:417)
	at
org.apache.james.util.thread.ExecutableRunnable.execute(ExecutableRunnable.j
ava:55)
	at
org.apache.james.util.thread.WorkerThread.run(WorkerThread.java:90)
06/01/06 10:56:57 DEBUG smtpserver: Calling disposeWatchdog() default Worker
#11
06/01/06 10:56:57 DEBUG smtpserver: Returning SMTPHandler to pool.
06/01/06 10:56:57 DEBUG smtpserver: Returning a
org.apache.james.smtpserver.SMTPHandler to the pool
06/01/06 10:56:57 DEBUG smtpserver: Watchdog default Worker #11 is exiting
run().

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.14/222 - Release Date: 05-01-2006
 


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Null pointer exception processing Outlook Read Receipts

Posted by Stefano Bagnara <ap...@bago.org>.
RPT wrote:
> Am running ...
> 
> James - 2.2.0 (as I said 'plain vanilla' i.e. no special configurations,
> matchers, alterations etc)
> J2se Runtime Environment 5.0 Update 3
> Windows XP SP2
> 
> Thanks for any assistance.


The problem here is that James when you use the AUTH checks that the
username equals the senderAddress.
You are authenticating with a specified user but your sender address is
empty.

This is a bug in James but If we remove the NPE bug you will get the
"502 Incorrect Authentication for Specified Email Address".

if ((!authUser.equals(senderAddress.getUser())) ||

(!theConfigData.getMailServer().isLocalServer(senderAddress.getHost()))) {
    responseString = "503 Incorrect Authentication for Specified Email
Address";
    writeLoggedFlushedResponse(responseString);
    if (getLogger().isErrorEnabled()) {
        StringBuffer errorBuffer =
            new StringBuffer(128)
                .append("User ")
                .append(authUser)
                .append(" authenticated, however tried sending email as ")
                .append(senderAddress);
        getLogger().error(errorBuffer.toString());
    }
    return;
}

Stefano

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


RE: Null pointer exception processing Outlook Read Receipts

Posted by RPT <co...@internode.on.net>.
Am running ...

James - 2.2.0 (as I said 'plain vanilla' i.e. no special configurations,
matchers, alterations etc)
J2se Runtime Environment 5.0 Update 3
Windows XP SP2

Thanks for any assistance.

Cosmic
-------------------
Robert Peter Taylor

-----Original Message-----
From: Stefano Bagnara [HYPERLINK
"mailto:apache@bago.org"mailto:apache@bago.org]
Sent: Saturday, 7 January 2006 12:07 PM
To: James Users List
Subject: Re: Null pointer exception processing Outlook Read Receipts

RPT wrote:
> Hi,
>       wondering if someone can shed some light on this.  Ive been running
> james for a while now, and everythings been fine.  But I've now noted
> that when Microsoft Outlook generates a requested 'read receipt' it
> causes a null pointer exception in james, and as this reciept is never
> successfully processed by james the clients outlook program
> continually then reports an error sending.  Anyone come across this
> before, have a simple fix.  My james installation is very plain
> vanilla.  I have included the smtp log below (for privacy ive blanked out
the addresses in the log using <address hidden>).
>
> Any assistance greatly appreciated


What version of james are you running?
Java VM?
OS?
Special James configurations?

Stefano

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.15/223 - Release Date: 06-01-2006






-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.15/223 - Release Date: 06-01-2006
 

Re: Null pointer exception processing Outlook Read Receipts

Posted by Stefano Bagnara <ap...@bago.org>.
RPT wrote:
> Hi, 
> 	wondering if someone can shed some light on this.  Ive been running
> james for a while now, and everythings been fine.  But I've now noted that
> when Microsoft Outlook generates a requested 'read receipt' it causes a null
> pointer exception in james, and as this reciept is never successfully
> processed by james the clients outlook program continually then reports an
> error sending.  Anyone come across this before, have a simple fix.  My james
> installation is very plain vanilla.  I have included the smtp log below (for
> privacy ive blanked out the addresses in the log using <address hidden>).
> 
> Any assistance greatly appreciated


What version of james are you running?
Java VM?
OS?
Special James configurations?

Stefano

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


RE: Null pointer exception processing Outlook Read Receipts

Posted by RPT <co...@internode.on.net>.
Thanks for the heads up that it might be an outlook issue Jason.
I did a bit of hunting around and found this in a forum reply 
about someone having similar problems.

   "The problem is that the server you're talking to violates
    Internet mail standards by rejecting a blank address ("<>").
    Such a sender address is *required* by Internet mail 
    standards when sending read-receipts. Complain to your mail
    provider."

Is this true ?  Is this a failure of the current james 
implementation ?  Is there a work around? Any information 
greatly appreciated.


Cosmic
-----------------------------
Robert Peter Taylor




-----Original Message-----------------------------------------------

From: Jason Long [mailto:jason@supernovasoftware.com 
                 <ma...@supernovasoftware.com>]
Sent: Friday, 6 January 2006 3:14 PM
To: 'James Users List'; cosmic@cosmicscosmos.com
Subject: RE: Null pointer exception processing Outlook Read Receipts

I had this problem before. I believe that it is a bug in outlook,
but this does not occur with some other mail servers.  I have not
investigated fully, but SMTP authentication is a common factor in
the times this has happened to me.

Thank you for your time,

Jason Long
CEO and Chief Software Engineer
BS Physics, MS Chemical Engineering
http://www.supernovasoftware.com <http://www.supernovasoftware.com> 



-----Original Message-----------------------------------------------

From: RPT [mailto:cosm1c@internode.on.net 
          <ma...@internode.on.net>]
Sent: Thursday, January 05, 2006 7:15 PM
To: server-user@james.apache.org
Subject: Null pointer exception processing Outlook Read Receipts

Hi,
    wondering if someone can shed some light on this.  Ive 
been running james for a while now, and everythings been fine.
But I've now noted that when Microsoft Outlook generates a 
requested 'read receipt' it causes a null pointer exception in
james, and as this reciept is never successfully processed by 
james the clients outlook program continually then reports an 
error sending.  Anyone come across this before, have a simple fix.
    My james installation is very plain vanilla.  I have included
the smtp log below (for privacy ive blanked out the addresses in
the log using <address hidden>).

Any assistance greatly appreciated

Cosmic

-------------------
Robert Peter Taylor


DEBUG smtpserver: Retrieving a org.apache.james.smtpserver.SMTPHandler from
the pool
DEBUG smtpserver: Getting SMTPHandler from pool.
 INFO smtpserver: Connection from 192.168.1.1 (192.168.1.1)
DEBUG smtpserver: Sent: 220 <address hidden> SMTP Server (JAMES SMTP Server
2.2.0) ready Fri, 6 Jan 2006 10:56:57 +1000 (GMT+10:00)
DEBUG smtpserver: Calling start()
DEBUG smtpserver: Watchdog default Worker #11 has time to sleep 990000
DEBUG smtpserver: Command received: EHLO cosmicsbox
DEBUG smtpserver: Sent: 250-SIZE 41943040
DEBUG smtpserver: Sent: 250-<address hidden> Hello cosmicsbox (192.168.1.1
[192.168.1.1])
DEBUG smtpserver: Sent: 250-AUTH LOGIN PLAIN
DEBUG smtpserver: Sent: 250 AUTH=LOGIN PLAIN
DEBUG smtpserver: Calling reset() default Worker #11
DEBUG smtpserver: Command received: AUTH LOGIN
DEBUG smtpserver: Sent: 334 VXNlcm5hbWU6
DEBUG smtpserver: Sent: 334 UGFzc3dvcmQ6
DEBUG smtpserver: AUTH method LOGIN succeeded
DEBUG smtpserver: Sent: 235 Authentication Successful
DEBUG smtpserver: Calling reset() default Worker #11
DEBUG smtpserver: Command received: MAIL FROM: <>
DEBUG smtpserver: Sent: 250 Sender <> OK
DEBUG smtpserver: Calling reset() default Worker #11
DEBUG smtpserver: Command received: RCPT TO: <test@<address hidden>> 
ERROR smtpserver: Exception opening socket: null
java.lang.NullPointerException 
  at org.apache.james.smtpserver.SMTPHandler.doRCPT(SMTPHandler.java:1176)
 
at org.apache.james.smtpserver.SMTPHandler.parseCommand(SMTPHandler.java:583
)
 
at org.apache.james.smtpserver.SMTPHandler.handleConnection(SMTPHandler.java
:358)
 
at org.apache.james.util.connection.ServerConnection$ClientConnectionRunner.
run(ServerConnection.java:417)
 
at org.apache.james.util.thread.ExecutableRunnable.execute(ExecutableRunnabl
e.java:55)
  at org.apache.james.util.thread.WorkerThread.run(WorkerThread.java:90)
DEBUG smtpserver: Calling disposeWatchdog() default Worker #11
DEBUG smtpserver: Returning SMTPHandler to pool.
DEBUG smtpserver: Returning a org.apache.james.smtpserver.SMTPHandler to the
pool
DEBUG smtpserver: Watchdog default Worker #11 is exiting run().





-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.14/222 - Release Date: 05-01-2006
 


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


RE: Null pointer exception processing Outlook Read Receipts

Posted by Jason Long <ja...@supernovasoftware.com>.
I had this problem before. I believe that it is a bug in outlook, but this
does not occur with some other mail servers.  I have not investigated fully,
but SMTP authentication is a common factor in the times this has happened to
me. 

Thank you for your time, 

Jason Long
CEO and Chief Software Engineer
BS Physics, MS Chemical Engineering
http://www.supernovasoftware.com 

-----Original Message-----
From: RPT [mailto:cosm1c@internode.on.net] 
Sent: Thursday, January 05, 2006 7:15 PM
To: server-user@james.apache.org
Subject: Null pointer exception processing Outlook Read Receipts

Hi, 
	wondering if someone can shed some light on this.  Ive been running
james for a while now, and everythings been fine.  But I've now noted that
when Microsoft Outlook generates a requested 'read receipt' it causes a null
pointer exception in james, and as this reciept is never successfully
processed by james the clients outlook program continually then reports an
error sending.  Anyone come across this before, have a simple fix.  My james
installation is very plain vanilla.  I have included the smtp log below (for
privacy ive blanked out the addresses in the log using <address hidden>).

Any assistance greatly appreciated

Cosmic

-------------------
Robert Peter Taylor
 

06/01/06 10:56:57 DEBUG smtpserver: Retrieving a
org.apache.james.smtpserver.SMTPHandler from the pool
06/01/06 10:56:57 DEBUG smtpserver: Getting SMTPHandler from pool.
06/01/06 10:56:57 INFO smtpserver: Connection from 192.168.1.1 (192.168.1.1)
06/01/06 10:56:57 DEBUG smtpserver: Sent: 220 <address hidden> SMTP Server
(JAMES SMTP Server 2.2.0) ready Fri, 6 Jan 2006 10:56:57 +1000 (GMT+10:00)
06/01/06 10:56:57 DEBUG smtpserver: Calling start()
06/01/06 10:56:57 DEBUG smtpserver: Watchdog default Worker #11 has time to
sleep 990000
06/01/06 10:56:57 DEBUG smtpserver: Command received: EHLO cosmicsbox
06/01/06 10:56:57 DEBUG smtpserver: Sent: 250-SIZE 41943040
06/01/06 10:56:57 DEBUG smtpserver: Sent: 250-<address hidden> Hello
cosmicsbox (192.168.1.1 [192.168.1.1])
06/01/06 10:56:57 DEBUG smtpserver: Sent: 250-AUTH LOGIN PLAIN
06/01/06 10:56:57 DEBUG smtpserver: Sent: 250 AUTH=LOGIN PLAIN
06/01/06 10:56:57 DEBUG smtpserver: Calling reset() default Worker #11
06/01/06 10:56:57 DEBUG smtpserver: Command received: AUTH LOGIN
06/01/06 10:56:57 DEBUG smtpserver: Sent: 334 VXNlcm5hbWU6
06/01/06 10:56:57 DEBUG smtpserver: Sent: 334 UGFzc3dvcmQ6
06/01/06 10:56:57 DEBUG smtpserver: AUTH method LOGIN succeeded
06/01/06 10:56:57 DEBUG smtpserver: Sent: 235 Authentication Successful
06/01/06 10:56:57 DEBUG smtpserver: Calling reset() default Worker #11
06/01/06 10:56:57 DEBUG smtpserver: Command received: MAIL FROM: <>
06/01/06 10:56:57 DEBUG smtpserver: Sent: 250 Sender <> OK
06/01/06 10:56:57 DEBUG smtpserver: Calling reset() default Worker #11
06/01/06 10:56:57 DEBUG smtpserver: Command received: RCPT TO:
<test@<address hidden>>
06/01/06 10:56:57 ERROR smtpserver: Exception opening socket: null
java.lang.NullPointerException
	at
org.apache.james.smtpserver.SMTPHandler.doRCPT(SMTPHandler.java:1176)
	at
org.apache.james.smtpserver.SMTPHandler.parseCommand(SMTPHandler.java:583)
	at
org.apache.james.smtpserver.SMTPHandler.handleConnection(SMTPHandler.java:35
8)
	at
org.apache.james.util.connection.ServerConnection$ClientConnectionRunner.run
(ServerConnection.java:417)
	at
org.apache.james.util.thread.ExecutableRunnable.execute(ExecutableRunnable.j
ava:55)
	at
org.apache.james.util.thread.WorkerThread.run(WorkerThread.java:90)
06/01/06 10:56:57 DEBUG smtpserver: Calling disposeWatchdog() default Worker
#11
06/01/06 10:56:57 DEBUG smtpserver: Returning SMTPHandler to pool.
06/01/06 10:56:57 DEBUG smtpserver: Returning a
org.apache.james.smtpserver.SMTPHandler to the pool
06/01/06 10:56:57 DEBUG smtpserver: Watchdog default Worker #11 is exiting
run().

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.14/222 - Release Date: 05-01-2006
 


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org