Hi Vishnu

The username argument is supposed not to be passed as null in this case.
Is it possible that the Engine is already streaming when "setUserName" is called?
Are you using "createEngine"...