I am having the same problem here using the demo/test code.
   // START SNIPPET: demo
     IConnectionFactory factory = new ConnectionFactory(new
Uri("tcp://localhost:61616"));
     using (IConnection connection = factory.CreateConnection())
     {
           Console.WriteLine("Created a connection!");
                  
           ISession session = connection.CreateSession();             //<---
hangs here.

I tracked it down to the ResponseCorrelator

        public override Response Request(Command command)
        {
            FutureResponse future = AsyncRequest(command);  // <-- this
returns a null in the response (probably as per the unmarshalling problem
David mentioned.
            Response response = future.Response;                    // <--
and so this blocks indefinately



I am currently using NMS C# client revision 492630. Windows XP SP2. The same
issue occurs on Release 4.1.0, and the following SNAPSHOTS that I've tried
apache-activemq-4.1-incubator-20070103.004543-24,
apache-activemq-4.2-incubator-20061204.023752-14

The code doesnt really crash, so there is no stack trace for the issue,
however I do have some 'System.NullReferenceException' messages in my
output. Here is how it looks:

'activemq-test.vshost.exe' (Managed): Loaded
'D:\activemq-dotnet\bin\Debug\activemq-test.exe', Symbols loaded.
'activemq-test.vshost.exe' (Managed): Loaded
'D:\activemq-dotnet\bin\Debug\nms.dll', Symbols loaded.
'activemq-test.vshost.exe' (Managed): Loaded
'D:\activemq-dotnet\bin\Debug\activemq.dll', Symbols loaded.
'activemq-test.vshost.exe' (Managed): Loaded
'C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll',
Skipped loading symbols. Module is optimized and the debugger option 'Just
My Code' is enabled.
A first chance exception of type 'System.NullReferenceException' occurred in
activemq.dll
A first chance exception of type 'System.NullReferenceException' occurred in
activemq.dll
A first chance exception of type 'System.NullReferenceException' occurred in
activemq.dll
A first chance exception of type 'System.NullReferenceException' occurred in
activemq.dll


Here is my ActiveMQ broker output:
ACTIVEMQ_HOME: D:\apache-activemq-4.1.0-incubator\bin\..
Loading message broker from: xbean:activemq.xml
INFO  BrokerService                  - ActiveMQ 4.1.0-incubator JMS Message
Broker (localhost) is starting
INFO  BrokerService                  - For help or more information please
see: http://incubator.apache.org/activemq/
INFO  ManagementContext              - JMX consoles can connect to
service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
INFO  JDBCPersistenceAdapter         - Database driver recognized:
[apache_derby_embedded_jdbc_driver]
INFO  DefaultDatabaseLocker          - Attempting to acquire the exclusive
lock to become the Master broker
INFO  DefaultDatabaseLocker          - Becoming the master on dataSource:
[EMAIL PROTECTED]
d0
INFO  TransportServerThreadSupport   - Listening for connections at:
tcp://tech2:61616
INFO  TransportConnector             - Connector openwire Started
INFO  BrokerService                  - ActiveMQ JMS Message Broker
(localhost, ID:tech2-1497-1167935001787-1:0) started


As per David's suggestion 4.0.2 worked. It did produce the following two
messages in the output:
A first chance exception of type 'System.IO.IOException' occurred in
System.dll
A first chance exception of type 'System.NullReferenceException' occurred in
activemq.dll






-- 
View this message in context: 
http://www.nabble.com/NMS-and-4.1.0-problems-tf2787347.html#a8164763
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to