zyf791526850
qq_791526850
2019-04-16 13:48
采纳率: 100%
浏览 633
已采纳

ssm框架 将数据从数据库显示在jsp上报错

HTTP Status 500 - Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: Error instantiating class com.airtechs.entity.order with invalid types (String,String,String,String,String,String,String,String,String,String,String,String,String,int,int) or values (ATS-1603010,辽宁海润环保,695000,徐建平,阿斯达,1111,222,333,444,555,666,777,null,null,null). Cause: java.lang.IllegalArgumentException

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • ththcc
    CZ__ 2019-04-16 14:34
    已采纳
    Error instantiating class com.airtechs.entity.order with invalid types (String,String,String,String,String,String,String,String,String,String,String,String,String,int,int) or values (ATS-1603010,辽宁海润环保,695000,徐建平,阿斯达,1111,222,333,444,555,666,777,null,null,null)
    

    这段异常描述说明是实例化order类错误,报无效类型。你的类型是 (String,String,String,String,String,String,String,String,String,String,String,String,String,int,int)接收,但是你传的值是(ATS-1603010,辽宁海润环保,695000,徐建平,阿斯达,1111,222,333,444,555,666,777,null,null,null),你自己看看这类型是不是不匹配。int类型怎么能接收到null,明显有问题了。

    点赞 评论
  • qq_32763245
    独孤灬二爷 2019-04-16 14:55

    反射实体类异常,类型错误,最后两个参数int 尝试换成 Integer,int非对象类型!

    点赞 评论

相关推荐