[zeromq-dev] ZeroMQ Java issues on Mac OSX 10.6.6

Michael Kogan mkogan at semanticresearch.com
Tue Jan 18 21:40:55 CET 2011

Thank you Chuck.
Never occurred to me the unit tests are wrong. Adding .close() calls made the unit tests complete successfully. 

On Jan 18, 2011, at 11:37 AM, Chuck Remes wrote:

> On Jan 18, 2011, at 1:14 PM, Michael Kogan wrote:
>> Hello, 
>> I am new to ZeroMQ, and I am trying to prototype a messaging bus for our Java application. 
>> However, I am encountering an issue with the test classes ZMQQueueTest.java and ZMQForwarderTest.java - they hang.
>> Running the debugger, it seems they hang on finalize() call in Context.term().
>> My configuration is the following:
>> Downloaded, compiled and installed ZeroMQ 2.1.0 - the snapshot from git (although I get  the same result with latest repo).
>> Downloaded the latest https://github.com/zeromq/jzmq 
>> make succeeds, but "mvn test" hangs.
>> Any ideas?
> Yes. You must call zmq_close() on all of your sockets before calling zmq_term() otherwise it hangs indefinitely waiting for the socket to close.
> cr
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

More information about the zeromq-dev mailing list