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

Chuck Remes cremes.devlist at mac.com
Tue Jan 18 20:37:29 CET 2011

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.


More information about the zeromq-dev mailing list