Cannot restart openHAB 1.7.1 on Windows (HomeMatic binding error: Address already in use: JVM_Bind)

Hi,

this may be out of place here. If so, I’ll re-post this on Github.

If I shut down openHAB on my Windows Server 2008 R2, the HomeMatic binding can no longer listen on Port 9123 because it doesn’t seem to get released properly:

2015-11-01 14:56:51.214 [INFO ] [b.h.i.c.s.BinRpcCallbackServer] - Starting BinRpcCallbackServer at port 9123
2015-11-01 14:56:51.231 [ERROR] [.b.h.i.c.HomematicCommunicator] - Could not start Homematic communicator: Address already in use: JVM_Bind
java.net.BindException: Address already in use: JVM_Bind
at java.net.DualStackPlainSocketImpl.bind0(Native Method) ~[na:1.8.0_65]
at java.net.DualStackPlainSocketImpl.socketBind(Unknown Source) ~[na:1.8.0_65]
at java.net.AbstractPlainSocketImpl.bind(Unknown Source) ~[na:1.8.0_65]
at java.net.PlainSocketImpl.bind(Unknown Source) ~[na:1.8.0_65]
at java.net.ServerSocket.bind(Unknown Source) ~[na:1.8.0_65]
at java.net.ServerSocket.(Unknown Source) ~[na:1.8.0_65]
at java.net.ServerSocket.(Unknown Source) ~[na:1.8.0_65]
at org.openhab.binding.homematic.internal.communicator.server.BinRpcNetworkService.(BinRpcNetworkService.java:45) ~[bundlefile:na]
at org.openhab.binding.homematic.internal.communicator.server.BinRpcCallbackServer.start(BinRpcCallbackServer.java:46) ~[bundlefile:na]
at org.openhab.binding.homematic.internal.communicator.HomematicCommunicator.start(HomematicCommunicator.java:96) ~[bundlefile:na]
at org.openhab.binding.homematic.internal.bus.HomematicBinding.updated(HomematicBinding.java:95) [bundlefile:na]
at org.eclipse.equinox.internal.cm.ManagedServiceTracker$1.run(ManagedServiceTracker.java:183) [org.eclipse.equinox.cm_1.0.400.v20120522-1841.jar:na]
at org.eclipse.equinox.internal.cm.SerializedTaskQueue$1.run(SerializedTaskQueue.java:36) [org.eclipse.equinox.cm_1.0.400.v20120522-1841.jar:na]

openHAB can be restarted correctly after rebooting the machine, though.

I tried downgrading to the HomeMatic binding 1.7.0 files but the same problem occurred. I downgraded openHAB to 1.7.0 completely then and now I can again restart openHAB as often as I want.

Is this a bug in 1.7.1, or have there been any changes I’m not aware of?

thanks