resolving bean exception