activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From neosmrt <>
Subject strange error when consume message from queue/topic.
Date Mon, 10 Feb 2014 09:59:41 GMT
Need help for a strange issue I am facing when try to consume a message in
ActiveMQ. I pushed a message in a queue. Then I created an application which
acts as consumer of a message. In AciveMQ Web console I can see 1 message is
Enqueued and in Pending Messages column. Then When I call consumer.Recieve()
an error is thrown.

*Not a valid Win32 FileTime.\r\nParameter name: fileTime*

The same thing is happening if I use a topic instead of a queue. Here's the
code which I wrote.

                Uri connecturi = new Uri(brokerUri);

                IConnectionFactory factory = new

                using (IConnection connection = factory.CreateConnection())
                    using (ISession session = connection.CreateSession())
                        // Create a consumer
                        using (IMessageConsumer consumer =
session.CreateConsumer(SessionUtil.GetDestination(session, name,
                            // Consume a message
                            var message = consumer.Receive() as
                            if (message == null)
                                Console.WriteLine("No message received!");
                                Console.WriteLine("Received message with ID:  
" + message.NMSMessageId);
            catch (Exception ex) 
            { }

Thanks for your help in advance. Please reply if you need more info.

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message