[GH-ISSUE #7] 1.6 crash #5

Closed
opened 2026-02-27 15:44:55 +03:00 by kerem · 8 comments
Owner

Originally created by @damien-giry on GitHub (Mar 11, 2014).
Original GitHub issue: https://github.com/Pro/exchange-catchall/issues/7

With version 1.6 the transport agent crash with these messages:

An exception was thrown while processing data from client IP address 2002:4d49:677a::4d49:677a. The exception is System.NullReferenceException: Object reference not set to an instance of an object. at Exchange.CatchAll.CatchAllAgent.RcptToHandler(ReceiveCommandEventSource source, RcptCommandEventArgs rcptArgs) at Microsoft.Exchange.Data.Transport.Smtp.SmtpReceiveAgent.Invoke(String eventTopic, Object source, Object e) at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.Dispatcher.Invoke(MExSession session) at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.MExSession.Invoke() at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.MExSession.AsyncInvoke(Object state) at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.MExSession.BeginInvoke(String topic, Object source, Object e, AsyncCallback callback, Object callbackState) at Microsoft.Exchange.Protocols.Smtp.SmtpCommand.BeginRaiseEvent(AsyncCallback callback, Object state) at Microsoft.Exchange.Protocols.Smtp.SmtpInSession.StartProcessingCommand(Byte[] inputBuffer, Int32 offset, Int32 size, Boolean overflow) at Microsoft.Exchange.Protocols.Smtp.SmtpInSession.ReadLineComplete(IAsyncResult asyncResult).

An exception was thrown while processing data from client IP address 2002:4d49:677a::4d49:677a. The exception is System.NullReferenceException: Object reference not set to an instance of an object. at Exchange.CatchAll.CatchAllAgent.RcptToHandler(ReceiveCommandEventSource source, RcptCommandEventArgs rcptArgs) at Microsoft.Exchange.Data.Transport.Smtp.SmtpReceiveAgent.Invoke(String eventTopic, Object source, Object e) at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.Dispatcher.Invoke(MExSession session) at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.MExSession.Invoke() at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.MExSession.AsyncInvoke(Object state) at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.MExSession.BeginInvoke(String topic, Object source, Object e, AsyncCallback callback, Object callbackState) at Microsoft.Exchange.Protocols.Smtp.SmtpCommand.BeginRaiseEvent(AsyncCallback callback, Object state) at Microsoft.Exchange.Protocols.Smtp.SmtpInSession.StartProcessingCommand(Byte[] inputBuffer, Int32 offset, Int32 size, Boolean overflow) at Microsoft.Exchange.Protocols.Smtp.SmtpInSession.ReadLineComplete(IAsyncResult asyncResult) at Microsoft.Exchange.Net.LazyAsyncResult.WorkerThreadComplete(Object state) at Microsoft.Exchange.Net.LazyAsyncResult.Complete(IntPtr userToken) at Microsoft.Exchange.Net.LazyAsyncResult.ProtectedInvokeCallback(Object value, IntPtr userToken) at Microsoft.Exchange.Net.NetworkConnection.BeginReadLine(AsyncCallback callback, Object state) at Microsoft.Exchange.Protocols.Smtp.SmtpInSession.ReadLineComplete(IAsyncResult asyncResult).

Originally created by @damien-giry on GitHub (Mar 11, 2014). Original GitHub issue: https://github.com/Pro/exchange-catchall/issues/7 With version 1.6 the transport agent crash with these messages: `An exception was thrown while processing data from client IP address 2002:4d49:677a::4d49:677a. The exception is System.NullReferenceException: Object reference not set to an instance of an object. at Exchange.CatchAll.CatchAllAgent.RcptToHandler(ReceiveCommandEventSource source, RcptCommandEventArgs rcptArgs) at Microsoft.Exchange.Data.Transport.Smtp.SmtpReceiveAgent.Invoke(String eventTopic, Object source, Object e) at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.Dispatcher.Invoke(MExSession session) at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.MExSession.Invoke() at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.MExSession.AsyncInvoke(Object state) at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.MExSession.BeginInvoke(String topic, Object source, Object e, AsyncCallback callback, Object callbackState) at Microsoft.Exchange.Protocols.Smtp.SmtpCommand.BeginRaiseEvent(AsyncCallback callback, Object state) at Microsoft.Exchange.Protocols.Smtp.SmtpInSession.StartProcessingCommand(Byte[] inputBuffer, Int32 offset, Int32 size, Boolean overflow) at Microsoft.Exchange.Protocols.Smtp.SmtpInSession.ReadLineComplete(IAsyncResult asyncResult).` `An exception was thrown while processing data from client IP address 2002:4d49:677a::4d49:677a. The exception is System.NullReferenceException: Object reference not set to an instance of an object. at Exchange.CatchAll.CatchAllAgent.RcptToHandler(ReceiveCommandEventSource source, RcptCommandEventArgs rcptArgs) at Microsoft.Exchange.Data.Transport.Smtp.SmtpReceiveAgent.Invoke(String eventTopic, Object source, Object e) at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.Dispatcher.Invoke(MExSession session) at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.MExSession.Invoke() at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.MExSession.AsyncInvoke(Object state) at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.MExSession.BeginInvoke(String topic, Object source, Object e, AsyncCallback callback, Object callbackState) at Microsoft.Exchange.Protocols.Smtp.SmtpCommand.BeginRaiseEvent(AsyncCallback callback, Object state) at Microsoft.Exchange.Protocols.Smtp.SmtpInSession.StartProcessingCommand(Byte[] inputBuffer, Int32 offset, Int32 size, Boolean overflow) at Microsoft.Exchange.Protocols.Smtp.SmtpInSession.ReadLineComplete(IAsyncResult asyncResult) at Microsoft.Exchange.Net.LazyAsyncResult.WorkerThreadComplete(Object state) at Microsoft.Exchange.Net.LazyAsyncResult.Complete(IntPtr userToken) at Microsoft.Exchange.Net.LazyAsyncResult.ProtectedInvokeCallback(Object value, IntPtr userToken) at Microsoft.Exchange.Net.NetworkConnection.BeginReadLine(AsyncCallback callback, Object state) at Microsoft.Exchange.Protocols.Smtp.SmtpInSession.ReadLineComplete(IAsyncResult asyncResult).`
kerem 2026-02-27 15:44:55 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@Pro commented on GitHub (Mar 11, 2014):

Damn... this must be related to Exchange 2013. It's working here on 2010 SP3.
I think this is somehow related to #3. Please use 1.6.1.

<!-- gh-comment-id:37271075 --> @Pro commented on GitHub (Mar 11, 2014): Damn... this must be related to Exchange 2013. It's working here on 2010 SP3. I think this is somehow related to #3. Please use 1.6.1.
Author
Owner

@damien-giry commented on GitHub (Mar 11, 2014):

Same problem remains.
An exception was thrown while processing data from client IP address 2002:4d49:677a::4d49:677a. The exception is System.NullReferenceException: Object reference not set to an instance of an object. at Exchange.CatchAll.CatchAllAgent.RcptToHandler(ReceiveCommandEventSource source, RcptCommandEventArgs rcptArgs) at Microsoft.Exchange.Data.Transport.Smtp.SmtpReceiveAgent.Invoke(String eventTopic, Object source, Object e) at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.Dispatcher.Invoke(MExSession session) at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.MExSession.Invoke() at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.MExSession.AsyncInvoke(Object state) at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.MExSession.BeginInvoke(String topic, Object source, Object e, AsyncCallback callback, Object callbackState) at Microsoft.Exchange.Protocols.Smtp.SmtpCommand.BeginRaiseEvent(AsyncCallback callback, Object state) at Microsoft.Exchange.Protocols.Smtp.SmtpInSession.StartProcessingCommand(Byte[] inputBuffer, Int32 offset, Int32 size, Boolean overflow) at Microsoft.Exchange.Protocols.Smtp.SmtpInSession.ReadLineComplete(IAsyncResult asyncResult).
An exception was thrown while processing data from client IP address 2002:4d49:677a::4d49:677a. The exception is System.NullReferenceException: Object reference not set to an instance of an object. at Exchange.CatchAll.CatchAllAgent.RcptToHandler(ReceiveCommandEventSource source, RcptCommandEventArgs rcptArgs) at Microsoft.Exchange.Data.Transport.Smtp.SmtpReceiveAgent.Invoke(String eventTopic, Object source, Object e) at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.Dispatcher.Invoke(MExSession session) at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.MExSession.Invoke() at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.MExSession.AsyncInvoke(Object state) at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.MExSession.BeginInvoke(String topic, Object source, Object e, AsyncCallback callback, Object callbackState) at Microsoft.Exchange.Protocols.Smtp.SmtpCommand.BeginRaiseEvent(AsyncCallback callback, Object state) at Microsoft.Exchange.Protocols.Smtp.SmtpInSession.StartProcessingCommand(Byte[] inputBuffer, Int32 offset, Int32 size, Boolean overflow) at Microsoft.Exchange.Protocols.Smtp.SmtpInSession.ReadLineComplete(IAsyncResult asyncResult) at Microsoft.Exchange.Net.LazyAsyncResult.WorkerThreadComplete(Object state) at Microsoft.Exchange.Net.LazyAsyncResult.Complete(IntPtr userToken) at Microsoft.Exchange.Net.LazyAsyncResult.ProtectedInvokeCallback(Object value, IntPtr userToken) at Microsoft.Exchange.Net.NetworkConnection.BeginReadLine(AsyncCallback callback, Object state) at Microsoft.Exchange.Protocols.Smtp.SmtpInSession.ReadLineComplete(IAsyncResult asyncResult).

<!-- gh-comment-id:37273751 --> @damien-giry commented on GitHub (Mar 11, 2014): Same problem remains. `An exception was thrown while processing data from client IP address 2002:4d49:677a::4d49:677a. The exception is System.NullReferenceException: Object reference not set to an instance of an object. at Exchange.CatchAll.CatchAllAgent.RcptToHandler(ReceiveCommandEventSource source, RcptCommandEventArgs rcptArgs) at Microsoft.Exchange.Data.Transport.Smtp.SmtpReceiveAgent.Invoke(String eventTopic, Object source, Object e) at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.Dispatcher.Invoke(MExSession session) at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.MExSession.Invoke() at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.MExSession.AsyncInvoke(Object state) at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.MExSession.BeginInvoke(String topic, Object source, Object e, AsyncCallback callback, Object callbackState) at Microsoft.Exchange.Protocols.Smtp.SmtpCommand.BeginRaiseEvent(AsyncCallback callback, Object state) at Microsoft.Exchange.Protocols.Smtp.SmtpInSession.StartProcessingCommand(Byte[] inputBuffer, Int32 offset, Int32 size, Boolean overflow) at Microsoft.Exchange.Protocols.Smtp.SmtpInSession.ReadLineComplete(IAsyncResult asyncResult).` `An exception was thrown while processing data from client IP address 2002:4d49:677a::4d49:677a. The exception is System.NullReferenceException: Object reference not set to an instance of an object. at Exchange.CatchAll.CatchAllAgent.RcptToHandler(ReceiveCommandEventSource source, RcptCommandEventArgs rcptArgs) at Microsoft.Exchange.Data.Transport.Smtp.SmtpReceiveAgent.Invoke(String eventTopic, Object source, Object e) at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.Dispatcher.Invoke(MExSession session) at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.MExSession.Invoke() at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.MExSession.AsyncInvoke(Object state) at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.MExSession.BeginInvoke(String topic, Object source, Object e, AsyncCallback callback, Object callbackState) at Microsoft.Exchange.Protocols.Smtp.SmtpCommand.BeginRaiseEvent(AsyncCallback callback, Object state) at Microsoft.Exchange.Protocols.Smtp.SmtpInSession.StartProcessingCommand(Byte[] inputBuffer, Int32 offset, Int32 size, Boolean overflow) at Microsoft.Exchange.Protocols.Smtp.SmtpInSession.ReadLineComplete(IAsyncResult asyncResult) at Microsoft.Exchange.Net.LazyAsyncResult.WorkerThreadComplete(Object state) at Microsoft.Exchange.Net.LazyAsyncResult.Complete(IntPtr userToken) at Microsoft.Exchange.Net.LazyAsyncResult.ProtectedInvokeCallback(Object value, IntPtr userToken) at Microsoft.Exchange.Net.NetworkConnection.BeginReadLine(AsyncCallback callback, Object state) at Microsoft.Exchange.Protocols.Smtp.SmtpInSession.ReadLineComplete(IAsyncResult asyncResult).`
Author
Owner

@Pro commented on GitHub (Mar 11, 2014):

Ok, then please copy the following TWO files to the CatchAll directory. This is the same version as before, but Debug Symbols Enabled so the Exception should be more detailed (for Exchange 2013 SP1):
https://dl.dropboxusercontent.com/u/3233048/ExchangeCatchAll.dll
https://dl.dropboxusercontent.com/u/3233048/ExchangeCatchAll.pdb

<!-- gh-comment-id:37274187 --> @Pro commented on GitHub (Mar 11, 2014): Ok, then please copy the following TWO files to the CatchAll directory. This is the same version as before, but Debug Symbols Enabled so the Exception should be more detailed (for Exchange 2013 SP1): https://dl.dropboxusercontent.com/u/3233048/ExchangeCatchAll.dll https://dl.dropboxusercontent.com/u/3233048/ExchangeCatchAll.pdb
Author
Owner

@Pro commented on GitHub (Mar 11, 2014):

What's the last (Information) Log Entry which you get before the exception?

<!-- gh-comment-id:37274228 --> @Pro commented on GitHub (Mar 11, 2014): What's the last (Information) Log Entry which you get before the exception?
Author
Owner

@damien-giry commented on GitHub (Mar 11, 2014):

I will try this at the end of the day (I revert back to 1.5.3 with your correction at the time).
I will keep you inform.

<!-- gh-comment-id:37274805 --> @damien-giry commented on GitHub (Mar 11, 2014): I will try this at the end of the day (I revert back to 1.5.3 with your correction at the time). I will keep you inform.
Author
Owner

@Pro commented on GitHub (Mar 11, 2014):

Found and fixed the problem in 1.6.2. It was caused if you don't use the database feature.

<!-- gh-comment-id:37276199 --> @Pro commented on GitHub (Mar 11, 2014): Found and fixed the problem in 1.6.2. It was caused if you don't use the database feature.
Author
Owner

@damien-giry commented on GitHub (Mar 11, 2014):

OK
I will test this by the end of the day (and yes, I don't use the database feature...).
Thanks for your very quick answer.

<!-- gh-comment-id:37276940 --> @damien-giry commented on GitHub (Mar 11, 2014): OK I will test this by the end of the day (and yes, I don't use the database feature...). Thanks for your _very_ quick answer.
Author
Owner

@damien-giry commented on GitHub (Mar 12, 2014):

It works :)

<!-- gh-comment-id:37382758 --> @damien-giry commented on GitHub (Mar 12, 2014): It works :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/exchange-catchall#5
No description provided.