phatboyg/MassTransit — Issue #38: Error on consuming.
Author: whyer
Created: 2011-12-07 21:09:46+00:00
State: open

This application:
* Creates a document
* Creates a document collection
* Shows all documents and collections.
2011-12-07 22:02:22,335 [7] INFO Documently.App.Program [(null)] - installing a
nd setting up components
2011-12-07 22:02:22,747 [7] INFO MassTransit.BusConfigurators.ServiceBusConfigu
ratorImpl [(null)] - MassTransit v2.0.1.0, .NET Framework v4.0.30319.239
Create new Document metadata by pressing a key
2011-12-07 22:02:25,532 [7] INFO MassTransit.Messages [(null)] - SEND:rabbitmq:
//localhost/Documently.Domain.Service:CreateDocumentMetaData:
2011-12-07 22:02:25,563 [15] INFO MassTransit.Messages [(null)] - RECV:rabbitmq
://localhost/Documently.App:Documently.Domain.Events.DocumentMetaDataCreated, Do
cumently.Domain:1
2011-12-07 22:02:25,570 [16] INFO MassTransit.Messages [(null)] - RECV:rabbitmq
://localhost/Documently.App:Documently.Domain.Events.DocumentCollectionCreated,
Documently.Domain:2
2011-12-07 22:02:25,924 [15] ERROR MassTransit.Transports.Endpoint [(null)] - An
exception was thrown by a message consumer
System.ArgumentNullException: Value cannot be null.
Parameter name: key
at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& valu
e)
at MassTransit.Pipeline.Sinks.RequestMessageRouter`2.Enumerate(T context) in
d:\BuildAgent-02\work\8d1373c869590c5b\src\MassTransit\Pipeline\Sinks\RequestMes
sageRouter.cs:line 32
at MassTransit.Pipeline.Sinks.MessageRouter`1.<>c__DisplayClass1.b
__0(IPipelineSink`1 x) in d:\BuildAgent-02\work\8d1373c869590c5b\src\MassTransit
\Pipeline\Sinks\MessageRouter.cs:line 51
at System.Linq.Enumerable.d__14`2.MoveNext()
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Linq.Enumerable.d__14`2.MoveNext()
at MassTransit.Context.ServiceBusReceiveContext.DeliverMessageToConsumers(IRe
ceiveContext context) in d:\BuildAgent-02\work\8d1373c869590c5b\src\MassTransit\
Context\ServiceBusReceiveContext.cs:line 125
at MassTransit.Transports.Endpoint.<>c__DisplayClass6.<>c__DisplayClass8.b__5(IReceiveContext receiveContext) in d:\BuildAgent-02\work\8d1373c869590
c5b\src\MassTransit\Transports\Endpoint.cs:line 151
2011-12-07 22:02:25,951 [15] INFO MassTransit.Messages [(null)] - MOVE:rabbitmq
://localhost/Documently.App:rabbitmq://localhost/Documently.App_error:1
2011-12-07 22:02:30,332 [15] INFO MassTransit.Messages [(null)] - RECV:rabbitmq
://localhost/Documently.App:Documently.Domain.Events.DocumentMetaDataCreated, Do
cumently.Domain:3

Repro code:
https://github.com/whyer/Documently/tree/readModelUpdate

Repro:

1. Start domain service
2. Start Documently.App
3. Go through the stages 1.. and watch it fail with this strange error.

Possible cause:
Inherited Consume.All on another interface...?