order/list.do 调用出错
来源:12-6 订单管理模块所有功能自测
慕斯卡3531659
2019-06-05
type Exception report
message Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: Error instantiating class com.mmall.pojo.OrderItem with invalid types (Integer,Long,Integer,String,String,BigDecimal,Integer,BigDecimal,Date,Date,Integer) or values (136,1559746649343,26,三星洗衣机,test.jpg,1000.00,13,13000.00,Wed Jun 05 22:57:29 CST 2019,Wed Jun 05 22:57:29 CST 2019,1). Cause: java.lang.NoSuchMethodException: com.mmall.pojo.OrderItem.(java.lang.Integer, java.lang.Long, java.lang.Integer, java.lang.String, java.lang.String, java.math.BigDecimal, java.lang.Integer, java.math.BigDecimal, java.util.Date, java.util.Date, java.lang.Integer)
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: Error instantiating class com.mmall.pojo.OrderItem with invalid types (Integer,Long,Integer,String,String,BigDecimal,Integer,BigDecimal,Date,Date,Integer) or values (136,1559746649343,26,三星洗衣机,test.jpg,1000.00,13,13000.00,Wed Jun 05 22:57:29 CST 2019,Wed Jun 05 22:57:29 CST 2019,1). Cause: java.lang.NoSuchMethodException: com.mmall.pojo.OrderItem.(java.lang.Integer, java.lang.Long, java.lang.Integer, java.lang.String, java.lang.String, java.math.BigDecimal, java.lang.Integer, java.math.BigDecimal, java.util.Date, java.util.Date, java.lang.Integer)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:943)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:822)
javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:807)
javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:108)
root cause
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: Error instantiating class com.mmall.pojo.OrderItem with invalid types (Integer,Long,Integer,String,String,BigDecimal,Integer,BigDecimal,Date,Date,Integer) or values (136,1559746649343,26,三星洗衣机,test.jpg,1000.00,13,13000.00,Wed Jun 05 22:57:29 CST 2019,Wed Jun 05 22:57:29 CST 2019,1). Cause: java.lang.NoSuchMethodException: com.mmall.pojo.OrderItem.(java.lang.Integer, java.lang.Long, java.lang.Integer, java.lang.String, java.lang.String, java.math.BigDecimal, java.lang.Integer, java.math.BigDecimal, java.util.Date, java.util.Date, java.lang.Integer)
org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:79)
org.mybatis.spring.SqlSessionTemplateSqlSessionInterceptor.invoke(SqlSessionTemplate.java:447)com.sun.proxy.SqlSessionInterceptor.invoke(SqlSessionTemplate.java:447)
com.sun.proxy.SqlSessionInterceptor.invoke(SqlSessionTemplate.java:447)com.sun.proxy.Proxy19.selectList(Unknown Source)
org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:231)
org.apache.ibatis.binding.MapperMethod.executeForMany(MapperMethod.java:137)
org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:75)
org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:53)
com.sun.proxy.$Proxy24.getByOrderNoUserId(Unknown Source)
com.mmall.service.impl.OrderServiceImpl.assembleOrderVoList(OrderServiceImpl.java:367)
com.mmall.service.impl.OrderServiceImpl.getOrderList(OrderServiceImpl.java:352)
com.mmall.controller.portal.OrderController.list(OrderController.java:90)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:606)
org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:214)
org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)
org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:748)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:689)
org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:83)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:945)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:876)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:931)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:822)
javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:807)
javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:108)
root cause
org.apache.ibatis.reflection.ReflectionException: Error instantiating class com.mmall.pojo.OrderItem with invalid types (Integer,Long,Integer,String,String,BigDecimal,Integer,BigDecimal,Date,Date,Integer) or values (136,1559746649343,26,三星洗衣机,test.jpg,1000.00,13,13000.00,Wed Jun 05 22:57:29 CST 2019,Wed Jun 05 22:57:29 CST 2019,1). Cause: java.lang.NoSuchMethodException: com.mmall.pojo.OrderItem.(java.lang.Integer, java.lang.Long, java.lang.Integer, java.lang.String, java.lang.String, java.math.BigDecimal, java.lang.Integer, java.math.BigDecimal, java.util.Date, java.util.Date, java.lang.Integer)
org.apache.ibatis.reflection.factory.DefaultObjectFactory.instantiateClass(DefaultObjectFactory.java:90)
com.mmall.service.impl.OrderServiceImpl.assembleOrderVoList(OrderServiceImpl.java:367)
com.mmall.service.impl.OrderServiceImpl.getOrderList(OrderServiceImpl.java:352)
com.mmall.controller.portal.OrderController.list(OrderController.java:90)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:606)
org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:214)
org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)
org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:748)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:689)
org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:83)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:945)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:108)
root cause
java.lang.NoSuchMethodException: com.mmall.pojo.OrderItem.(java.lang.Integer, java.lang.Long, java.lang.Integer, java.lang.String, java.lang.String, java.math.BigDecimal, java.lang.Integer, java.math.BigDecimal, java.util.Date, java.util.Date, java.lang.Integer)
java.lang.Class.getConstructor0(Class.java:2902)
java.lang.Class.getDeclaredConstructor(Class.java:2066)
com.mmall.service.impl.OrderServiceImpl.assembleOrderVoList(OrderServiceImpl.java:367)
com.mmall.service.impl.OrderServiceImpl.getOrderList(OrderServiceImpl.java:352)
com.mmall.controller.portal.OrderController.list(OrderController.java:90)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
1回答
-
慕斯卡3531659
提问者
2019-06-06
public OrderItem(Integer id, Long orderNo, Integer productId, String productName, String productImage, BigDecimal currentUnitPrice,
Integer quantity, BigDecimal totalPrice, Date createTime, Date updateTime,Integer userId)-------
简而言之就是序列不匹配。
改成上面的序列即可。
00
相似问题
回答 1