I am facing weird issue with Neuron. When I try to publish(multicast) a message with RabbitMQ as transport, I am getting "Object reference null" error. But When I tried same code from the machine where Neuron is installed, Its working fine.
I am getting following exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at Neuron.Esb.Channels.Amqp.AmqpChannel.Send(ESBMessage message)
at Neuron.Esb.Channels.ESBChannelManager.SendMessage(ESBMessage message)
at Neuron.Esb.Channels.ESBChannelManager.PublishInternal(ESBMessage message)
at Neuron.Esb.Channels.ESBChannelManager.Publish(ESBMessage message)
at Neuron.Esb.Channels.ESBTopicContext.Publish(ESBMessage message)
at Neuron.Esb.Party.SendMessage(ESBMessage message, Boolean duplicateMessage)
at Neuron.Esb.Party.SendMessage(ESBMessage message, SendOptions options, String targetId, String action, String schema)
at Neuron.Esb.Party.Send(String topic, Object obj, SendOptions options, String targetId, DateTime expires, String action, String schema)
at Neuron.Esb.Party.Send(String topic, Object obj, SendOptions options, String targetId, DateTime expires, String schema)
at Neuron.Esb.Party.Send(String topic, Object obj, SendOptions options, String targetId)
at Neuron.Esb.Party.Send(String topic, Object obj, SendOptions options)
at Neudesic.EnterpriseServiceBus.Samples.Sender.Main(String[] args) in
Tags:
Can you tell us what build of Neuron ESB you are running?
Also, you post suggests you are using the client API to publish a message from a remote machine. Is that true? if so, can you provide us the list of our assemblies that you have deployed to the remote machine?
Yes, I am trying to publish from some other machine which is in same domain. When I try to publish from machine where once I installed trial version but now its expired. This machine is also different than actual Neuron dev machine. But on the other machine (where expired trial version was there), its working fine.
Neuron 3.1.0.238
Neuron Assembly: 3.0.0.0
Dlls:
log4net.dll
Neuron.CommandLine
Neuron.DiscoveryService.Contracts
Neuron
Neuron.Esb
Neuron.Esb.JavaScript
Neuron.Esb.Library.Helper
Neuron.Esb.Pipelines.Design
Neuron.Esb.Pipelines.JavaScript
Neuron.Esb.XmlSerializers
Neuron.Pipelines.Design
Neuron.Pipelines
Neuron.Scripting.Design
Neuron.Scripting
RabbitMQ.Client
Generally we get first reply very fast, but after that there is no response. :)
Finally, I found the reason and resolved it.
Here are the steps so that other may get help:
1. In my event viewer, I was seeing following error: "There was an error connecting to "amqp-0-9://localhost:5672" for the RabbitMQ channel for topic "AruWorkflows": Connection failed"
2. It was trying to connect to localhost while I do not have rabbitmq on my local machine.
3. This error was coming because Neuron and RabbitMq are on same dev machine and in Neuron, rabbitmq was configured with server name "localhost". I changed "localhost" in Neuron server to IP of dev machine and it started working fine.
4. Looks like there is some issue with Neuron code, It should not try to connect to RabbitMq directly from client. Publisher/client is communicating with Neuron and Neuron should communicate with RabbitMq.
Neuron ESB Product Support Forums and Communities
© 2024 Created by Neuron Admin. Powered by