天天看点

InvocationTargetException

InvocationTargetException:调用对象异常。

InvocationTargetException

 原因:参数为null,转换类型异常。

Route route = dao1.findOne(Integer.parseInt(rid));      

解决:判断是否为空,为空则进行操作(如赋值)。