NServiceBus is throwing ArgumentNullException in UnicastBus.IsInitializationMessage -
I'm a bit confused with one issue on a particular deployment, but not on my build machine. This is a web application that is receiving NSSSBBs events so that a continuous visualization model can be updated. There are events waiting in the upcoming MSMQ services, so the membership is working properly, but the application is not processing them. Sorry for the mass of the text shown below the output I get; The summary is that log UnicastBus.Address indicates nothing at runtime. Maybe some of my configurations are missing.
Here are the logs:
[worker .11] INFO NServiceBus.Unicast.UnicastBus [(empty)] - General. User .WebApp.DevTest initials [10] Information NServiceBus.Unicast.UnicastBus [(empty)] - Subscribe to mango. the user. message. Events. ILUsers published, general the user. Message, Version = 1.0.0.0, Culture = neutral, Sarwajnikki token common .Users.MessageHandlers.DevTest in = null Publisher Q [10] information NServiceBus.Unicast.UnicastBus [(null)] - Common.Users.Messages.Events.IAllUsersPublished Subscribe to, Common.Users.Messages, Version = 1.0.0.0, Culture = Neutral, PublicKeyToken = Not common in publisher queue.Apps.MessageHandlers. Davitite INFO NServiceBus.Unicast.UnicastBus [(empty)] - General.Username.webap Start the Devest. Warning NServiceBus.Unicast.Transport.Msmq.MsmqTransport [(null)] - ID = 537591b0-20e2-4ab9-aabc-b635c3d0e23c received "transport messages to the message with" event \ 3997 System.ArgumentNullException failed in raising: Price Can not be empty Parameter name: System.String.IndexOf (string value NServiceBus.Unicast.UnicastBus.IsInitializationMessage (TransportMessage message) d, STARTINDEX Int32, Int32 count value on StringComparison comparisonType): \ code \ nservicebus-src \ src \ unicast \ NServiceBus .Unicast \ UnicastBus.cs: line 1211 NServiceBus.Unicast.UnicastBus.TransportMessageReceived (object sender, TransportMessageReceivedEventArgs e) less than d: \ code \ nservicebus-src \ src \ unicast \ NServiceBus.Unicast \ UnicastBus.cs: system line 1056 on .EventHandler`1.Invoke (object sender, TEventArgs e) d NServiceBus.Unicast.Transport.Msmq.MsmqTransport.OnTransportMessageReceived (transaction \ sportMessage message): \ code \ nservicebus-src \ src \ Impl \ unicast \ NServiceBus.Unicast .mmcc \ msmctrnsport. CS: Line 400
Repeats this last entry for every message in the queue; Queue messages remain in queue.
So I have checked the source code InitializationMessage; Here is the throwing code:
private boolIsInitializationMessage (TransportMessage msg) {return (msg.ReturnAddress == faucet) return; If (! Msg. Return event included (address)) & lt; & Lt; & Lt; Flock is wrong;
So it seems that Unicastbus.Admission is nothing. Not sure why this will happen; Here are NServiceBus configurations:
& lt; Msnkataransportconfig Inputkueue = "Comnkusserskvebppkdewatest" Numbrovrkerthreads = "1" Mksretrys = "5" Arrorkueue = "Comnkusserskvebppkdewatest .arrors" / & gt; & Lt; UnicastBusConfig & gt; & Lt; MessageEndpointMappings & gt; & Lt; Add message = "normal user.message" endpoint = "general.username.mandhands.devastest" /> & Lt; / MessageEndpointMappings & gt; & Lt; / UnicastBusConfig & gt;
On application_Start I am using the following code to start NServiceBus:
dim bus = NServiceBus.Configure.WithWeb () _ .Log4Net () _ .StructureMapBuilder () _.XmlSerializer () _ .MsmqTransport () _ .UnicastBus (). Loaded with handlers () _ .CreateBus () bus.start ()
I changed the identity That the app of the web app was using the default pool for defaulting service from default pool. The web app reported the same error on the next startup, it started again an hour later and the problem went away and the messages were all processed successfully. I do not know that due to change in identity it has been fixed, or if there is any other change which I do not know about. If it happens again or I learn more, then I will try to post it here.
Comments
Post a Comment