updateVisualState() and updateViewOnly() requires an initiated UI.rfb reference, the calls in connect() was made too early.