add exception in createNativeConnection