throw exceptions if more than one byte listener or one string listener is registered