Rigbox
Rigbox copied to clipboard
java.net.BindException after errors
After some errors MATLAB doesn't call the onCleanup function in srv.expServer, resulting in the Java Web socket remaining open. When expServer is restarted the following silent message appears in the command window:
onError: java.net.BindException: Address already in use: bind
Thereafter expServer is unreachable and users become very confused. Ideally this would raise a proper error that MATLAB could handle by clearing the Java class and re-binding. This is a very common and confusing error for people, especially those debugging a signals experiment at a rig.