fp7-netide / Engine

App Engine to enable Network App programs to be executed, systematically tested, and refined on a variety of concrete SDN platforms
Eclipse Public License 1.0
10 stars 11 forks source link

LogPub tests fail while core is running #108

Closed schwabe closed 8 years ago

schwabe commented 8 years ago

I often compile/install the core while karaf is running to update the module. Unfortenately the logpub tests fail when doing this

[main] INFO eu.netide.core.logpub.LogPub - LogPub Constructor.
[main] INFO eu.netide.core.logpub.LogPub - LogPub Start().
[LogPub Receive Loop] INFO eu.netide.core.logpub.LogPub - LogPub started.
Exception in thread "LogPub Receive Loop" org.zeromq.ZMQException: Errno 48 : Address already in use
    at org.zeromq.ZMQ$Socket.mayRaise(ZMQ.java:1344)
    at org.zeromq.ZMQ$Socket.bind(ZMQ.java:1116)
    at org.zeromq.ZMQ$Socket.bind(ZMQ.java:1080)
    at eu.netide.core.logpub.LogPub.run(LogPub.java:72)
    at java.lang.Thread.run(Thread.java:745)
Message from backend test```
amarsico commented 8 years ago

Hi @schwabe, I think you can do nothing about it... If you are running Karaf and the Core inside it, the socket will be always in use, since ZMQ is already running.

KevinPhemius commented 8 years ago

Yes @amarsico is right.

KevinPhemius commented 8 years ago

I can add a catch if the address is already in use.