I'm not sure how an explicit import - something that affects compilation - would rectify a NullPointerException at runtime.

javastudnt, does the connection actually get established? The client has...